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:
1 parent
e6f2370a76
commit
0be164cf5b
1 file changed
+1
-1
@@ -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 },
|
||||
|
||||
Reference in new issue
Block a user