diff options
author | Francois Belair <razoric480@gmail.com> | 2021-10-01 11:26:26 -0400 |
---|---|---|
committer | Francois Belair <razoric480@gmail.com> | 2021-10-01 11:26:26 -0400 |
commit | 572979d0110ac9086bef721e5bcc0bc891b90cf1 (patch) | |
tree | 90b4453cd43250bcf0c251053d4ea27b0953e342 /modules/gdscript/language_server/gdscript_text_document.cpp | |
parent | 928c002f223b67bd6fd1c55d65e37a6d5c4e3a94 (diff) | |
download | redot-engine-572979d0110ac9086bef721e5bcc0bc891b90cf1.tar.gz |
Fix empty line hover; fix open non-res:// script
Diffstat (limited to 'modules/gdscript/language_server/gdscript_text_document.cpp')
-rw-r--r-- | modules/gdscript/language_server/gdscript_text_document.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/language_server/gdscript_text_document.cpp b/modules/gdscript/language_server/gdscript_text_document.cpp index d2e033d7de..92ce71f395 100644 --- a/modules/gdscript/language_server/gdscript_text_document.cpp +++ b/modules/gdscript/language_server/gdscript_text_document.cpp @@ -428,6 +428,9 @@ GDScriptTextDocument::~GDScriptTextDocument() { void GDScriptTextDocument::sync_script_content(const String &p_path, const String &p_content) { String path = GDScriptLanguageProtocol::get_singleton()->get_workspace()->get_file_path(p_path); + if (!path.begins_with("res://")) { + return; + } GDScriptLanguageProtocol::get_singleton()->get_workspace()->parse_script(path, p_content); EditorFileSystem::get_singleton()->update_file(path); |