Triple-colon ligature in ss07 has odd cursor placement in specific scenarios
まだ誰も着手していません。
評価
- 難易度
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
githubnext/monaspace のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
githubnext/monaspace#381 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
githubnext/monaspace#407 · コメント 2 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
githubnext/monaspace#406 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
githubnext/monaspace#405 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
githubnext/monaspace#404 · コメント 1 件 ·
githubnext/monaspace の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
osam-cologne/archlinux-proaudio#917 ·
メンテナーはふだん 1 日以内に返信
-
微信订阅オープンallows image
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
DaoCloud/public-image-mirror#46265 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
agent-ex high-priority tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DigiBanks99/menlo#483 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100