diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-06-11 22:50:18 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-06-11 22:50:18 +0200 |
| commit | 4dcbd44dbf63f2b365c315f481b70ecc946e9f56 (patch) | |
| tree | ab7bf9872e4b70490cbdf97e0edc5435e12aac91 /src/server/hover.odin | |
| parent | 70d5bcf8eca474440020c31239cd827cf3bb3415 (diff) | |
Fix hover bug
Diffstat (limited to 'src/server/hover.odin')
| -rw-r--r-- | src/server/hover.odin | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/hover.odin b/src/server/hover.odin index 1fdecd5..25975c0 100644 --- a/src/server/hover.odin +++ b/src/server/hover.odin @@ -73,7 +73,6 @@ get_hover_information :: proc(document: ^common.Document, position: common.Posit if position_context.selector != nil && position_context.identifier != nil { hover.range = common.get_token_range(position_context.identifier^, ast_context.file.src) - ast_context.use_locals = true ast_context.use_globals = true ast_context.current_package = ast_context.document_package @@ -114,8 +113,7 @@ get_hover_information :: proc(document: ^common.Document, position: common.Posit } } - hover.range = common.get_token_range(position_context.identifier^, document.ast.src) - + #partial switch v in selector.value { case SymbolStructValue: for name, i in v.names { |