castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
425 stars 23 forks source link

solargraph not updating on changes #269

Open towo opened 1 year ago

towo commented 1 year ago

Hey, I'm not sure if this is a VS code thing or a solargraph issue.

Solargraph works fine when I open a file, but it doesn't seem to rerun the reporters/diagnostics when changing the file. ISTR this working on the fly, but now, even when saving the file, the diagnostics don't update and I need to restart the solargraph server to get updated cop results.

Is this a configuration issue, or could I be running into a bug?

castwide commented 11 months ago

In your VS Code settings, solargraph.diagnostics should be set to true. If you have a .solargraph.yml file in your project, make sure it has diagnostics reporters set, e.g.:

reporters:
- rubocop

More information: https://solargraph.org/guides/configuration