summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/language_server/gdscript_workspace.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-08-08 23:04:33 +0200
committerGitHub <noreply@github.com>2022-08-08 23:04:33 +0200
commitf8383a7c72324eaed4e83891b6b93f82098fb8ab (patch)
tree2a1932f64fcba46713efbd4be1ac4431eeaa295a /modules/gdscript/language_server/gdscript_workspace.cpp
parent682dbe5d00aa7730659771b16704eba83f166a7b (diff)
parent42a16ef76e4100c285a4a8c17f22a199986072a7 (diff)
downloadredot-engine-f8383a7c72324eaed4e83891b6b93f82098fb8ab.tar.gz
Merge pull request #64099 from A-Lamia/lsp_uri_path_fixes
Diffstat (limited to 'modules/gdscript/language_server/gdscript_workspace.cpp')
-rw-r--r--modules/gdscript/language_server/gdscript_workspace.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/gdscript/language_server/gdscript_workspace.cpp b/modules/gdscript/language_server/gdscript_workspace.cpp
index ded2a7b4d4..44b60369ab 100644
--- a/modules/gdscript/language_server/gdscript_workspace.cpp
+++ b/modules/gdscript/language_server/gdscript_workspace.cpp
@@ -500,10 +500,8 @@ 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("///", "//");
- path = path.replace("%3A", ":");
- path = path.replacen(root_uri + "/", "res://");
path = path.uri_decode();
+ path = path.replacen(root_uri + "/", "res://");
return path;
}