Printable idea sheet
lsp_migration_remainder
reqlan rq/extension/language/support/ts-lsp-vs-rust-gaps.rq:6
Katz 0.140
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 ( 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.
- implementation
- server.rs, session.rs, analysis.rs, path_completion.rs, parser.rs, barrel.rs, mod.rs, reqlan-completion-provider.ts, reqlan-path-completion.ts, main.ts, idea-extract-flow.ts
- status
- in-progress
- todo
- The node language server remains the fallback when the setting is node or the binary is missing.
Interactive page: lsp_migration_remainder