summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-12 14:39:29 +0100
committerGitHub <noreply@github.com>2020-02-12 14:39:29 +0100
commit7d3954a665bec7b1a5de817318d9092feab4d294 (patch)
tree5e2a9317559eaeac9fdfc9615ec1740f7c211681 /modules
parent49eef1180b441d6778d1b03168226bee7c815f3d (diff)
parent03d2d01082f2853ff4873a0b66e01d5a66178a42 (diff)
Merge pull request #36138 from GodotExplorer/fix-vscode1.42-hover-4.0
Fix hover symbol content position
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/language_server/gdscript_text_document.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/language_server/gdscript_text_document.cpp b/modules/gdscript/language_server/gdscript_text_document.cpp
index 0572c5f746..d5723fd20f 100644
--- a/modules/gdscript/language_server/gdscript_text_document.cpp
+++ b/modules/gdscript/language_server/gdscript_text_document.cpp
@@ -321,6 +321,8 @@ Variant GDScriptTextDocument::hover(const Dictionary &p_params) {
lsp::Hover hover;
hover.contents = symbol->render();
+ hover.range.start = params.position;
+ hover.range.end = params.position;
return hover.to_json();
} else if (GDScriptLanguageProtocol::get_singleton()->is_smart_resolve_enabled()) {