sorbet / sorbet

A fast, powerful type checker designed for Ruby
https://sorbet.org
Apache License 2.0
3.58k stars 516 forks source link

Inlay hints #6244

Open qaisjp opened 2 years ago

qaisjp commented 2 years ago

Problem

Inlay hints add additional inline information to source code to help you understand what the code does.

vscode-go supports inlay hints, it looks like this (source)

image

TypeScript inlay hints look like this (source with more images)

image

Proposed solution

froydnj commented 2 years ago

Do you know if we are required to implement InlayHintsProvider in the extension? I have a branch that implements what I thought was most of the spec, but I do not see VSCode requesting inlay hints in the logs.

qaisjp commented 2 years ago

Do you know if we are required to implement InlayHintsProvider in the extension?

I don't think so.