# Workspace configuration for elixir-ls LSP \(\#9330\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5181d3f719075d74b5713b409976d0c50b1ae7dc)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 5181d3f719075d74b5713b409976d0c50b1ae7dc

Requested commit: 5181d3f719075d74b5713b409976d0c50b1ae7dc

Commit: 5181d3f719075d74b5713b409976d0c50b1ae7dc

Tree: 74e511426beeccb9cb9f4531a527c3e90bf8d52f

Author: Richard Taylor

Committer: GitHub

## Message

````
Workspace configuration for elixir-ls LSP (#9330)

This allows the workspace configuration settings to be passed to the
elixir-ls LSP via lsp settings.

This following example settings disable dialyzer in the LSP:

```
"lsp": {
  "elixir-ls": {
    "settings": {
      "dialyzerEnabled": false
    }
  }
}
```

It follows the same pattern used in
[#8568](https://github.com/zed-industries/zed/pull/8568) and resolves
[#4260](https://github.com/zed-industries/zed/issues/4260).

Zed's language server logs show the settings are being sent to the
language server:

```
Received client configuration via workspace/configuration
%{"dialyzerEnabled" => false}
Registering for workspace/didChangeConfiguration notifications
Starting build with MIX_ENV: test MIX_TARGET: host
client/registerCapability succeeded
Registering for workspace/didChangeWatchedFiles notifications
client/registerCapability succeeded
Received workspace/didChangeConfiguration
Received client configuration via workspace/didChangeConfiguration
%{"dialyzerEnabled" => false}
```

Release Notes:

- Added workspace configuration settings support for elixir-ls language
server. Those can now be configured by setting `{"lsp": {"elixir-ls": {
"settings: { "your-settings-here": "here"} } }` in Zed settings.
[#4260](https://github.com/zed-industries/zed/issues/4260).
````

## Parents

- [6d787379735268dd485b0a453485568052dc1462](https://git.cafe/gitcafe/zed/commit/6d787379735268dd485b0a453485568052dc1462?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5181d3f719075d74b5713b409976d0c50b1ae7dc?format=markdown)
