[Bug] Windows 编辑未提交代码时,行内 Git Blame 的 “Uncommitted changes” 提示遮挡代码
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- tauri, typescript
Research direction
Start with windows/tauri/src/features/editor/components/monaco-editor.tsx and inline-git-blame-widget.ts, the files identified in the report; trace how the uncommitted blame text is positioned and sized. Reproduce on Windows with a short edited line such as Node pre, next; and compare the widget bounds with the line content. Done means the uncommitted prompt no longer overlaps code while inline blame remains usable.
Written by the indexing model from the issue text.
Description
Platform / 平台
Windows
Area / 模块
Editor / 编辑器
Lithe version / Lithe 版本
0.3.0(Windows debug 构建,lithe-windows.exe 构建于 2026-10-16;当前源码检出 ffed91101)
Priority / 优先级
P2 / 后续考虑:目前不着急,可安排到后续版本
OS and architecture / 操作系统与架构
Windows 11 家庭中文版 10.0.26100,x86_64(Intel Core i5-12500H)
Environment / 环境信息
Tauri 2.x
@tauri-apps/api 2.8.0
WebView2 155.0.4283.62
JDK / Maven / JDT LS:与问题无关,未采集
Steps to reproduce / 复现步骤
- 在 Windows 端打开 Git 仓库中的 Java 文件。
- 保持 Settings > Git > Editor > “启用行内 Blame”开启(默认开启)。
- 将光标移到存在未提交修改且内容较短的行,例如截图中的
Node pre, next;。 - 当前行右侧出现半透明的
Uncommitted changes提示。 - 继续编辑或移动光标时,提示贴近并覆盖代码尾部,干扰阅读。
Expected behavior / 预期行为
行内 Git Blame 应显示在代码之后的独立区域,或改为 Gutter/Hover 展示;不能与当前编辑行内容重叠。未提交提示也不应在输入时遮挡代码。
Actual behavior / 实际行为
半透明的 Uncommitted changes 从当前行代码内部开始显示,覆盖代码尾部(截图中第 28 行)。现有设置只能整体关闭“启用行内 Blame”,无法只隐藏未提交提示。
初步定位(未验证根因):windows/tauri/src/features/editor/components/monaco-editor.tsx 为未提交行生成该文案,inline-git-blame-widget.ts 使用 EXACT 内容 widget 和 allowEditorOverflow: true,可能与行尾定位或宽度计算有关。
Logs or diagnostic output / 日志或诊断输出
未采集:没有错误日志,现象可由截图直接观察。
Screenshots or recordings / 截图或录屏
见提交时上传的 lithe-inline-blame-overlap.png。
Checklist / 提交前检查
- I searched existing issues for duplicates. / 我已搜索现有 Issue,确认没有重复报告。
- I removed secrets and personal data from the report. / 我已从报告中移除敏感信息和个人数据。
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 151
- Avg merge
- 13h 5m
- Merged PRs (30d)
- 341
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 1lck/Lithe-IDEA
-
area:editor bug P0 platform:macos review: low
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
1lck/Lithe-IDEA#1118 · 2 comments ·
Maintainers usually reply within 1 day
-
area:ai enhancement P2 platform:cross-platform review: medium
Difficulty 5/5 Over a week Newbie friendliness 35/100
1lck/Lithe-IDEA#1457 ·
Maintainers usually reply within 1 day
-
area:run bug P1 platform:macos review: medium
Difficulty 4/5 3-5 days Newbie friendliness 54/100
1lck/Lithe-IDEA#1455 ·
Maintainers usually reply within 1 day
-
area:git bug issue-form:bug needs-info P0 platform:windows review: low
Difficulty 2/5 1-3 hours Newbie friendliness 53/100
1lck/Lithe-IDEA#1445 · 3 comments ·
Maintainers usually reply within 1 day
-
[Feature] Windows 支持 F4 打开并跳转到目标文件Possibly taken @puppyben1 claimed this 1 day ago. Openarea:editor claimed enhancement issue-form:feature P2 platform:windows review: medium
Difficulty 4/5 3-5 days Newbie friendliness 45/100
1lck/Lithe-IDEA#1439 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
Similar issues
-
area: image-engine bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
snapotter-hq/SnapOtter#3885 ·
Maintainers usually reply within 1 day
-
Mend: dependency security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 3 days
-
pending triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug P3 UI/UX
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
openclaw/openclaw#182077 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day