Addons may want to listen for changes to files and do something about it. ruby-lsp-rails for example listens for structure.sql to restart the rails runner for updated column information, after https://github.com/Shopify/ruby-lsp-rails/pull/341 is merged.
Motivation
Addons may want to listen for changes to files and do something about it.
ruby-lsp-rails
for example listens forstructure.sql
to restart the rails runner for updated column information, after https://github.com/Shopify/ruby-lsp-rails/pull/341 is merged.ruby-lsp
itself wants to check for changes to the rubocop config in the server to resolve https://github.com/Shopify/ruby-lsp/issues/1457rubyfmt
forruby-lsp-rubyfmt
appears to change behaviour depending on.gitignore
and.rubyfmtignore
.I noticed that some activation methods didn't yet take the global state in the docs here . I've updated these in a separate commit here.