# project: Add dynamic capabilities registration for "workspace/didChangeWorkspaceFolders" \(\#37005\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5d7f12ce880b0878353b40206682e30a4ec27405

Requested commit: 5d7f12ce880b0878353b40206682e30a4ec27405

Commit: 5d7f12ce880b0878353b40206682e30a4ec27405

Tree: 8577dbfbb10fe55c652430f2e5b13bbbd5bf1878

Author: Smit Barmase

Committer: GitHub

## Message

````
project: Add dynamic capabilities registration for "workspace/didChangeWorkspaceFolders" (#37005)

Fixes missing capability registration for
"workspace/didChangeWorkspaceFolders".

```
WARN  [project::lsp_store] unhandled capability registration: Registration { id: "e288546c-4458-401a-a029-bbba759d5a71", method: "workspace/didChangeWorkspaceFolders", register_options: Some(Object {}) }
```

We already correctly send back events to server on workspace add and
remove by checking this capability.
https://github.com/zed-industries/zed/blob/cf89691b85e4652093548c0bf8b79d881e26562b/crates/lsp/src/lsp.rs#L1353


https://github.com/zed-industries/zed/blob/cf89691b85e4652093548c0bf8b79d881e26562b/crates/lsp/src/lsp.rs#L1388

Release Notes:

- N/A
````

## Parents

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

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