Merge pull request #36138 from GodotExplorer/fix-vscode1.42-hover-4.0

Fix hover symbol content position
This commit is contained in:
Rémi Verschelde 2020-02-12 14:39:29 +01:00 committed by GitHub
commit 7d3954a665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()) {