Skip to content

feat(Inline-Commit): editor 行内提交 CodeLens(#13) - #12

Merged
ThreeFish-AI merged 1 commit into
feature/1.x.xfrom
ThreeFish-AI/inline-commit-codelens
Jun 27, 2026
Merged

feat(Inline-Commit): editor 行内提交 CodeLens(#13)#12
ThreeFish-AI merged 1 commit into
feature/1.x.xfrom
ThreeFish-AI/inline-commit-codelens

Conversation

@ThreeFish-AI

Copy link
Copy Markdown
Owner

交付(IDEA editor inline commit 的 VS Code 等价)

  • 行内提交 CodeLens:编辑器中每个未暂存 hunk 上方渲染可点击 ✓ 提交此 Hunk (+N -M) → 仅暂存该 hunk(patch 重建 + git apply --cached)→ 输入 message → git commit
  • 新增 engine/diff/editor-mapping(hunk → 编辑器行区域映射,纯逻辑 + 5 单测)。
  • gutter 行标记由原生 git quickDiff 提供(不重复造);其他已暂存内容一并提交时二次确认。

验收

check-types/lint/package ✅ · test:unit 64/64(+5 editor-mapping) · test:integration 3/3 ✅

语义说明

inline commit 提交「该 hunk + 当前所有已暂存内容」。若存在其他已暂存文件,弹二次确认;典型场景(仅有未暂存改动、提交单个 hunk)下精确提交该 hunk。

🤖 Generated with Claude Code

@ThreeFish-AI
ThreeFish-AI merged commit 75d41da into feature/1.x.x Jun 27, 2026
4 checks passed
@ThreeFish-AI
ThreeFish-AI deleted the ThreeFish-AI/inline-commit-codelens branch June 29, 2026 06:34
ThreeFish-AI added a commit that referenced this pull request Jul 4, 2026
依用户偏好将 hyperGit.worktrees 的 visibility 由 collapsed 改回 visible(保留 initialSize:1),
使其默认展开但占位收窄;Stash/Shelf 仍默认折叠。同步校正 CHANGELOG 与 issue #12 表述以对齐最终默认。

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
ThreeFish-AI added a commit that referenced this pull request Jul 4, 2026
* fix(Views): 优化侧边栏视图默认布局,次要视图默认折叠并设初始高度权重;

Stash/Shelf/Worktrees 默认 visibility:collapsed(仅占标题栏、点击即展开),
Commit/Graph/Branches 及次要视图分别设 initialSize 高度权重,缓解视图挤占空间。
VS Code 侧边栏视图约 142px 最小展开高度为核心硬编码(官方 #123715 已 not planned),
无法经扩展解除;新默认仅对新安装或「View: Reset View Locations」后生效。
同步 CHANGELOG(Unreleased)与 docs/.agents/issue.md #12。

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>

* fix(Views): Worktrees 默认保持展开(仅以 initialSize 收窄),同步文档;

依用户偏好将 hyperGit.worktrees 的 visibility 由 collapsed 改回 visible(保留 initialSize:1),
使其默认展开但占位收窄;Stash/Shelf 仍默认折叠。同步校正 CHANGELOG 与 issue #12 表述以对齐最终默认。

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
ThreeFish-AI added a commit that referenced this pull request Jul 20, 2026
- Stash / Shelf 由 collapsed 改为 visibility:hidden(hideByDefault,默认不显示、视图菜单可勾选恢复)
- Commit / Worktrees 由 visible 改为 collapsed(显示但默认折叠)
- Branches / Graph 保持 visible;容器内声明顺序重排为 Commit·Branches·Graph·Worktrees
- 纯 package.json contributes.views 声明式改动,initialSize 不变,src/ 零改动、零破坏
- 新增 tests/unit/views-layout.test.ts 声明式护栏锁定顺序与各视图 visibility
- CHANGELOG 记 Changed、issue.md 新增 #16 并给 #12 补指针、README 计数 372→375

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
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.

1 participant