Dev/lsp#765
Open
cooffeeRequired wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds optional Language Server Protocol (LSP) support to Terax’s built-in editor — without bundling language servers into the app binary.
This addresses #XXX (LSP support request). The design prioritizes a small Terax footprint: servers are resolved externally or installed on demand into app data, and the frontend LSP stack is lazy-loaded only when a supported file is opened.
Size impact
zip,tar,flate2, blockingreqwest). Measured release binary on Windows: ~7.7 MB (same order of magnitude as current Terax; exact delta vsmainshould be confirmed on CI/release builds).import()when a supported editor tab is opened.eager-budgettests pass;@codemirroris not in the eager graph.540 KBstartup /1.5 MBtotal gzip) remain within limits when built frommain-equivalent baseline.…/lsp/), not in the Terax installer. Users who never enable LSP pay zero extra disk for servers.What’s included
Editor (lazy-loaded LSP client)
#[cfg])(project root, server)with idle poolingpackage.json→ deps-lsp + JSON schema server)Supported languages / servers
rust-analyzertypescript-language-serverpyright-langservergoplsclangdintelephensevscode-json-language-serverbash-language-serverdeps-lsp(package.json,Cargo.toml,go.mod, …)Rust backend (
src-tauri/src/modules/lsp/)Content-LengthframingSettings UI
Debug / DX
idle|unsupported|spawning|ready|error|closedArchitecture (high level)