René's URL Explorer Experiment
Title: refactor(core): 拆出领域、LSP 和插件 crate,lithe-core 只留分发器与 FFI by xiaoyumuxi · Pull Request #28 · Lithe-IDEA/Lithe-core-rust · GitHub
Open Graph Title: refactor(core): 拆出领域、LSP 和插件 crate,lithe-core 只留分发器与 FFI by xiaoyumuxi · Pull Request #28 · Lithe-IDEA/Lithe-core-rust
X Title: refactor(core): 拆出领域、LSP 和插件 crate,lithe-core 只留分发器与 FFI by xiaoyumuxi · Pull Request #28 · Lithe-IDEA/Lithe-core-rust
Description: 关联
用户要求:Core 拆成尽可能小的 crate,方便并行编译,目录干净整洁。这个 PR 是第 2 步,把领域、LSP 和插件代码全部拆出 lithe-core。第 0 步 #26、第 1 步 #27 已合入。
顺手处理完的债务 Issue:
Closes 1lck/Lithe-IDEA#1858(只在测试里使用的 Swift 宿主模型适配器、无读者的 built-in-v1.json)
Closes 1lck/Lithe-IDEA#1868(没有发送方的 protocol::CoreEvent,4 处点名已删除客户端的注释)
Closes 1lck/Lithe-IDEA#1865(agent.json 中 8 个没有发送方的事件)
Closes 1lck/Lithe-IDEA#1857(hostIntegration 不可达的集成模型和来源)
Closes 1lck/Lithe-IDEA#1864(整个 workspace 的 clippy 告警)
Closes 1lck/Lithe-IDEA#1789(lithe-git-host、lithe-core-rules 的 clippy 告警)
Closes 1lck/Lithe-IDEA#1796:第 1–4 项已解决。第 5 项要求加 CI 门禁,按“不在 CI 加额外步骤”的要求不做。
Closes 1lck/Lithe-IDEA#1863(lithe-remote 公开项文档注释补齐,注释门禁去掉待补名单)
仍然打开的 Issue:1lck/Lithe-IDEA#1856。Core 里还剩 5 类语言默认值:3 份忽略目录名单、rust-analyzer/gopls 的设置覆盖、KNOWN_RUNTIME_TOOLS 里的 go/node、execution 的项目探测器和 fingerprint_input、行注释符表。改为插件注入需要单独设计契约,不在这个 PR 里做。
这个 PR 做什么
1. lithe-core 只剩分发器和 FFI
origin/main
这个分支
crates/core/src 总行数
180 358
40 583
其中非测试代码
—
6 785
workspace crate 数
12
46
lithe-core 现在只有这些文件:
文件
行数
内容
lib.rs
102
crate 入口、公开再导出
protocol/command.rs、protocol/mod.rs
1 679
请求解析 CoreCommand 和 14 个命令家族子枚举
runtime/dispatcher.rs
731
命令分发入口和不属于任何家族的命令
runtime/dispatcher/*.rs(14 个)
3 454
每个命令家族一个文件,如 git.rs、lsp.rs、plugins.rs
runtime/ffi.rs
297
C ABI
runtime/request_trace.rs
402
请求轨迹
runtime/helper_failures.rs
112
辅助进程失败记录
tests/
33 798
经分发器跑的端到端命令测试
lsp、plugins 以及各领域模块已从 lithe-core 删除。
2. 新增 34 个 crate
都放在 rust/crates/ 下。代码从 lithe-core 原样搬出,只调整了可见性和导入路径。“内容”一列取自各 crate 的 Cargo.toml description。
crate
行数
依赖的工作区 crate
内容
lithe-diagnostics
9 053
protocol
结构化日志目录、通道、记录、查询,以及有界 Core 事件队列
lithe-text
1 200
protocol
UTF-16 位置、文本编辑规划,以及不依赖语言服务器的补全、悬停、跳转和代码片段
lithe-editor
2 422
protocol, text
确定性的编辑器命令:行编辑、注释符、查找、编辑计划、导航历史、偏好、最近文件、恢复决策
lithe-request-context
368
diagnostics
单个请求范围内的状态:来源、轨迹关联,以及有序、已脱敏的宿主事件通道
lithe-workspace
3 568
diagnostics, git-host, protocol, remote, request-context
工作区宿主路由:远程会话和本地或远程文件系统
lithe-git
29 374
ai, core-rules, diagnostics, diff, git-host, github, protocol, remote, request-context, workspace
Git 查看、修改和历史
lithe-plugin-model
3 180
protocol
插件清单的共享词汇:拒绝原因、标识、版本、模板、图标、可执行文件、设置、进程、能力版本
lithe-toolchain
4 942
plugin-model, protocol
插件提供的工具链策略:工具定义、目录固定、使用方偏好、解析和版本检查
lithe-vcs
2 204
plugin-model, protocol
统一 VCS 模型:提供者声明、根目录探测、请求规划、回复校验
lithe-execution
4 946
diagnostics, plugin-model, protocol, toolchain, workspace
运行配置:生成、解析、启动环境、项目运行项发现
lithe-debug
14 725
diagnostics, plugin-model, protocol
DAP 会话:适配器声明、传输生命周期、调试器模型
lithe-project-generators
3 378
plugin-model, protocol
插件声明的项目生成器:声明、新建项目表单、生成计划、压缩包解压
lithe-build
11 150
debug, execution, plugin-model, protocol, remote, workspace
插件声明的构建系统:校验、静态模型、argv 计划、输出解码
lithe-project
10 167
core-rules, diagnostics, git, protocol, request-context, workspace
项目服务:工作区文件、索引策略、搜索、本地历史、文档渲染
lithe-document-uri
354
protocol
原生路径和 LSP 文档 URI 的词法互转
lithe-lsp-policy
1 107
core-rules, document-uri, protocol
语言工具决策:文档标识、跳转目标、工作区编辑计划、补全合并、激活、问题查询
lithe-lsp-transport
1 935
diagnostics, protocol, remote, workspace
语言服务器进程边界:本地和远程 stdio 启动、Content-Length 分帧,以及给引擎测试用的脚本服务器
lithe-lsp-client
6 290
diagnostics, document-uri, plugin-editor, plugin-keymap-import, plugin-model, plugin-rpc, protocol, text, vcs
有状态 LSP 客户端:能力协商、文档、功能请求,以及服务器提供的各种 provider 协议
lithe-lsp-engine
14 607
diagnostics, document-uri, lsp-client, lsp-transport, plugin-function-relay, plugin-language-servers, plugin-rpc, plugin-server-policy, project, protocol, text, vcs, workspace
语言服务器会话:子进程、请求截止时间、事件队列、插件服务器调用、跨插件函数中转
lithe-plugin-editor
1 604
plugin-model, protocol
插件的编辑器贡献:宿主渲染的编辑器动作,以及后端注册的语言功能 provider
lithe-plugin-grammar
356
plugin-model
插件语言的声明式语法高亮:语法声明和 TextMate 语法解码
lithe-plugin-native-ui
431
plugin-model, protocol
版本化的原生插件界面:有界视图数据、稳定标识、命名动作
lithe-plugin-content-providers
85
plugin-model, protocol
插件后端以 URI scheme 提供的只读文档,以及对每次回复的检查
lithe-plugin-language-servers
746
plugin-model, protocol
插件自带的语言服务器会话:声明的请求、通知、命令、状态保留、启动解析
lithe-plugin-output-links
599
document-uri, plugin-model, protocol, toolchain
插件声明的输出链接匹配器:控制台行匹配并解析到工作区位置
lithe-plugin-backend
115
plugin-model
清单声明的插件后端:每个插件一个长期进程、触发条件、可请求的宿主服务
lithe-plugin-functions
259
plugin-model
清单的 pluginFunctions:插件导出给其他插件的函数,以及它调用的导出函数
lithe-plugin-keymap-import
509
plugin-model, protocol
插件声明的快捷键导入 provider:声明、来源计划、回复校验
lithe-plugin-rpc
2 643
plugin-keymap-import, plugin-language-servers, plugin-model, protocol
插件后端 JSON-RPC:litheFunctions 协商、函数调用、宿主方法和宿主通知目录及授权
lithe-plugin-function-relay
2 028
plugin-functions, plugin-model, plugin-rpc
跨插件函数中转规则:谁能调用哪个导出函数,以及正在进行的调用
lithe-plugin-server-policy
947
document-uri, plugin-language-servers, plugin-rpc, protocol
插件语言服务器的会话策略:准入、闸门、合并命令、操作归属
lithe-plugin-manifest
3 843
build, debug, plugin-backend, plugin-functions, plugin-grammar, plugin-keymap-import, plugin-language-servers, plugin-model, plugin-native-ui, plugin-output-links, plugin-rpc, project-generators, protocol, toolchain, vcs
声明式插件清单:校验、归一化,以及由清单推出的运行、测试、调试、设置和语言服务器计划
lithe-plugin-marketplace
839
plugin-manifest, plugin-model, protocol
插件市场索引:校验、平台和插件 API 过滤、来源 URL 解析、安装审查
lithe-plugin-web-content
1 373
plugin-manifest, plugin-model, protocol
宿主工具窗口里的插件页面:页面内容、可发起的桥接请求、回复和事件的分帧
文件名自然排序(file_names)移到了 lithe-core-rules。
3. 依赖层级
按普通依赖分层,同一层的 crate 互不依赖,可以并行编译:
层
crate
0(8)
ai, core-rules, git-host, ide-host, network, process, protocol, remote
1(7)
diagnostics, diff, document-uri, github, plugin-model, terminal, text
2(15)
debug, editor, lsp-policy, plugin-backend, plugin-content-providers, plugin-editor, plugin-functions, plugin-grammar, plugin-keymap-import, plugin-language-servers, plugin-native-ui, project-generators, request-context, toolchain, vcs
3(3)
plugin-output-links, plugin-rpc, workspace
4(6)
execution, git, lsp-client, lsp-transport, plugin-function-relay, plugin-server-policy
5(2)
build, project
6(2)
lsp-engine, plugin-manifest
7(2)
plugin-marketplace, plugin-web-content
8(1)
core
4. 编译时间
测法:cargo build -p lithe-core --lib,dev profile,10 核 macOS。外部依赖已预先编好,只清掉工作区 crate。两边在同一台机器上依次运行,测量期间没有编辑代码,也没有运行其他编译。
场景
origin/main
这个分支
清空工作区 crate 后全量编译
23.2s
14.7s(−37%)
改动 LSP 客户端(lsp-client/src/client.rs)后增量编译
3.8s
1.2s
改动分发器(core/src/runtime/dispatcher.rs)后增量编译
3.5s
1.3s
这组数字测于第 6 节的文件拆分之前。文件拆分不改变 crate 边界,只影响单个 crate 内部。
5. 拆分时顺手做的整理
统一清单校验:lithe-plugin-model 新增 PluginManifest trait(validate 和 id)。VCS、调试、项目生成器、构建四个领域 crate 的命令改为泛型 cmd::,不再逐个传入校验函数。
删除已退役客户端的遗留:
Swift 宿主模型适配器 lsp/languages/swift.rs。LSP 测试改为直接调用生产路径 client_feature_request_canonical。
rust/fixtures/modules/built-in-v1.json,以及 application-boundary.md 的 Module Lifecycle Contract 一节。
protocol::CoreEvent。
agent.json 的 8 个事件,保留 agent 根。
hostIntegration 只保留“存在即拒绝”:
语言服务器和构建系统的 hostIntegration 不论取什么值,都以 plugin.integration.unsupported 拒绝,字段路径不变。
删除不可达的集成能力和资源模型、ModelSource/TestResultsSource/DependenciesSource 的 HostIntegration 成员,以及只为它存在的官方插件检查。
clippy 清零:整个 workspace 的 clippy 告警清零,两个目标都检查过。没有新增 #[allow]:
lithe-lsp-engine 的 runtime_error 改为接收 FailureContext,同时删除 push_issue_log_event。
lithe-git 的输出转发收拢为 OutputTarget。
工作区扫描深度原来对空迭代器取 min,这个写法已删除,默认值仍是不限深度。
测试改名:构建插件快照测试改名为 published,去掉过时的 community 措辞。
lithe-remote 文档补齐(#1863):公开项全部补上文档注释,verify-rust-core-comments.sh 删掉待补名单,现在每个 crate 都按 missing_docs 检查,没有例外。
6. 文件拆分
超过约 1 500 行生产代码的文件全部按主题拆成子模块。条目原样搬动,只把 super:: 改成 crate::、把跨模块用到的私有项放宽到 pub(crate),不改函数体。剩下最大的手写文件,生产代码在 1 200–1 450 行之间(如 protocol/command.rs、git/src/history.rs)。diagnostics/src/catalog_generated.rs 是生成文件,不拆。
crate
原文件
行数(前 → 后)
拆出的子模块
lithe-git
src/lib.rs
9 895 → 222
src/ 下按主题的约 60 个模块(状态、提交、历史、变基、补丁、推送、搁置等),测试在 tests.rs、graph_tests.rs
lithe-debug
src/engine.rs
7 333 → 457
engine/{state,messages,execution,breakpoints,inspection,step_filters,fields,tests}.rs
lithe-lsp-engine
src/lib.rs
5 844 → 346
src/{engine,state,lifecycle,documents,requests,operations,events,server_messages,host_requests,function_calls,function_provider,plugin_server_calls,relay_hub,provider_events,configuration,scan_settings,validation,logging}.rs
lithe-core
runtime/dispatcher.rs
4 120 → 731
runtime/dispatcher/ 下 14 个家族文件;CoreCommand 的这些家族改为嵌套子枚举(如 CoreCommand::Git(GitCommand::Status)),命令名字符串不变
lithe-plugin-manifest
src/lib.rs
3 515 → 61
src/{manifest,validation,declarations,providers,provider_launch,launch,run_plans,commands,permissions,settings,settings_surfaces,templates,ui}.rs
lithe-build
src/manifest.rs
2 571 → 219
manifest/{provider,detection,invocation,options,model,tasks,run,testing,diagnostics,dependencies,checks}.rs
lithe-lsp-client
src/client.rs
2 564 → 284
client/{lifecycle,server_messages,json_rpc,validation,requests,diagnostics,results,capabilities}.rs
lithe-execution
src/configuration.rs
2 471 → 89
configuration/{requests,document,generation,resolve,editing,launch,validation,merge,layers,requirements,inputs}.rs
lithe-plugin-rpc
src/lib.rs
2 452 → 894
src/{functions,host_requests,host_notifications,host_params,failures}.rs;常量、错误码 codes 和测试留在 lib.rs
lithe-project
src/files.rs
2 341 → 145
files/{events,requests,snapshot,visibility,search,search_everywhere,replace,text_io,paths,matcher}.rs
lithe-debug
src/adapters.rs
2 175 → 215
adapters/{declaration,process,validate_adapter,validate_configuration,validate_launch,resources,start,plan,checks}.rs
lithe-toolchain
src/resolution.rs
1 616 → 631
resolution/{probe,launch,discovery,snapshot,project,installations,automatic}.rs;resolve 留在父文件
跟着改的引用:
rust/fixtures/debug/v1-baseline.json 的 27 条测试证据路径从 engine.rs 改为 engine/tests.rs。
插件函数协议拆成多个文件后,README、契约 README、协议更新记录和三个 SDK 的协议注释改为指向 rust/crates/plugin-rpc/src/ 目录。
契约和协议
插件契约有一处行为变化,已写进 shared/plugins/reference/protocol-changelog.md 的 2026-11-14 一行(本 PR #28):
schema 删除构建系统 model、test.results、dependencies 中不可达的 source: "hostIntegration" 分支,以及语言服务器 hostIntegration 的 capabilities/resources。
source: "hostIntegration" 现在按未知来源处理,报 plugin.manifest.invalid。原来带名字时报 plugin.integration.unsupported。这个来源从未被接受过,现有 fixture 不受影响。
契约 README、指南和参考页已同步,并去掉了“社区插件”的说法。
实现路径迁移:capabilities.rs → rust/crates/plugin-model/src/capabilities.rs,插件函数协议 → rust/crates/plugin-rpc/src/,函数中转 → rust/crates/plugin-function-relay/。
不动的部分
命令名、C ABI、头文件位置、JSON 字段和其他错误码都不变。上面这处契约变化之外,没有改动算法和行为。
测试随代码一起搬,没有删除测试。
已合入 main 的 #29:默认初始化超时 60000 毫秒和对应测试移到 lsp-engine/src/lib.rs、lsp-engine/src/tests.rs。
CI 工作流不变。注释门禁本来就遍历 rust/crates/*,新 crate 自动接受检查。
桌面端合入后要做三件事:
升级固定版本。
更新 Lithe-IDEA 中指向 Core 旧路径的引用(如 AGENTS.md 里的 capabilities.rs、plugin_function.rs)。
删除桌面端多余的 hostIntegration 检查。
验证
在 rust/ 下:
cargo fmt --all --check:通过。
cargo check --workspace --all-targets:本机目标和 x86_64-pc-windows-msvc 都没有警告。
cargo clippy --workspace --all-targets:本机目标和 x86_64-pc-windows-msvc 都是 0 条告警。
cargo test --workspace:1936 passed / 0 failed。
在仓库根:
scripts/rust-core/verify-rust-core-comments.sh:通过。
node shared/plugins/scripts/verify-docs.mjs:通过。
node shared/plugins/scripts/sdk-e2e.mjs:Node、Java、Rust 三个 SDK 和构建场景全部通过。
Open Graph Description: 关联
用户要求:Core 拆成尽可能小的 crate,方便并行编译,目录干净整洁。这个 PR 是第 2 步,把领域、LSP 和插件代码全部拆出 lithe-core。第 0 步 #26、第 1 步 #27 已合入。
顺手处理完的债务 Issue:
Closes 1lck/Lithe-IDEA#1858(只在测试里使用的 Swift 宿主模型适配器、无读者的 built-in-v1.jso...
X Description: 关联
用户要求:Core 拆成尽可能小的 crate,方便并行编译,目录干净整洁。这个 PR 是第 2 步,把领域、LSP 和插件代码全部拆出 lithe-core。第 0 步 #26、第 1 步 #27 已合入。
顺手处理完的债务 Issue:
Closes 1lck/Lithe-IDEA#1858(只在测试里使用的 Swift 宿主模型适配器、无读者的 built-in-v1.jso...
Opengraph URL: https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28
X: @github
direct link
Domain: github.com
IPv4 address: 140.82.112.3
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:591b58b4-209d-aa5d-790f-c5fa4b0f80fd |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E844:DD526:1CA8A00:275D0E8:6B0722CF |
| html-safe-nonce | 47205c616cae8074432a954f3b2fe05ceac879f83dfdfc8cf84b2eeb9ff91b18 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODQ0OkRENTI2OjFDQThBMDA6Mjc1RDBFODo2QjA3MjJDRiIsInZpc2l0b3JfaWQiOiI4ODg0Nzg2OTk3NzY4OTU0NTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6efcfaa8ab0472a3c6c7a57c4bb14bf0f4fa2eb4c36d84ad2629bb13e007b3e2 |
| hovercard-subject-tag | pull_request:5303624888 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files |
| twitter:image | https://avatars.githubusercontent.com/u/145102356?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/145102356?s=400&v=4 |
| og:image:alt | 关联
用户要求:Core 拆成尽可能小的 crate,方便并行编译,目录干净整洁。这个 PR 是第 2 步,把领域、LSP 和插件代码全部拆出 lithe-core。第 0 步 #26、第 1 步 #27 已合入。
顺手处理完的债务 Issue:
Closes 1lck/Lithe-IDEA#1858(只在测试里使用的 Swift 宿主模型适配器、无读者的 built-in-v1.jso... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5a20fe9aa5e45c6df9328a5ec3f167a7805856126d8bf72d810541ca01962ef9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/Lithe-IDEA/Lithe-core-rust git https://github.com/Lithe-IDEA/Lithe-core-rust.git |
| octolytics-dimension-user_id | 340144206 |
| octolytics-dimension-user_login | Lithe-IDEA |
| octolytics-dimension-repository_id | 1449354685 |
| octolytics-dimension-repository_nwo | Lithe-IDEA/Lithe-core-rust |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1449354685 |
| octolytics-dimension-repository_network_root_nwo | Lithe-IDEA/Lithe-core-rust |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6ce961d9a663a99bc4bcab9fd6ac5cca54bd6fcc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Skip to content | https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2FLithe-core-rust%2Fpull%2F28%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2FLithe-core-rust%2Fpull%2F28%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=Lithe-IDEA%2FLithe-core-rust |
| Reload | https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files |
| Reload | https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files |
| Reload | https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files |
| Lithe-IDEA | https://github.com/Lithe-IDEA |
| Lithe-core-rust | https://github.com/Lithe-IDEA/Lithe-core-rust |
| Code | https://github.com/Lithe-IDEA/Lithe-core-rust |
| Issues1 (1) | https://github.com/Lithe-IDEA/Lithe-core-rust/issues |
| Pull requests2 (2) | https://github.com/Lithe-IDEA/Lithe-core-rust/pulls |
| Actions | https://github.com/Lithe-IDEA/Lithe-core-rust/actions |
| Projects | https://github.com/Lithe-IDEA/Lithe-core-rust/projects |
| Security and quality | https://github.com/Lithe-IDEA/Lithe-core-rust/security |
| Insights | https://github.com/Lithe-IDEA/Lithe-core-rust/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FLithe-IDEA%2FLithe-core-rust%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2FLithe-IDEA%2FLithe-core-rust%2Fissues%2Fnew%2Fchoose |
| xiaoyumuxi | https://github.com/xiaoyumuxi |
| main | https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main |
| refactor/core-split-logging-workspace | https://github.com/Lithe-IDEA/Lithe-core-rust/tree/refactor/core-split-logging-workspace |
|
Conversation
1
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28 |
|
Commits
38
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits |
|
Checks
5
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/checks |
|
Files changed
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files |
| Please reload this page | https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files |
|
refactor(core): 拆出领域、LSP 和插件 crate,lithe-core 只留分发器与 FFI
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files#top |
|
Show all changes
38 commits
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files |
|
05ba552
refactor(core): 拆出 lithe-diagnostics
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/05ba5528e26d43b6e7f1825bb4534387006daeb7 |
|
e2758d4
refactor(core): 拆出 lithe-text 与 lithe-editor
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/e2758d474fca8d4b39676c3db4784526c743ae3b |
|
ed08373
refactor(core): 拆出 lithe-request-context
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/ed08373651b0f5ba07067ad4e9512df5ff943157 |
|
0e41497
refactor(core): 文件名自然排序移到 lithe-core-rules
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/0e41497a9ba2e60501076735e9b199e38dd1f4f3 |
|
90e97f7
refactor(core): 拆出 lithe-workspace
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/90e97f718ba64dd799db2b45bbbcdc3dffda82a1 |
|
4db1f76
refactor(core): 拆出 lithe-git
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/4db1f76c0333bf481b91de6b1e9aa1c36a415ab2 |
|
115f9ac
refactor(core): 拆出 lithe-plugin-model
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/115f9acb459e9a16dc4639fbf380925202011d3d |
|
45fd0c6
refactor(core): 拆出 lithe-toolchain
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/45fd0c62e1bd1bffb616f937da3df23f85c1e542 |
|
658c752
refactor(core): 拆出 lithe-vcs
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/658c7529f924c7a03956c9bc4ceea4d038eeb23b |
|
364e2c3
refactor(core): 拆出 lithe-execution
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/364e2c33fa264b15d9c97e1812e2df83e70d12c4 |
|
c141336
refactor(core): 拆出 lithe-debug
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/c141336f5631513482f8d307f4cc4f73d3c0a680 |
|
3dbe7be
refactor(core): 拆出 lithe-project-generators
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/3dbe7be222d5a3ee036fc7722381b249c9bc79db |
|
3578233
refactor(core): 领域 crate 统一经 PluginManifest 校验插件清单
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/357823362978b32196ec3aff79429602eaab93ae |
|
46cd478
refactor(core): 拆出 lithe-build
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/46cd478adf3ef4fbb8eaf73a7a946276314de7b5 |
|
e310846
refactor(core): 拆出 lithe-project
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/e310846eb9c555c976c8240cdc803eef16da7828 |
|
90ea303
refactor(core): 拆出 lithe-document-uri 与 lithe-lsp-policy
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/90ea303c738f3e4ed59c4c9b82bfe3e493310b29 |
|
b1262b2
refactor(core): 拆出 lithe-lsp-transport
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/b1262b2f5f704878bccb94e093a9ec318d8113d6 |
|
9f0150a
refactor(core): 拆出插件贡献叶子 crate
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/9f0150a9c28004e5207e6226ec496759db0ace44 |
|
b6c2a43
refactor(core): 拆出 lithe-plugin-rpc、lithe-plugin-backend、lithe-plugin…
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/b6c2a43815a124b31f8a73e4d4d245517c6d653a |
|
6d6ebc5
refactor(core): 拆出 lithe-plugin-manifest
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/6d6ebc5749f21b87c6ab33e67c9228c7281a94ee |
|
1ee4dab
refactor(core): 拆出 lithe-plugin-web-content、lithe-plugin-marketplace,…
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/1ee4dabd5317dd3a832606d0a1c74c9047f7e2f1 |
|
674f685
chore(core): 删除已退役客户端的遗留与无发送方的事件
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/674f6851de11f2428f8b65dea5b22f8f67291e62 |
|
0c93233
refactor(core): hostIntegration 只保留“存在即拒绝”,删除不可达的集成模型与来源
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/0c9323302f53e6509cd410f0ec33f8bb71fc15eb |
|
c9c4aae
refactor(core): 拆出 lsp-client、lsp-engine、plugin-function-relay、plugin…
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/c9c4aae503f0cef9137426f8d0efdd874a6f3c4e |
|
9884ccd
test(core): 构建插件快照测试改名 published,去掉过时的 community 措辞
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/9884ccdf291c61cbea92a42e0af90dafb117d13e |
|
e9c0583
chore(core): 清掉整个 workspace 的 clippy 警告
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/e9c0583116ca028a68f63a8ef5e101e1e939c755 |
|
2d5550c
fix(core): Windows 目标下的测试导入与 indexing 编译错误
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/2d5550c6b4916d0055895050767a7532ba452e8e |
|
5ae7e9b
docs(plugins): 协议更新记录补上 hostIntegration 来源删除与契约实现路径迁移
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/5ae7e9be9eee9b385bed9a44b442470a912535c3 |
|
5e634a8
refactor(core): 收拢长参数列表,去掉新加的 too_many_arguments 放行
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/5e634a8a02b893bc676f1f8a1d1ae1126f51c7ec |
|
5c1c41d
refactor(git): lib.rs 按主题拆成模块,只调整可见性
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/5c1c41db231d27a3ef25e1ec2d37778ca39ab06d |
|
60f3df6
refactor(lsp-engine): lib.rs 按主题拆成模块,只调整可见性
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/60f3df685ae47c10b8bd4fcdf51ed21fa4a9bb50 |
|
4136dc3
refactor(debug): engine.rs 按主题拆成子模块,测试移到 engine/tests.rs
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/4136dc3f189d04240e3886e630576913ad48aedb |
|
6a9896b
refactor(core): 分发器按命令家族拆到 runtime/dispatcher/ 子模块
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/6a9896b71129d702339523a2d9f89a1e2fee50a2 |
|
a79d3a1
refactor(plugin-manifest): lib.rs 按主题拆成模块,只调整可见性
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/a79d3a14c1a0b2f7a710f785948ab74c7567610e |
|
f8f803e
docs(remote): 补齐 lithe-remote 公开项文档注释,注释门禁去掉待补名单(#1863)
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/f8f803e73ff140476bfe4650ffde23dca5e02552 |
|
5fa0ea1
fix(debug): 行为基线里的测试证据指向拆分后的 engine/tests.rs
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/5fa0ea1b6fdb090097b7b036c406aa210bf54e26 |
|
c59c8ed
refactor(core): 七个两千行左右的文件按主题拆成子模块,只调整可见性
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/c59c8ed4df7ef65ea85f230dff2c8f9d79c91c9d |
|
d235401
merge: 合入 main 的 #29,冷启动初始化超时移到 lithe-lsp-engine
xiaoyumuxi Nov 13, 2026
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/commits/d235401fa2d6a492f27beb45e0679be846d1b0a5 |
|
Clear filters
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files |
| Please reload this page | https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files |
| Please reload this page | https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files |
| README.md | https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
View file
| https://github.com/Lithe-IDEA/Lithe-core-rust/blob/d235401fa2d6a492f27beb45e0679be846d1b0a5/README.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/{{ revealButtonHref }} |
|
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
| https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
| Please reload this page | https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files |
| Please reload this page | https://github.com/Lithe-IDEA/Lithe-core-rust/pull/28/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |
Response headers:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width
URLs of crawlers that visited me.