Skip to content

feat(runtime): expose managed process memory usage - #59

Merged
1lck merged 57 commits into
preview/0.2.0from
feat/generic-run-core
Aug 12, 2026
Merged

1lck merged 57 commits into
preview/0.2.0from
feat/generic-run-core

Conversation

@1lck

@1lck 1lck commented Aug 12, 2026

Copy link
Copy Markdown
Owner

内容

  • 右下角内存统计拆分为 Lithe、LSP、运行服务和总计
  • macOS 按托管进程树采样 RSS,公共层保留跨平台采样边界
  • Rust LSP 启动响应回传子进程 PID,Swift 生命周期自动登记/释放
  • 增加服务识别、端口展示和内存分类测试

验证

  • swift build
  • swift build --build-tests
  • cargo test(152 项)
  • swift test --filter MemoryUsageMonitorTests

1lck and others added 30 commits August 7, 2026 23:31
xiaoyumuxi and others added 25 commits August 11, 2026 19:44
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>
@1lck
1lck merged commit 887a9f4 into preview/0.2.0 Aug 12, 2026
1 of 2 checks passed
@xiaoyumuxi
xiaoyumuxi deleted the feat/generic-run-core branch August 13, 2026 11:10
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,原生窗口验收待做。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants