浏览代码

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

Rémi Verschelde 3 年之前
父节点
当前提交
012b2b5385
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      modules/gdscript/language_server/gdscript_text_document.cpp

+ 0 - 3
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);