mirror of
https://github.com/godotengine/godot
synced 2024-09-05 10:08:45 +00:00
Fix hover symbol content position
This commit is contained in:
parent
14d0e3e642
commit
03d2d01082
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in a new issue