Skip to content

fix:修复左侧Git提交文件无法全选问题 - #23

Closed
Absinthe-yl wants to merge 1 commit into
1lck:mainfrom
Absinthe-yl:feat/sinthdev
Closed

Absinthe-yl wants to merge 1 commit into
1lck:mainfrom
Absinthe-yl:feat/sinthdev

Conversation

@Absinthe-yl

Copy link
Copy Markdown
Contributor

一次批量 Git 命令 + 一次状态刷新

@Absinthe-yl
Absinthe-yl requested a review from 1lck as a code owner August 9, 2026 06:18

@1lck 1lck left a comment •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这版先别合并哈,“全选暂存”这里还有个问题需要修一下,具体原因和修改建议我已经标在对应代码行了。其他部分看下来没什么问题,本地跑了 swift test,58 个测试都通过了。

expanded.wrappedValue.toggle()
} label: {
HStack(spacing: 7) {
let allStaged = changes.allSatisfy(\.isStaged)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

阻塞:部分暂存文件会被误判为全部暂存。 GitChange.isStaged 只表示索引中存在改动;对于 MM 文件,isStaged == true,但 hasWorkingTreeChange 也为 true。这里会让组头错误显示为全选,点击后还会反向执行 Unstage all。建议“全部暂存”同时要求 $0.isStaged && !$0.hasWorkingTreeChange。

}

func setChanges(_ changes: [GitChange], staged: Bool) async {
let pendingChanges = changes.filter { $0.isStaged != staged }

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

阻塞:Stage all 会漏掉部分暂存文件的未暂存内容。 当 staged == true 时,MM 文件的 isStaged 已经为 true,因此会被当前过滤条件排除,剩余 working-tree 改动不会进入暂存区。这里应针对目标状态分别过滤,例如 Stage 使用 hasWorkingTreeChange,Unstage 使用 isStaged;请同时补一个 MM 状态的回归测试。

@1lck

1lck commented Aug 10, 2026

Copy link
Copy Markdown
Owner

@Absinthe-yl 此pr还有进展吗 同时 不要向main分支合并

@1lck

1lck commented Aug 12, 2026

Copy link
Copy Markdown
Owner

如无任何改动 此pr将关闭

@1lck 1lck closed this Aug 12, 2026
puppyben1 pushed a commit to puppyben1/Lithe-IDEA that referenced this pull request Oct 14, 2026
* feat(plugins): 插件市场、插件仓库源与社区插件安装

- 插件管理改为 IDEA 风格的“插件市场 / 已安装”两个标签,齿轮菜单提供管理插件仓库、刷新、从磁盘安装
- 默认“Lithe 官方”源读取主仓库 Plugins/marketplace/index.json(bundle 内附只读兜底,刷新缓存写 Caches);用户可添加 HTTPS 索引或 GitHub 仓库(根目录 lithe-plugin-index.json),可刷新、停用、删除,官方源不可删
- Rust Core 新增 plugins.marketplace.validateIndex / resolveSource / installReview:索引校验、平台与插件 API 过滤、第三方源禁止 dev.lithe.* 命名空间、下载地址必须是插件自身仓库的 Release zip
- 社区插件不签名(signatureRequirement: none):先校验 SHA-256 再解压,安装前确认权限、要运行的程序和来源仓库;安装记录保存内容摘要,文件被改动后拒绝加载;更新新增程序需重新确认;更新只走安装时记录的源
- 当前平台没有包时显示“暂不支持 <平台> 平台”;索引支持 localizedDescriptions,描述跟随 Lithe 界面语言
- 官方插件按 plugin-<名称>-v<版本> 标签单独发布:release-official-plugins 工作流只为版本变化的插件发布 Release 并自动开 PR 更新索引
- 移除写死的 PHP 下载入口;补齐中文翻译、功能矩阵、Agent Note、worktree 资源清单与 ci-builds 文档

* fix(plugins): 处理 1lck#23 审查意见

- 社区插件确认的程序指纹纳入实际执行内容:语言服务器 validationArguments、运行参数模板、测试的三组参数模板;同一可执行文件参数变化也要重新确认,确认框逐行显示完整命令
- 官方插件发布与索引登记拆成独立 job:pending-index 找出已打标签但索引未登记的版本(扫描整个标签系列),从已发布 Release 计算 SHA-256 后开 PR,重跑可恢复
- 下载边收边计数,超过 512 MB 立即中止,声明长度超限直接拒绝;解压前检查 ZIP 中央目录的展开大小与文件数,解压中实测写出内容,谎报大小的 ZIP 也会被终止
- 详情的版本、发布日期、平台显示实际会安装的版本,最新版本不可用时单独注明
xiaoyumuxi added a commit that referenced this pull request Nov 13, 2026
…hared/fixtures 副本 (#1853) (#1861)

- 桌面测试改用 contractfixture.CoreFixture 读取所链接 Core 检出的 rust/fixtures,
  desktop-go.sh 导出 LITHE_CORE_FIXTURE_DIR
- 删除 shared/contracts(28 个文件)和 shared/fixtures(295 个文件),
  i18n 格式样例移到 shared/i18n/fixtures
- PINNED_CORE_REVISION 升到 Core main f113e9e(含 #23、#24、#25)
- .gitignore 只放行 shared/i18n 和 shared/platform-feature-matrix
- 资源复用清单删除 phpunit-fixture,功能矩阵删除无法本地校验的证据路径
- Note、Skill 和文档的引用改指 Core,新增 Note 记录决策
xiaoyumuxi added a commit that referenced this pull request Nov 14, 2026
…#1887)

* fix(desktop): 跟进 Core #28 拆分 crate,修正 Core 旧路径并删除 hostIntegration 死代码

- PINNED_CORE_REVISION 临时固定 Core #28 的 HEAD d235401;#28 合入后改成合并 commit。
- 文档、Skill、Agent Note、功能矩阵和资源清单中 302 处 Core 路径改到拆出的 crate,
  改写后的路径都在 d235401 中存在;固定修订链接、已迁出行和历史说明保持不变。
- builds.go 删除对 source:"hostIntegration" 的判断及只为它读取的字段,Core 已拒绝这种清单。
- 删除已不存在的 mcp-registry-metadata 资源条目、MCP Registry 与 git_path_roundtrip 说明。
- 引用已迁入插件的 Java/Maven 文件的笔记补“已迁出”行;日志笔记改为 runtime::helper_failures
  注入三个 sink;构建系统与 Java 语言服务器笔记注明 hostIntegration 只是保留字段。
- Windows Claude npm shim 笔记归档:Core #18 已删除 agent-host。

* docs(agents): Core 语言提供者表与 catalog.rs 由 Core #23 删除,修正移除说明
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