From 960c9aa528e2aaebd3a848e3f6053d9345277861 Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Wed, 4 Oct 2023 23:52:07 -0400 Subject: [PATCH] fix: correctly coerce root_uri into workspace folders (#275) --- lib/next_ls.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/next_ls.ex b/lib/next_ls.ex index 00fcbebc..c111b054 100644 --- a/lib/next_ls.ex +++ b/lib/next_ls.ex @@ -104,7 +104,7 @@ defmodule NextLS do if caps.workspace.workspace_folders do workspace_folders else - %{name: Path.basename(root_uri), uri: root_uri} + [%{name: Path.basename(root_uri), uri: root_uri}] end {:ok, init_opts} = __MODULE__.InitOpts.validate(init_opts)