Fix hover symbol content position

(cherry picked from commit 03d2d01082)
This commit is contained in:
geequlim 2020-02-12 17:58:19 +08:00 committed by Rémi Verschelde
parent ba15e5355b
commit 57151c5e31
1 changed files with 2 additions and 0 deletions

View File

@ -321,6 +321,8 @@ Variant GDScriptTextDocument::hover(const Dictionary &p_params) {
lsp::Hover hover; lsp::Hover hover;
hover.contents = symbol->render(); hover.contents = symbol->render();
hover.range.start = params.position;
hover.range.end = params.position;
return hover.to_json(); return hover.to_json();
} else if (GDScriptLanguageProtocol::get_singleton()->is_smart_resolve_enabled()) { } else if (GDScriptLanguageProtocol::get_singleton()->is_smart_resolve_enabled()) {