Skip to content

Commit 57aa70c

Browse files
committed
Add top-level variables to diagnostics context
1 parent fc1fe5b commit 57aa70c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/ark/src/lsp/diagnostics.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ pub(crate) fn generate_diagnostics(doc: Document, state: WorldState) -> Vec<Diag
159159
indexer::IndexEntryData::Function { name, arguments: _ } => {
160160
context.workspace_symbols.insert(name.to_string());
161161
},
162+
indexer::IndexEntryData::Variable { name } => {
163+
context.workspace_symbols.insert(name.to_string());
164+
},
162165
_ => {},
163166
});
164167

0 commit comments

Comments
 (0)