From b8f2f48d86c68eb2da5a55989905ec6de527c3d6 Mon Sep 17 00:00:00 2001 From: Francois Belair Date: Tue, 7 Dec 2021 12:37:11 -0500 Subject: [PATCH] Remove extraneous return to LSP (cherry picked from commit ad01201f34ab8ef9dddb203f1f40b1d14d50f0ca) --- modules/gdscript/language_server/gdscript_text_document.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/gdscript/language_server/gdscript_text_document.cpp b/modules/gdscript/language_server/gdscript_text_document.cpp index 8c03ce68c91..825b8d1cc95 100644 --- a/modules/gdscript/language_server/gdscript_text_document.cpp +++ b/modules/gdscript/language_server/gdscript_text_document.cpp @@ -422,9 +422,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);