Skip to content

Commit 5102f1c

Browse files
authored
Do not advertise workspaceFolder support (#298)
* Do not advertise workspaceFolder support In #295 the user received a warning: > Received unmatched notification: %{"jsonrpc" => "2.0", "method" => "workspace/didChangeWorkspaceFolders" This occurs because the server advertises that it supports workspace folders: https://microsoft.github.io/language-server-protocol/specification#workspace_workspaceFolders This was introduced in #35 which was actually about didChangeWatchedFiles and not workspace folders. Fixes #296 * Update changelog
1 parent 785f3de commit 5102f1c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Bug Fixes:
1919
- Formatting was returning invalid floating point number (thanks [Thanabodee Charoenpiriyakij](https://github.com/wingyplus)) [#250](https://github.com/elixir-lsp/elixir-ls/pull/250)
2020
- Fix detection of empty hover hints (thanks [Dmitry Gutov](https://github.com/dgutov)) [#279](https://github.com/elixir-lsp/elixir-ls/pull/279)
2121
- Debugger doesn't fail when modules cannot be interpretted (thanks [Łukasz Samson](https://github.com/lukaszsamson)) (such as nifs) [#283](https://github.com/elixir-lsp/elixir-ls/pull/283)
22+
- Do not advertise `workspaceFolders` support (thanks [Jason Axelson](https://github.com/axelson)) [#298](https://github.com/elixir-lsp/elixir-ls/pull/298)
2223

2324
House keeping:
2425
- Server runs with a unique id (and uses it to disambiguate commands) (thanks [Alessandro Tagliapietra](https://github.com/alex88)) [#278](https://github.com/elixir-lsp/elixir-ls/pull/278)

apps/language_server/lib/language_server/server.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ defmodule ElixirLS.LanguageServer.Server do
586586
"codeLensProvider" => %{"resolveProvider" => false},
587587
"executeCommandProvider" => %{"commands" => ["spec:#{server_instance_id}"]},
588588
"workspace" => %{
589-
"workspaceFolders" => %{"supported" => true, "changeNotifications" => true}
589+
"workspaceFolders" => %{"supported" => false, "changeNotifications" => false}
590590
}
591591
}
592592
end

0 commit comments

Comments
 (0)