diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-22 08:02:51 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-22 08:20:04 -0400 |
| commit | b4ef1f01a66ee0b1fdd3d447226fa048ca789c6a (patch) | |
| tree | 2fd375817485eb7cf04ab7ec96bfaad131b331c6 /src/server/symbol.odin | |
| parent | 1009de179a717c8b355acb8b1268fedc9b2d089c (diff) | |
Don't collect globals for ignored files and add more types for workspace symbol kinds
Diffstat (limited to 'src/server/symbol.odin')
| -rw-r--r-- | src/server/symbol.odin | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/symbol.odin b/src/server/symbol.odin index 4e6b19f..42e5447 100644 --- a/src/server/symbol.odin +++ b/src/server/symbol.odin @@ -780,7 +780,7 @@ symbol_type_to_completion_kind :: proc(type: SymbolType) -> CompletionItemKind { symbol_kind_to_type :: proc(type: SymbolType) -> SymbolKind { #partial switch type { - case .Function: + case .Function, .Type_Function: return .Function case .Constant: return .Constant @@ -796,6 +796,10 @@ symbol_kind_to_type :: proc(type: SymbolType) -> SymbolKind { return .Key case .Field: return .Field + case .Unresolved: + return .Constant + case .Type: + return .Class case: return .Null } |