Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#1,433 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@puppyben1 ya está trabajando en esto.

Desde el 23/10/2026.

  • #1435 de @puppyben1 — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
tauri, typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area:editor bug 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. / 我已从报告中移除敏感信息和个人数据。
Lenguaje dominante
TypeScript
Estrellas
1.8k
Forks
151
Merge medio
12 h 54 min
PR fusionados (30 d)
337

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de 1lck/Lithe-IDEA

Todos los issues de 1lck/Lithe-IDEA

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.