ruby-lsp
ruby-lsp copied to clipboard
VSCode: "Pull diagnostics on save" setting is not working
Description
When I set "rubyLsp.pullDiagnosticsOn": "save", diagnostics do not show up after saving a file.
Reproduction steps
- Open a workspace in VSCode where Ruby LSP works properly
- Change the
rubyLsp.pullDiagnosticsOnsetting to"save" - Make a syntax error in an open ruby file and save the file.
- The error is not highlighted.
- Closing the tab and re-opening the file highlights the error as expected.
:wave: Thanks for the report, I am able to reproduce.
Observations:
- By default, when we make a change to a file, a
textDocument/diagnosticis sent. - With
rubyLsp.pullDiagnosticsOnset tosave, and we use "Save Without Formatting", there is a notification fordidChangeWatchedFiles, but not fortextDocument/diagnostic. - With
rubyLsp.pullDiagnosticsOnset tosave, and we save normally, there are notifications fortextDocument/didChangeandworkspace/didChangeWatchedFiles.
This issue is being marked as stale because there was no activity in the last 2 months