Browse Source

fix: add uri_decode to root_uri #63388

Lamia 3 years ago
parent
commit
2ff69d6181
1 changed files with 3 additions and 3 deletions
  1. 3 3
      modules/gdscript/language_server/gdscript_workspace.cpp

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

@@ -499,9 +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.uri_decode();
-	path = path.replacen(root_uri + "/", "res://");
+	String path = p_uri.uri_decode();
+	String base_uri = root_uri.uri_decode();
+	path = path.replacen(base_uri + "/", "res://");
 	return path;
 }