summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/language_server/gdscript_text_document.h
diff options
context:
space:
mode:
authorGeequlim <geequlim@gmail.com>2019-06-24 18:25:12 +0800
committergeequlim <geequlim@gmail.com>2019-08-11 13:30:15 +0800
commit76c9e4ceb73b02bd95ab0512e27229516208dc60 (patch)
treeb145ae3a4a837a109943f654bf433e704b7eac74 /modules/gdscript/language_server/gdscript_text_document.h
parentfa6d6a329c93224b5454b17603284913da0472a3 (diff)
downloadredot-engine-76c9e4ceb73b02bd95ab0512e27229516208dc60.tar.gz
Improved performance for completion and symbol resolvation.
Improved uri and workspace path translatation on windows platform. The smart resolvation is much faster than builtin's in the server side. The smart resolve mode is still disabled as default as the clients might be slow with a planty of completion items.
Diffstat (limited to 'modules/gdscript/language_server/gdscript_text_document.h')
-rw-r--r--modules/gdscript/language_server/gdscript_text_document.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/language_server/gdscript_text_document.h b/modules/gdscript/language_server/gdscript_text_document.h
index 68d89c7ba4..d1e11f684c 100644
--- a/modules/gdscript/language_server/gdscript_text_document.h
+++ b/modules/gdscript/language_server/gdscript_text_document.h
@@ -47,6 +47,8 @@ protected:
void sync_script_content(const String &p_path, const String &p_content);
+ Array native_member_completions;
+
private:
lsp::TextDocumentItem load_document_item(const Variant &p_param);
@@ -61,6 +63,8 @@ public:
Variant hover(const Dictionary &p_params);
Array definition(const Dictionary &p_params);
+ void initialize();
+
GDScriptTextDocument();
virtual ~GDScriptTextDocument();
};