Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug] Windows 编辑未提交代码时,行内 Git Blame 的 “Uncommitted changes” 提示遮挡代码

オープン
#1,433 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@puppyben1 がすでに取り組んでいます。

2026年10月23日 から。

  • #1435 @puppyben1 による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
tauri, typescript
領域
devtools, frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

area:editor bug claimed issue-form:bug P2 platform:windows review: medium
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 / 复现步骤
  1. 在 Windows 端打开 Git 仓库中的 Java 文件。
  2. 保持 Settings > Git > Editor > “启用行内 Blame”开启(默认开启)。
  3. 将光标移到存在未提交修改且内容较短的行,例如截图中的 Node pre, next;。
  4. 当前行右侧出现半透明的 Uncommitted changes 提示。
  5. 继续编辑或移动光标时,提示贴近并覆盖代码尾部,干扰阅读。
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。

Image
Checklist / 提交前检查
  • I searched existing issues for duplicates. / 我已搜索现有 Issue,确认没有重复报告。
  • I removed secrets and personal data from the report. / 我已从报告中移除敏感信息和个人数据。
主要言語
TypeScript
スター
1.8k
フォーク
151
平均マージ
13時間 5分
マージ済み PR(30日)
341

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

1lck/Lithe-IDEA のほかの issue

1lck/Lithe-IDEA の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。