Skip to content

Commit

Permalink
include globals in completions
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwparas committed Nov 8, 2024
1 parent 4da4151 commit a9fd885
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/steel-language-server/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,8 @@ impl LanguageServer for Backend {
.collect::<Vec<_>>(),
);

completions.extend(self.globals_set.iter().map(|x| x.resolve().to_owned()));

let mut ret = Vec::with_capacity(completions.len());
for var in completions {
ret.push(CompletionItem {
Expand Down

0 comments on commit a9fd885

Please sign in to comment.