diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-01-12 15:26:11 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-01-12 15:26:11 +0100 |
| commit | bd3f707d8e0a717df49b7bf702a5b98d214b0381 (patch) | |
| tree | da5be249507adde933a9d76a4eaa09949da5bf57 /src/server | |
| parent | e8d2c76db829c59e88d5342f1c4385354cc9546f (diff) | |
Fix issues with no completion on identifier in comp literal.
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/completion.odin | 1 | ||||
| -rw-r--r-- | src/server/hover.odin | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin index c458e34..6eba90f 100644 --- a/src/server/completion.odin +++ b/src/server/completion.odin @@ -35,7 +35,6 @@ Completion_Type :: enum { } get_completion_list :: proc(document: ^common.Document, position: common.Position, completion_context: CompletionContext) -> (CompletionList, bool) { - using analysis; list: CompletionList; diff --git a/src/server/hover.odin b/src/server/hover.odin index d19d990..7c2d9c4 100644 --- a/src/server/hover.odin +++ b/src/server/hover.odin @@ -49,7 +49,6 @@ write_hover_content :: proc(ast_context: ^analysis.AstContext, symbol: index.Sym get_hover_information :: proc(document: ^common.Document, position: common.Position) -> (Hover, bool) { - using analysis; hover := Hover { @@ -72,14 +71,13 @@ get_hover_information :: proc(document: ^common.Document, position: common.Posit if ident, ok := position_context.identifier.derived.(ast.Ident); ok { if _, ok := common.keyword_map[ident.name]; ok { hover.contents.kind = "plaintext"; - hover.range = common.get_token_range(position_context.identifier^, ast_context.file.src); + hover.range = common.get_token_range(position_context.identifier^, ast_context.file.src); return hover, true; } } } 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; |