Skip to content

Commit

Permalink
Merge pull request #47891 from Razoric480/lsp-update-filesystem
Browse files Browse the repository at this point in the history
Make LSP update the filesystem for changed scripts
  • Loading branch information
akien-mga authored Apr 24, 2021
2 parents a804d33 + b16bb33 commit db90ab8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit db90ab8

Please sign in to comment.