Repository navigation
Description
Symptom
Three first-run docs say the editor analyzes saved files rather than unsaved buffers "by default" / "not enabled by default", implying an opt-in setting. No such setting exists, and the implementation deliberately forbids unsaved-buffer analysis unconditionally.
Evidence
- Root README line 210: "The editor analyzes saved files, not unsaved buffers, by default."
- docs/QUICKSTART.md lines 157-158: "Save files before refreshing: the editor analyzes the saved workspace, not unsaved buffers, by default."
- editors/vscode/README.md lines 50-51: "Save files before refreshing analysis. Unsaved-buffer overlays are not enabled by default."
- The extension contributes no such setting:
editors/vscode/package.jsonconfiguration properties are exactlyripr.enabled,ripr.server.*,ripr.check.mode,ripr.baseRef,ripr.includeUnchangedTests,ripr.seamDiagnostics,ripr.diagnosticProfile,ripr.gitTimeoutMs,ripr.refreshDeadlineMs,ripr.trace.server— nothing about unsaved buffers.editors/vscode/src/config.ts(RiprConfig) mirrors that list. - The extension never even reads buffer text:
grep -r 'document.getText' editors/vscode/srcreturns nothing, so there is no code path that could send unsaved content. - The server side is a fail-closed quarantine, not a default:
crates/ripr/src/lsp/backend.rs~line 5313 ("No digest seeding from the didOpen text ... Opening with a buffer that diverges from the analyzed saved content quarantines the document and withdraws its line-local diagnostics"),crates/ripr/src/lsp/state.rs~line 1221 ("never from the didOpen text, which may carry unsaved or recovered buffer content"),crates/ripr/src/lsp/diagnostics.rs~line 966 ("Document quarantine remains the independent authority that prevents unsaved buffers from being served as current").
Why it frustrates
A newcomer whose diagnostics look stale reads "not unsaved buffers, by default", opens the VS Code settings UI, and searches ripr's settings for the toggle that would turn unsaved-buffer analysis on. There is none, the extension source never sends buffer text, and the server is designed to reject it. The user then reasonably concludes the docs are unreliable or the feature is broken, instead of simply saving the file. The "by default" hedge actively sends them looking for something that cannot exist.
Suggested direction
Drop the "by default" hedges in the three files and state the behavior as unconditional, e.g. "The editor analyzes saved files only; unsaved buffer content is never analyzed." — matching the fail-closed quarantine design. If unsaved-buffer analysis is ever intended, that is the subject of #1625, and the wording can return when a real setting ships.
Classification
verified_current. Confidence: high (all three doc quotes read at origin/main 8a2e358; setting list read from package.json and config.ts; quarantine comments read in backend.rs/state.rs/diagnostics.rs).
Activity
fix(docs): align five documentation truths with shipped behavior (#7412)