summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/language_server/gdscript_workspace.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-07-27 19:18:01 +0200
committerGitHub <noreply@github.com>2022-07-27 19:18:01 +0200
commitabb44676e0a8e2f403dd6889662ea15c3e3bd784 (patch)
tree1686320e6306889e9749015cb30b9d7cd1905b18 /modules/gdscript/language_server/gdscript_workspace.cpp
parent03987738aae247d9a62c239a3cdf2546612ca84a (diff)
parent3fa943fe2320f28fd6c7a6910f27cf9c91f41e46 (diff)
downloadredot-engine-abb44676e0a8e2f403dd6889662ea15c3e3bd784.tar.gz
Merge pull request #63388 from A-Lamia/sync_script_content_fix
Diffstat (limited to 'modules/gdscript/language_server/gdscript_workspace.cpp')
-rw-r--r--modules/gdscript/language_server/gdscript_workspace.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gdscript/language_server/gdscript_workspace.cpp b/modules/gdscript/language_server/gdscript_workspace.cpp
index 8d484a43b3..959651c024 100644
--- a/modules/gdscript/language_server/gdscript_workspace.cpp
+++ b/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;
}