Open
Description
Prompted by an issue with lsp-mode
where they started showing code lenses at the end of the line instead of above the line by default (emacs-lsp/lsp-mode#3749). I made an issue in the spec repo (microsoft/language-server-protocol#1558) to ask whether clients can make any assumptions about where code lenses are displayed.
The answer seems to be no, we should not make assumptions about where code lenses are displayed. That means that the way we're using them to display type signatures is fundamentally unreliable. Fortunately, there is a feature that does allow specific placement of something in the buffer: inlay hints.
So I think the "right thing" here is to convert the code lenses that display type signatures into inlay hints.