Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 3, 2023

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Jan 3, 2023

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
Copy link
Member Author

Veykril commented Jan 3, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Jan 3, 2023

📌 Commit c4d8cf1 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jan 3, 2023

⌛ Testing commit c4d8cf1 with merge 0b14cd9...

@bors
Copy link
Contributor

bors commented Jan 3, 2023

☀️ 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
Copy link
Member Author

Veykril commented Jan 9, 2023

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

@Veykril
Copy link
Member Author

Veykril commented Jan 9, 2023

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

@AaronKutch
Copy link

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
Copy link
Member Author

Veykril commented Jan 10, 2023

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