Skip to content

Commit 960c9aa

Browse files
authored
fix: correctly coerce root_uri into workspace folders (#275)
1 parent a0af2dc commit 960c9aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/next_ls.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ defmodule NextLS do
104104
if caps.workspace.workspace_folders do
105105
workspace_folders
106106
else
107-
%{name: Path.basename(root_uri), uri: root_uri}
107+
[%{name: Path.basename(root_uri), uri: root_uri}]
108108
end
109109

110110
{:ok, init_opts} = __MODULE__.InitOpts.validate(init_opts)

0 commit comments

Comments
 (0)