summaryrefslogtreecommitdiff
path: root/modules/gdscript/language_server/lsp.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gdscript/language_server/lsp.hpp')
-rw-r--r--modules/gdscript/language_server/lsp.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gdscript/language_server/lsp.hpp b/modules/gdscript/language_server/lsp.hpp
index c208d5a198..065b8b65e8 100644
--- a/modules/gdscript/language_server/lsp.hpp
+++ b/modules/gdscript/language_server/lsp.hpp
@@ -886,12 +886,12 @@ struct CompletionItem {
*/
Variant data;
- _FORCE_INLINE_ Dictionary to_json(bool minimized = false) const {
+ _FORCE_INLINE_ Dictionary to_json(bool resolved = false) const {
Dictionary dict;
dict["label"] = label;
dict["kind"] = kind;
dict["data"] = data;
- if (!minimized) {
+ if (resolved) {
dict["insertText"] = insertText;
dict["detail"] = detail;
dict["documentation"] = documentation.to_json();
@@ -1145,12 +1145,12 @@ struct DocumentSymbol {
return markdown;
}
- _FORCE_INLINE_ CompletionItem make_completion_item(bool with_doc = false) const {
+ _FORCE_INLINE_ CompletionItem make_completion_item(bool resolved = false) const {
lsp::CompletionItem item;
item.label = name;
- if (with_doc) {
+ if (resolved) {
item.documentation = render();
}