Suggest object overrides in map files - #115
Conversation
|
| Filename | Overview |
|---|---|
| crates/analysis/src/completion.rs | Adds map/solo Object-header completion and regression tests, but the candidate source also includes objects defined only in override layers and labels them as override targets. |
Reviews (1): Last reviewed commit: "feat: suggest object overrides in map fi..." | Re-trigger Greptile
| fn object_name_completions(index: Option<&WorkspaceIndex>) -> Vec<Completion> { | ||
| index | ||
| .into_iter() |
There was a problem hiding this comment.
Override-only objects appear as targets
object_name_completions enumerates every indexed Object, including templates defined only in the current or another override layer, and labels each one as an override target. This makes the completion list misleading because those map-local templates have no base definition to override.
Knowledge Base Used:
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Summary
Tests