Cluster detail
ts-lsp-vs-rust-gaps.rq
Ideas defined in reqlan rq/extension/language/support/ts-lsp-vs-rust-gaps.rq.
file
3 ideas
1 files
| Idea | File | Status | Summary | Katz |
|---|---|---|---|---|
| lsp_incremental_sync | reqlan rq/extension/language/support/ts-lsp-vs-rust-gaps.rq | done | The Rust server syncs open buffers with incremental didChange. didOpen sends the full text. Each didChange applies its content changes in order, then reparses the whole buffer. A change with no range replaces the buffer. A change with a range splices that UTF-16 range. rangeLength is ignored. . rq and comment buffers both splice. Open and close notifications stay on. The node server keeps Langium incremental sync. Related: [language_server_rust], [lsp_migration_remainder]. | 0.126 |
| lsp_migration_remainder | reqlan rq/extension/language/support/ts-lsp-vs-rust-gaps.rq | in-progress | The default language server is [language_server_rust]. The Rust process serves the editor methods the product uses: sync, diagnostics, definition, highlight, links, hover, semantic tokens, inlay hints, code lens, completion, code actions, rename, references, document symbols, folding, and workspace symbols. Custom requests are file reference, wildcard reference, and reference-search site. The host pushes the inbound snapshot, settings, attribute catalog, name catalog, and bases. Import and file-path completion run in the Rust server ( [import_code_completion], [import_code_completion_rendering], [import_code_completion_auto_file_import] ). Triggers are `[`, `@`, `.`, `/`, and `"`. Import strings complete `.rq` files and directories. Anonymous bracket paths complete every file and directory, with the same ranking and alias rules. A cross-file idea shows its relative import path and inserts a from-import on accept when that name is not already imported. Move and delete text plans are native ( [refactor_symbol_move], [refactor_symbol_delete] ). The host passes open texts and index referencers. It does not build a Langium document. Barrel page planning is native. Document symbols and folding are flat idea lists. Semantic tokens include `keyword` ( `import`, `from`, `as` ) and file-symbol `method` spans. The theme maps `decorator`, `operator`, `keyword`, and `method` onto TextMate scopes. [lsp_file_watch] is the node document manager. The Rust server keeps no closed syntax tree. A neighbor read checks the file stamp. The index host watches `**/*.rq`. Do not port the Langium watch rebuild. `textDocument/selectionRange` grows with the parse ( ["../vsc-primitives.rq".selection_range] ). The activity bar ' s `selectionRange` is the editor selection. A definition link ' s `originSelectionRange` is the token under the caret. Rust text sync is incremental ( [lsp_incremental_sync] ). The node server keeps Langium incremental sync. Rust cancellation and work-done progress are [lsp_work_progress]. The node connection already accepts cancel tokens. Index and search progress stay on the extension host. The Rust parser applies relative body indent. The node process ( `packages/extension/src/language/main.ts` and the Langium providers ) is the fallback when the setting is `node` or the binary is missing. The extension host stays in TypeScript: the language client, command UI, index, webviews, and TextMate. Comment rename in non- `.rq` files is a host rename provider. It reads the comment text. It does not build a Langium document. | 0.140 |
| lsp_work_progress | reqlan rq/extension/language/support/ts-lsp-vs-rust-gaps.rq | 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 |
Cluster graph
Initialising graph…