From 03d2d01082f2853ff4873a0b66e01d5a66178a42 Mon Sep 17 00:00:00 2001 From: geequlim Date: Wed, 12 Feb 2020 17:58:19 +0800 Subject: [PATCH] Fix hover symbol content position --- modules/gdscript/language_server/gdscript_text_document.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gdscript/language_server/gdscript_text_document.cpp b/modules/gdscript/language_server/gdscript_text_document.cpp index 0572c5f7469..d5723fd20f7 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()) {