Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Send workspace related notifications #63

Open
lukel97 opened this issue Jan 18, 2020 · 1 comment
Open

Send workspace related notifications #63

lukel97 opened this issue Jan 18, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@lukel97
Copy link
Owner

lukel97 commented Jan 18, 2020

We should detect if the server supports workspace capabilities, and send appropriate notifications such as haskell/ghcide#322

@lukel97 lukel97 added the enhancement New feature or request label Jan 18, 2020
@lukel97
Copy link
Owner Author

lukel97 commented May 14, 2020

For the workspace/didChangeWatchedFiles notifications, the server needs to first send a registerCapability request to the client for DidChangeWatchedFilesClientCapabilities, since it doesn't support static registration. From then on it can send the notifications, presumably for files that match the patterns specified in the capabilities.

lukel97 added a commit that referenced this issue May 14, 2020
Part of the work towards #63.
The session will now keep track of the capabilities that are registered
and unregister them when requests come in from the server.
openDoc' has been removed and replaced with createDoc.
createDoc will send out workspace/didChangeWatchedFiles notifications
whenever the server registers for it.
lukel97 added a commit to haskell/lsp that referenced this issue Feb 27, 2021
Part of the work towards lukel97/lsp-test#63.
The session will now keep track of the capabilities that are registered
and unregister them when requests come in from the server.
openDoc' has been removed and replaced with createDoc.
createDoc will send out workspace/didChangeWatchedFiles notifications
whenever the server registers for it.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant