aboutsummaryrefslogtreecommitdiff
path: root/src/server/hover.odin
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2025-06-28 11:52:44 +0200
committerGitHub <noreply@github.com>2025-06-28 11:52:44 +0200
commitd7c08dca5bee9f9ddda7cde4fb5d428251b025a5 (patch)
tree0bc1535342af07c6b50ba1b60ea6b2f62d797d80 /src/server/hover.odin
parent4eae668a145df223c6cfc7b8929cdd49d436756d (diff)
parentc8630395d0c3314c356db0cc40b4b79904909c6d (diff)
Merge pull request #684 from BradLewis/feat/rework-symbol-documentation-writing
Add field comments information on hover
Diffstat (limited to 'src/server/hover.odin')
-rw-r--r--src/server/hover.odin6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/hover.odin b/src/server/hover.odin
index e69249b..52663a8 100644
--- a/src/server/hover.odin
+++ b/src/server/hover.odin
@@ -34,9 +34,7 @@ write_hover_content :: proc(ast_context: ^AstContext, symbol: Symbol) -> MarkupC
}
}
- build_procedure_symbol_signature(&symbol, false)
-
- cat := concatenate_symbol_information(ast_context, symbol, false)
+ cat := concatenate_symbol_information(ast_context, symbol)
if cat != "" {
content.kind = "markdown"
@@ -146,7 +144,7 @@ get_hover_information :: proc(document: ^Document, position: common.Position) ->
}
}
- symbol.signature = get_signature(&ast_context, symbol)
+ symbol.signature = get_short_signature(&ast_context, symbol)
hover.contents = write_hover_content(&ast_context, symbol)
return hover, true, true
}