diff options
author | geequlim <geequlim@gmail.com> | 2020-02-12 17:58:19 +0800 |
---|---|---|
committer | geequlim <geequlim@gmail.com> | 2020-02-12 17:59:20 +0800 |
commit | 03d2d01082f2853ff4873a0b66e01d5a66178a42 (patch) | |
tree | 284428a1fa8b66df4c9579c0b3abe7045b9ad02b /modules | |
parent | 14d0e3e642719cc9b59eedc6da523a0d75853c81 (diff) |
Fix hover symbol content position
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/language_server/gdscript_text_document.cpp | 2 |
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()) { |