diff options
author | rune-scape <allie.smith.epic@gmail.com> | 2023-12-28 14:44:23 -0800 |
---|---|---|
committer | rune-scape <spartacrafter@gmail.com> | 2024-08-29 13:39:27 -0700 |
commit | 154049ce1792a6e12b990e0a414a6c084c3b91c5 (patch) | |
tree | 102bda57c74f9efaa227c970255327f734043ce9 /modules/gdscript/language_server/gdscript_text_document.cpp | |
parent | 40b378e9e2338d84f897f6991cc913a713295785 (diff) | |
download | redot-engine-154049ce1792a6e12b990e0a414a6c084c3b91c5.tar.gz |
StringName Dictionary keys
also added 'is_string()' method to Variant
and refactored many String type comparisons to use it instead
Diffstat (limited to 'modules/gdscript/language_server/gdscript_text_document.cpp')
-rw-r--r-- | modules/gdscript/language_server/gdscript_text_document.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/language_server/gdscript_text_document.cpp b/modules/gdscript/language_server/gdscript_text_document.cpp index 2224bb0040..fa5f279db9 100644 --- a/modules/gdscript/language_server/gdscript_text_document.cpp +++ b/modules/gdscript/language_server/gdscript_text_document.cpp @@ -309,7 +309,7 @@ Dictionary GDScriptTextDocument::resolve(const Dictionary &p_params) { params.load(p_params["data"]); symbol = GDScriptLanguageProtocol::get_singleton()->get_workspace()->resolve_symbol(params, item.label, item.kind == lsp::CompletionItemKind::Method || item.kind == lsp::CompletionItemKind::Function); - } else if (data.get_type() == Variant::STRING) { + } else if (data.is_string()) { String query = data; Vector<String> param_symbols = query.split(SYMBOL_SEPERATOR, false); |