Преглед изворни кода

LSP: Sanitizes protocol URI `file:///c%3A` in file path
Fixes #63205.

Lamia пре 3 година
родитељ
комит
3fa943fe23
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;
 }