Skip to content

Commit

Permalink
fix: add uri_decode to root_uri godotengine#63388
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Lamia committed Aug 31, 2022
1 parent 8fa9d1a commit 2ff69d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/gdscript/language_server/gdscript_workspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2ff69d6

Please sign in to comment.