mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 02:43:29 +00:00
LSP: Improve handling of file URI scheme
Fixes #63205. (cherry picked from commits3fa943fe23,42a16ef76eand2ff69d6181)
This commit is contained in:
parent
3a2f2d99f6
commit
a412922c2b
2 changed files with 6 additions and 4 deletions
|
|
@ -183,7 +183,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