scalameta / metals-feature-requests

Issue tracker for Metals feature requests
37 stars 4 forks source link

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

Open doofin opened 8 months ago

doofin commented 8 months ago

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 commented 8 months ago

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 commented 7 months ago

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 commented 7 months ago

This will be done via InlayHints, so probably some files related to https://github.com/scalameta/metals/pull/5983

This might be a bit complex though.