summaryrefslogtreecommitdiff
path: root/modules/gdscript/language_server
diff options
context:
space:
mode:
authorLamia <git@lamia.io>2022-08-09 07:25:03 +1000
committerLamia <git@lamia.io>2022-08-31 13:48:37 +1000
commit2ff69d61813e1176daca5e6baee5e9f6106bf371 (patch)
tree8e28af4983cca7be7178f42cd31117435ff2a5f4 /modules/gdscript/language_server
parent8fa9d1ae467632daa5f12b278eb616fd580a94ec (diff)
fix: add uri_decode to root_uri #63388
Diffstat (limited to 'modules/gdscript/language_server')
-rw-r--r--modules/gdscript/language_server/gdscript_workspace.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gdscript/language_server/gdscript_workspace.cpp b/modules/gdscript/language_server/gdscript_workspace.cpp
index fd213e7b37..16461b0a6c 100644
--- a/modules/gdscript/language_server/gdscript_workspace.cpp
+++ b/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;
}