Skip to content
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

strip long type hints in "show type" feature #372

Open
Tracked by #2
doofin opened this issue Feb 2, 2024 · 3 comments
Open
Tracked by #2

strip long type hints in "show type" feature #372

doofin opened this issue Feb 2, 2024 · 3 comments

Comments

@doofin
Copy link

doofin commented Feb 2, 2024

Describe the bug

image

Expected behavior

should avoid showing too long types

Operating system

Linux

Editor/Extension

VS Code

Version of Metals

v1.2.0

Extra context or search terms

No response

@tgodzik
Copy link
Contributor

tgodzik commented Feb 2, 2024

Thanks for reporting! What should be show instead? I am not sure if we can handle this properly. Probably, we could do Type... and show more on hover, but that would be a feature request.

@doofin
Copy link
Author

doofin commented Feb 18, 2024

Thanks, I have the same idea in my mind, should we set a default limit like 10 and it will be stripped if longer than that? which file are relevant for this?

@tgodzik
Copy link
Contributor

tgodzik commented Feb 19, 2024

This will be done via InlayHints, so probably some files related to scalameta/metals#5983

This might be a bit complex though.

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

No branches or pull requests

2 participants