浏览代码

Merge pull request #63388 from A-Lamia/sync_script_content_fix

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

+ 3 - 1
modules/gdscript/language_server/gdscript_workspace.cpp

@@ -499,7 +499,9 @@ Error GDScriptWorkspace::parse_local_script(const String &p_path) {
 
 String GDScriptWorkspace::get_file_path(const String &p_uri) const {
 	String path = p_uri;
-	path = path.replace(root_uri + "/", "res://");
+	path = path.replace("///", "//");
+	path = path.replace("%3A", ":");
+	path = path.replacen(root_uri + "/", "res://");
 	path = path.uri_decode();
 	return path;
 }