standardrb / vscode-standard-ruby

The official VS Code extension for the Standard Ruby linter and code formatter
Other
101 stars 7 forks source link

Restart Language Server on .standard_todo.yml change #16

Closed chadwilken closed 7 months ago

chadwilken commented 7 months ago

First off thanks for this extension, it's great!

We are incrementally adopting standard and have a .standard_todo.yml file in the root of our project. I noticed that I have to restart the server every time I edit that file so that it shows me warnings and errors for the files I just removed from the list. I have tried to work around this will a file watcher that issues kill to the pid for the server and it auto-restarts but it shows an error Format request arrived before text synchonized; skipping: {file} when I attempt to auto-format the file on save. Ultimately the only way to get auto-format working is to manually restart the server.

Follow Up

It looks like we could perhaps pass standard_todo.yml like you do here and that would take care of it, is that correct? Happy to open a PR if that is the case.