You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
LSP: Improve handling of file URI scheme
Fixes #63205. (cherry picked from commits3fa943fe23,42a16ef76eand2ff69d6181)
This commit is contained in:
@@ -496,9 +496,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.http_unescape();
|
||||
String path = p_uri.http_unescape();
|
||||
String base_uri = root_uri.http_unescape();
|
||||
path = path.replacen(base_uri + "/", "res://");
|
||||
return path;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user