You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
textDocument/documentSymbol should handle a non-fully initialized server
Sometimes requests will be processed when the server has not been initialized
with client capabilities yet, this should not result in an error. Was
previously:
```
[Error - 6:07:18 AM] Request textDocument/documentSymbol failed.
Message: an exception was raised:
** (BadMapError) expected a map, got: nil
(elixir 1.10.2) lib/map.ex:450: Map.get(nil, "textDocument", %{})
(language_server 0.3.0) lib/language_server/server.ex:398: anonymous fn/2 in ElixirLS.LanguageServer.Server.handle_request/2
(language_server 0.3.0) lib/language_server/server.ex:485: anonymous fn/3 in ElixirLS.LanguageServer.Server.handle_request_async/2
Code: -32000
```
Fixes#172
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,8 @@
1
1
### Unreleased
2
2
3
+
Bug Fixes:
4
+
- Fix `textDocument/documentSymbol` on a non-fully initialized server (thanks [Jason Axelson](https://github.com/axelson)) [#173](https://github.com/elixir-lsp/elixir-ls/pull/173)
0 commit comments