summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-08-31 17:06:55 +0200
committerGitHub <noreply@github.com>2022-08-31 17:06:55 +0200
commit818af9618996b392d7494338ba31924c80ef0406 (patch)
treec58d473b05363271afc7c860445c3403d0f2824e /modules
parent6843a484ffb1e507ed55b33cb344556489c20cb4 (diff)
parent2ff69d61813e1176daca5e6baee5e9f6106bf371 (diff)
Merge pull request #64130 from A-Lamia/root_uri_decode
Diffstat (limited to 'modules')
-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;
}