Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

support "workspace/didChangeWatchedFiles" #516

Closed
ayoub-benali opened this issue Feb 20, 2019 · 3 comments
Closed

support "workspace/didChangeWatchedFiles" #516

ayoub-benali opened this issue Feb 20, 2019 · 3 comments
Labels
sublime issue Issues related to shortcomings or bugs in the ST API

Comments

@ayoub-benali
Copy link
Contributor

At least Metals LSP server would need such a feature, see scalameta/metals#533

Any idea on how such a feature would be implemented given the sublime API ?

@rwols
Copy link
Member

rwols commented Feb 20, 2019

This is impossible with the current ST3 api.

@olafurpg
Copy link

FWIW, Metals has its own file watcher for critical functionality but due to API limitations we delegate workspace/didChangeWatchedFiles notifications to the editor client for nice-to-have but non-essential features like detecting build changes by background processes.

@tomv564
Copy link
Contributor

tomv564 commented Jun 9, 2019

Might be practical to write a small Sublime package that hooks workspace/didChangeWatchedFiles from LSP and uses watchman to service that API.

The LanguageHandler API is a bit too specific, this package could do it for any language, so we could expose a new API for hooking in these kind of services.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
sublime issue Issues related to shortcomings or bugs in the ST API
Projects
None yet
Development

No branches or pull requests

4 participants