Repository navigation
feat(runtime): expose managed process memory usage - #59
Merged
Merged
Conversation
Feat/lsp 添加 LSP 面板,将 LSP 全部内容都整合到 Rust core 里面
Framework identity moves into the core's execution detectors, alongside the Maven and Gradle detectors that were previously inline. Quarkus and Micronaut are launched by a Maven goal exactly the way Spring Boot is, so Swift models them as one `mavenFramework` case carrying the framework rather than three parallel cases -- capabilities, JDWP support, and Maven profiles all follow from that one branch. Fixtures for the detector matrix live under shared/fixtures/execution so the Windows client can assert against the same cases. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The core now owns the language-server child process, the Content-Length framing, the JSON-RPC request IDs, the document versions, and the protocol deadlines. It publishes lifecycle transitions, request completions, diagnostics, capabilities, server info, and logs on a queue Swift drains through lsp.pollEvents; Rust never calls back into Swift. StdioLanguageServerSession becomes a facade over that runtime: it issues semantic operations, polls the event queue, converts results into the existing UI models, and delivers completions keyed by opaque operation IDs. It no longer constructs a RawProcessSession -- the debug adapter keeps its own transport -- so `isRunning` is now derived from the last lifecycle state the runtime published rather than from a local process handle. A cross-platform process abstraction plus a scripted double let the engine be tested without timing-dependent real servers, covering all 15 completion criteria of the migration spec. The legacy raw-message and state-passing bridge surface is still present and comes out in the follow-up. Swift tests that drive LSP by injecting raw JSON into a fake process no longer describe how the layer works and are replaced with event-stream equivalents next; `swift build --build-tests` fails until then. Refs docs/architecture/lsp-runtime-migration.md (phases 2-3) Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
25 tasks done
19 of 25 tasks
xiaoyumuxi
added a commit
that referenced
this pull request
Nov 16, 2026
* build(desktop): Core 固定到 6a14126,带上 Git 忽略批量询问和悬浮缓存 PINNED_CORE_REVISION 从 5802c42(Core #59)升到 6a14126(Core #61), 新带进来两个 Core 改动: - #60:语言服务器的索引排除项按目录层批量询问 Git,不再每个父目录 起一次 git check-ignore。大型仓库打开后 gopls 不再晚约 30 秒启动 (#1994)。 - #61:LSP 引擎按会话保留悬浮答案,在同一个符号上再次停留时直接给出 答案,不再等语言服务器(#1995)。 宿主代码没有改动。 * docs(matrix): lsp-completion-hover 记录 Core #61 的悬浮答案保留 两端都通过 Core 6a14126 获得:同一文档版本的同一位置或同一行 range 内 再次悬浮直接返回保留的答案。写明上限、不保留的答案和清空条件;两端 仍为 partial / pending,原生窗口验收待做。
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.
内容
验证
swift buildswift build --build-testscargo test(152 项)swift test --filter MemoryUsageMonitorTests