From 30d7bbaab954611002fc426f95eaec9bb52a4d12 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Fri, 21 Feb 2025 15:21:20 +0100 Subject: [PATCH] lsp: Send non-null workspaceFolders in initialize This is a ~workaround for next-ls not handling null workspace folders in initialize request --- crates/lsp/src/lsp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/lsp/src/lsp.rs b/crates/lsp/src/lsp.rs index 53bb500ac24c3f..fb2ae93799c189 100644 --- a/crates/lsp/src/lsp.rs +++ b/crates/lsp/src/lsp.rs @@ -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(),