Skip to content

Use ZWNJ to prevent VSCode from forming ligatures between hints and code#13886

Merged
bors merged 1 commit into
rust-lang:masterfrom
Veykril:inlay-ligatures
Jan 3, 2023
Merged

Use ZWNJ to prevent VSCode from forming ligatures between hints and code#13886
bors merged 1 commit into
rust-lang:masterfrom
Veykril:inlay-ligatures

Conversation

@Veykril

@Veykril Veykril commented Jan 3, 2023

Copy link
Copy Markdown
Member

Turns out VSCode still has this issue for native hints as well, cc #6236

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 3, 2023
@Veykril

Veykril commented Jan 3, 2023

Copy link
Copy Markdown
Member Author

@bors r+

@bors

bors commented Jan 3, 2023

Copy link
Copy Markdown
Contributor

📌 Commit c4d8cf1 has been approved by Veykril

It is now in the queue for this repository.

@bors

bors commented Jan 3, 2023

Copy link
Copy Markdown
Contributor

⌛ Testing commit c4d8cf1 with merge 0b14cd9...

@bors

bors commented Jan 3, 2023

Copy link
Copy Markdown
Contributor

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 0b14cd9 to master...

@bors bors merged commit 0b14cd9 into rust-lang:master Jan 3, 2023
@Veykril Veykril deleted the inlay-ligatures branch January 3, 2023 11:53
@Veykril

Veykril commented Jan 9, 2023

Copy link
Copy Markdown
Member Author

Hmm, so this doesn't seem to actually work, though I am pretty sure it worked in my local testing ...

@Veykril

Veykril commented Jan 9, 2023

Copy link
Copy Markdown
Member Author

Turns out this never fixed it, using a different theme worked for some reason ...

@AaronKutch

Copy link
Copy Markdown

Something about inline type inlays changed recently, was it caused by this? Used to, when clicking on the text of the inlay, a block style cursor would select the whole inlay as if it were a character, but now the cursor goes on top of the character to the left of the inlay, which is annoying because it is visually identical to the cursor being on the character to the left, and you can't immediately tell if the cursor is on the left or right.

@Veykril

Veykril commented Jan 10, 2023

Copy link
Copy Markdown
Member Author

I believe that might be due to #13699, but I'll revert this PR anyways since it doesn't actually seem to work (I just got fooled by the default theme).

bors added a commit that referenced this pull request Jan 10, 2023
Revert "Use ZWNJ to prevent VSCode from forming ligatures between hints and code"

Doesn't actually seem to fix the bug, it seems to be theme dependent and I am not sure what causes it
Reverts #13886
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants