Skip to content

Commit

Permalink
lsp: Send non-null workspaceFolders in initialize (#25337)
Browse files Browse the repository at this point in the history
This is a ~workaround for next-ls not handling null workspace folders in
initialize request
Related to #25264
/cc @timfjord
Closes #ISSUE

Release Notes:

- Changed how workspace folders are shared with language servers, fixing
a startup issue with `next-ls` in the process.
  • Loading branch information
osiewicz authored Feb 21, 2025
1 parent 5e8474e commit 496c04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/lsp/src/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ impl LanguageServer {
}),
},
trace: None,
workspace_folders: None,
workspace_folders: Some(vec![]),
client_info: release_channel::ReleaseChannel::try_global(cx).map(|release_channel| {
ClientInfo {
name: release_channel.display_name().to_string(),
Expand Down

0 comments on commit 496c04c

Please sign in to comment.