Open JustinGrote opened 1 month ago
@JustinGrote This is a great feature to have.
One challenge we will run into is that our language server currently uses the OmniSharp libary to implement the LSP protocol and the version we're using does not support inlay hints. (We are on the latest version.) Adding the support to OmniSharp will be a prerequisite for this.
Have wanted to add something like this but never have time. The VSCode ARM Tools extension has some similar functionality (not with inlay hints, they didn't exist then).
@JustinGrote This is a great feature to have.
One challenge we will run into is that our language server currently uses the OmniSharp libary to implement the LSP protocol and the version we're using does not support inlay hints. (We are on the latest version.) Adding the support to OmniSharp will be a prerequisite for this.
Yes, you are right. The types for inlay hints are available in the version you are using. Perhaps it wasn't included in the release notes? But good news regardless.
Is your feature request related to a problem? Please describe. The language server should support inlay hints and emit inlay hints that indicate for a given reference, whether it comes from a param, var, or resource.
For example:
should become when inlay hints are enabled:
Where param will of course be rendered with alternate smaller gray font or whatnot by the editor.
Further, functions should emit inlay hints for their parameters where available.