Replies: 2 comments 4 replies
-
Could you describe this a bit more? I thought code lenses are supposed to be specific to excerpts from the document? Things like build, debug, test are buffer specific on the other hand. |
Beta Was this translation helpful? Give feedback.
-
I'm also interested in inlay hints. @aspeddro if you'd like, we can collaborate.
Using code lens for run/debug/build things would be confusing given it'd be attached to a single line of code. We could have a treeview in vscode that includes buildable and/or runnable entries. This looks like this: |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
I was using
rust_analyzer, an LSP implementation for rust. The codelens feature in it differs from ocaml.The
rust_analyzercodelens feature provides commands to runbuild,debugandtest, there may be more.The resource providing type hint is
inlayHintswhich is still in proposal, see microsoft/vscode-languageserver-node#772.Doesn't it make more sense for codelens in ocaml to run
buildviadune, for example, and move codelens toinlayHints?PR: microsoft/language-server-protocol#1249
Issue: microsoft/language-server-protocol#956
LSP 3.17 specification: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#inlayHint_resolve
Beta Was this translation helpful? Give feedback.
All reactions