githubnext / githubnext/monaspace

Certain ligatures after keyword tokens render with incorrect cursor position in VSCode

Aperta
#383 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Shell
Stelle
19.6k
Fork
322
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

OS: Linux

Using VSCode, with Monaspace Neon and `"editor.fontLigatures": "'calt', 'liga', 'ss01', 'ss02', 'ss03','ss04', 'ss05', 'ss06', 'ss07', 'ss08', 'ss09'"`, the <> ligature, along with a few others, behave oddly when typed after a keyword in javascript.

Image
When by itself, it works fine. I can back arrow into it and the cursor visually shows up inside it.

Image
Image
However, when it is on a line after a keyword, it behaves oddly. Visually, the cursor is here `<>|`, but it is actually here `<|>`.
I did not move the cursors between those two images, i simply typed the letter "e"
The same thing happens with the `==>, >=, <=` and potentially others.

It may be related to syntax highlighting. It doesn't happen with plain text, and doesn't happen unless after a keyword.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Riproduci il problema in VSCode su Linux con Monaspace Neon, le impostazioni di editor.fontLigatures indicate e parole chiave JavaScript seguite da <>, =>, >= o <=. Confronta la posizione del cursore quando le legature compaiono da sole, dopo le parole chiave e nel testo normale; il lavoro è completato quando la posizione visiva del cursore corrisponde alla sua posizione effettiva in ogni caso.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, vscode
Ambito
tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Da chiarire
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.