From ad01201f34ab8ef9dddb203f1f40b1d14d50f0ca Mon Sep 17 00:00:00 2001 From: Francois Belair Date: Tue, 7 Dec 2021 12:37:11 -0500 Subject: Remove extraneous return to LSP --- modules/gdscript/language_server/gdscript_text_document.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'modules/gdscript') diff --git a/modules/gdscript/language_server/gdscript_text_document.cpp b/modules/gdscript/language_server/gdscript_text_document.cpp index 92ce71f395..d2e033d7de 100644 --- a/modules/gdscript/language_server/gdscript_text_document.cpp +++ b/modules/gdscript/language_server/gdscript_text_document.cpp @@ -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); -- cgit v1.2.3