lsp: Fix workspace folders being cleared when new set is the same as the old one (#27242)
Release Notes: - N/A
This commit is contained in:
parent
a709d4c7c6
commit
579868110b
1 changed files with 1 additions and 1 deletions
|
@ -1275,9 +1275,9 @@ impl LanguageServer {
|
|||
name: String::default(),
|
||||
})
|
||||
.collect();
|
||||
*workspace_folders = folders;
|
||||
let should_notify = !added.is_empty() || !removed.is_empty();
|
||||
if should_notify {
|
||||
*workspace_folders = folders;
|
||||
drop(workspace_folders);
|
||||
let params = DidChangeWorkspaceFoldersParams {
|
||||
event: WorkspaceFoldersChangeEvent { added, removed },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue