Skip to content

Smaller inlay hints #6394

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
Oct 28, 2020
Merged

Smaller inlay hints #6394

merged 1 commit into from
Oct 28, 2020

Conversation

kjeremy
Copy link
Contributor

@kjeremy kjeremy commented Oct 28, 2020

This makes things a lot more readable but isn't officially supported by vscode: microsoft/vscode#9078

Inspired by Visual Studio, IntelliJ and Resharper.

This makes things a lot more readable but isn't officially supported by vscode: microsoft/vscode#9078

Inspired by Visual Studio, IntelliJ and Resharper.
@kjeremy
Copy link
Contributor Author

kjeremy commented Oct 28, 2020

image

@SomeoneToIgnore
Copy link
Contributor

Looks really nice actually.

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 28, 2020

@bors bors bot merged commit 93fca75 into rust-lang:master Oct 28, 2020
@lnicola
Copy link
Member

lnicola commented Oct 28, 2020

Great, CSS injection. But is text-decoration:; valid CSS? You dropped the none.

@kjeremy kjeremy deleted the smaller-inlays branch October 28, 2020 15:22
@kjeremy
Copy link
Contributor Author

kjeremy commented Oct 28, 2020

@inicola I took it from the linked issue: microsoft/vscode#9078 (comment)

@bjorn3
Copy link
Member

bjorn3 commented Oct 28, 2020

CSS ignores invalid declarations.

@lnicola
Copy link
Member

lnicola commented Oct 28, 2020

Then this might have undone #6392.

@matklad
Copy link
Member

matklad commented Nov 2, 2020

Glorious!

@mcarton
Copy link
Member

mcarton commented Nov 2, 2020

Is this configurable? This is something I've always hated in Visual Studio.

@kjeremy
Copy link
Contributor Author

kjeremy commented Nov 2, 2020 via email

@qm3ster
Copy link

qm3ster commented Nov 2, 2020

I think it's causing misalignment of ▶ Run Test | Debug decoration:
image
image
for example when zooming with "editor.mouseWheelZoom": true

@lnicola
Copy link
Member

lnicola commented Nov 2, 2020

@qm3ster that's a code lens and is drawn by Code, you should probably file a bug there:

image

@qm3ster
Copy link

qm3ster commented Nov 3, 2020

@lnicola my bad, I thought it started with this commit.
Are these inlay hints not considered code lens in terms of vscode?

@SomeoneToIgnore
Copy link
Contributor

inlay hints are implemented via vscode decorations, which is a different thing form the code lens.

The PR we're commenting under had edited the particular place in the file where those decorations are created, if you're interested to see the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants