elbywan / crystalline

A Language Server Protocol implementation for Crystal. 🔮
MIT License
440 stars 25 forks source link

Add option to render type labels #99

Open Horusiath opened 1 day ago

Horusiath commented 1 day ago

First: Thanks for this plugin! Without it writing Crystal code would be way worse experience.

What I'd like to propose is to enable read-only labels, that would display what kind of types are inferred for things like variables or method parameters and returns. It'd be great to be able to quickly glance over the type signatures without having to manually put cursor over every single one of them. It's one of the more desired features in IDE supporting languages with strong type inference.

Below I'm attaching an examples from Rust VS Code and Ionide (F# extension for VS Code) to illustrate: image image

elbywan commented 1 day ago

Hey :wave:

That is a nifty feature indeed, I'll look into this when I've got some free time (no promises) :+1: