Code reference detail
duty.rs
reqlan rq/extension/language/support/crates/reqlan-lsp/src/duty.rs
| Idea | Status | Tags | Summary | Katz |
|---|---|---|---|---|
| lsp_work_progress | done | The Rust server honors `$/cancelRequest` and reports work-done progress. A cancel that arrives before its request returns error - 32800. The handler does not run. A cancel seen at a checkpoint aborts the walk. The response is that error. No success result follows. Hover, definition, highlight, links, semantic tokens, code lens, inlays, document symbols, folding, and selection range check cancel when the request ends. They do not advertise work-done progress. References, rename, completion, and workspace symbol advertise `workDoneProgress`. Each of those walks checks cancel per document, index, or directory. A catalog scan checks cancel every 128 names. A request that carries `workDoneToken` sends `$/progress` begin, report, and end on that token. A report is sent when the percentage changes. Repeated ticks at the same percentage send nothing. Begin waits 150 ms, so a fast request sends no progress. End runs on every exit, including cancel. The confirm pass has no client token. When the client allows work-done progress, the server creates a token and reports " Checking references " after the same delay. A client message that arrives during that walk puts the URI back on the confirm queue. The server publishes no diagnostics for that stale walk. The waiting message is handled next. A request therefore does not wait behind the rest of the confirm pass. Related: [language_server_rust], [lsp_migration_remainder]. | 0.126 |
Reference labels
lsp_work_progress