lsp: Do not add trailing slash to workspace folders (#25903)
Closes #25390 Release Notes: - Fixed issues with ansible-language-server sending phantom diagnostic updates
This commit is contained in:
parent
65d92d7278
commit
0e44f93178
1 changed files with 2 additions and 2 deletions
|
@ -1917,7 +1917,7 @@ impl LocalLspStore {
|
|||
}
|
||||
}
|
||||
language::Attach::Shared => {
|
||||
let uri = Url::from_directory_path(
|
||||
let uri = Url::from_file_path(
|
||||
worktree.read(cx).abs_path().join(&path.path),
|
||||
);
|
||||
let key = (worktree_id, server_name.clone());
|
||||
|
@ -3825,7 +3825,7 @@ impl LspStore {
|
|||
}
|
||||
}
|
||||
language::Attach::Shared => {
|
||||
let uri = Url::from_directory_path(
|
||||
let uri = Url::from_file_path(
|
||||
worktree.read(cx).abs_path().join(&path.path),
|
||||
);
|
||||
let key = (worktree_id, server_name.clone());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue