Provide API for add-ons to register only unique watchers #3145
Labels
enhancement
New feature or request
pinned
This issue or pull request is pinned and won't be marked as stale
We are currently allowing add-ons to register file watchers freely, but I just realized this is not a good approach for a few reasons.
.rubocop.yml
(same as the Ruby LSP), then the server will receive duplicate changes for those patternsWe need to provide a proper API for file watching registration that provides the LSP with the opportunity to:
I haven't prototyped anything, but I think we may need a breaking change to expose a nicer API to add-ons. Instead of passing the
outgoing_queue
as aThread::Queue
, it would be better to have our own abstraction so that we can limit what add-ons can pass and ensure that bugs like these cannot happen.The text was updated successfully, but these errors were encountered: