Triple-colon ligature in ss07 has odd cursor placement in specific scenarios
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- vscode
- 领域
- design
调研方向
首先,在 VS Code v1.100 或 v1.101 中复现 triple-colon ss07 ligature,并在其右侧添加红色波浪线,然后将光标行为与禁用 ss07、v1.000 和 Fira Code 时进行比较。完成的标准是:即使存在波浪线,光标移动和视觉位置在整个连字范围内仍保持一致。
由索引模型根据 Issue 内容生成。
描述
In vscode, the interaction between the triple-colon ligature from ss07 (:::) and red squigglies seems to cause issues with cursor placement. Under certain circumstances, the triple-colon ligature renders correctly, but the cursor treats it as two 1.5-wide colon characters and a single 0-width colon.
I've observed this issue in v1.100 and v1.101, but not in v1.000.
In this screenshot, the cursor is logically placed between the 1st and 2nd colon from the left, but visually appears in the middle of the 2nd colon:
Moving the cursor right by 1 character places it at the end of the :::, and moving it right again doesn't visually move the cursor.
After moving it right once:
And again (no visual change):
It's also worth noting that this only seems to happen when red squigglies are involved on the right side of the triple-colon ligature:
This is with ss07 disabled:
This is from v1.000, which doesn't appear to have the ligature:
Also, this seems to only happen with Monaspace's triple-colon ligature. Here's an example of how it looks with Fira Code and its ligatures enabled:
(I had originally posted about this in the Nerd Fonts repo related to a different issue I had come across, but this appears to be Monaspace.)
- 主要语言
- Shell
- 星标
- 19.7k
- 派生
- 325
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
githubnext/monaspace 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 86/100
githubnext/monaspace#381 · 2 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 48/100
githubnext/monaspace#407 · 2 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 22/100
githubnext/monaspace#406 ·
-
难度 2/5 1-3 小时 新手友好度 55/100
githubnext/monaspace#405 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 48/100
githubnext/monaspace#404 · 1 条评论 ·
查看 githubnext/monaspace 的全部 Issue
相似的 Issue
-
triaged
难度 2/5 1-3 小时 新手友好度 83/100
fullsend-ai/agents#1786 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
osam-cologne/archlinux-proaudio#917 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
-
微信订阅未关闭allows image
难度 2/5 1-3 小时 新手友好度 65/100
DaoCloud/public-image-mirror#46265 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复