aboutsummaryrefslogtreecommitdiff
path: root/src/server/hover.odin
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-01-12 15:26:11 +0100
committerDaniel Gavin <danielgavin5@hotmail.com>2022-01-12 15:26:11 +0100
commitbd3f707d8e0a717df49b7bf702a5b98d214b0381 (patch)
treeda5be249507adde933a9d76a4eaa09949da5bf57 /src/server/hover.odin
parente8d2c76db829c59e88d5342f1c4385354cc9546f (diff)
Fix issues with no completion on identifier in comp literal.
Diffstat (limited to 'src/server/hover.odin')
-rw-r--r--src/server/hover.odin4
1 files changed, 1 insertions, 3 deletions
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;