[Bug]: Double hyphens look like a single dash in the project script command field

未关闭 适合新手
#32,957 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@Mnigos 已经在做这个了。

开始于 2026年11月8日。

  • #33004 来自 @Mnigos —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
desktop

调研方向

从 apps/web 项目的脚本命令字段开始,将其字体样式与 issue #21579 中预览地址栏的修复进行比较。检查字体连字是否会让 --demo 看起来像一个短横线;issue 报告称命令仍能正确运行。完成的标准是字段中的两个连字符清晰可见且彼此分开,同时输入的命令保持不变。

由索引模型根据 Issue 内容生成。

描述

Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/web

Steps to reproduce
  1. Open Add project script.
  2. Enter ./scripts/start.sh --demo in the Command field.
  3. Look at the two hyphens before demo.
Expected behavior

Both hyphens should be clearly distinguishable so I can read the command exactly as entered.

Actual behavior

--demo looks like -demo in the command field. I initially thought T3 was removing one of the hyphens.

The command still runs as intended, so this appears to be a rendering issue. Font ligatures are a suspected cause, but I haven't confirmed that by changing fonts.

Impact

Cosmetic issue. It makes valid command-line flags look incorrect.

Version or commit

0.1.8-nightly.20261106.4288

Environment

Linux, T3 Code desktop.

Workaround

The command works despite its appearance. No visual workaround tested.

Related work

#21579 disabled font ligatures in the preview address bar to fix a similar problem where characters appeared to be missing. This report concerns the project script command field.

主要语言
TypeScript
星标
24.8k
派生
6.4k
平均合并
7 小时 33 分钟
30 天内合并 PR
96

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pingdotgg/t3code 的其他 Issue

查看 pingdotgg/t3code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。