Merge pull request #69550 from Rindbee/fix-script-editor-not-reload-via-lsp

Fix internal editor not updating when using external editor via LSP
This commit is contained in:
Rémi Verschelde 2023-02-09 14:01:33 +01:00 committed by GitHub
commit b12bf7ff02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 7 deletions

View file

@ -108,6 +108,7 @@ void GDScriptTextDocument::didSave(const Variant &p_param) {
scr->reload(true);
}
scr->update_exports();
ScriptEditor::get_singleton()->reload_scripts(true);
ScriptEditor::get_singleton()->update_docs_from_script(scr);
}
}