Merge pull request #55700 from Razoric480/raz/lsp-extraneous-code

This commit is contained in:
Rémi Verschelde 2021-12-09 13:12:49 +01:00 committed by GitHub
commit 012b2b5385
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -428,9 +428,6 @@ 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);