Make LSP update the filesystem of changed scripts

This updates global classes and exposes base member variables.
Fixes #39713

(cherry picked from commit b16bb33a5b)
This commit is contained in:
Francois Belair 2021-04-14 13:11:38 -04:00 committed by Rémi Verschelde
parent 137f71fd75
commit 1f54a75310
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -416,6 +416,7 @@ GDScriptTextDocument::~GDScriptTextDocument() {
void GDScriptTextDocument::sync_script_content(const String &p_path, const String &p_content) { 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); String path = GDScriptLanguageProtocol::get_singleton()->get_workspace()->get_file_path(p_path);
GDScriptLanguageProtocol::get_singleton()->get_workspace()->parse_script(path, p_content); 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) { void GDScriptTextDocument::show_native_symbol_in_editor(const String &p_symbol_id) {