diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-04-24 13:17:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-24 13:17:31 +0200 |
commit | db90ab86b94eb59eb296d574c279e40e57c2f99b (patch) | |
tree | 9793d8c36f5279508fc7ec0a6e408ab1c570ea9d /modules | |
parent | a804d332816e680bb919e49eedc928d530a56695 (diff) | |
parent | b16bb33a5b462750c70ae1fec791dac8e50fe3ef (diff) |
Merge pull request #47891 from Razoric480/lsp-update-filesystem
Make LSP update the filesystem for changed scripts
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/language_server/gdscript_text_document.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/language_server/gdscript_text_document.cpp b/modules/gdscript/language_server/gdscript_text_document.cpp index 9f2373bf56..030633274c 100644 --- a/modules/gdscript/language_server/gdscript_text_document.cpp +++ b/modules/gdscript/language_server/gdscript_text_document.cpp @@ -400,6 +400,7 @@ 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); GDScriptLanguageProtocol::get_singleton()->get_workspace()->parse_script(path, p_content); + EditorFileSystem::get_singleton()->update_file(path); } void GDScriptTextDocument::show_native_symbol_in_editor(const String &p_symbol_id) { |