scalameta / metals-feature-requests

Issue tracker for Metals feature requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

strip long type hints in "show type" feature

doofin opened this issue · comments

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

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.

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?

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

This might be a bit complex though.