mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
fix: modifies workspace->root_uri so that p_uri is symmetrical to other operating systems. #63388
This commit is contained in:
parent
c8cdc10902
commit
42a16ef76e
2 changed files with 4 additions and 4 deletions
|
@ -184,7 +184,9 @@ Dictionary GDScriptLanguageProtocol::initialize(const Dictionary &p_params) {
|
|||
if (root_uri.length() && is_same_workspace) {
|
||||
workspace->root_uri = root_uri;
|
||||
} else {
|
||||
workspace->root_uri = "file://" + workspace->root;
|
||||
String r_root = workspace->root;
|
||||
r_root = r_root.lstrip("/");
|
||||
workspace->root_uri = "file:///" + r_root;
|
||||
|
||||
Dictionary params;
|
||||
params["path"] = workspace->root;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue