Community.VisualStudio.Toolkit icon indicating copy to clipboard operation
Community.VisualStudio.Toolkit copied to clipboard

CodeLens support

Open RobertvanderHulst opened this issue 3 years ago • 5 comments

We have created VS support for our own development language. We are now looking into adding CodeLens support. Does anybody know of an example showing how to enable this inside the VS editor and how to "feed" it. Ideally we would like to show Authors and Changes for TFS and Github and maybe more.

RobertvanderHulst avatar Aug 30 '22 16:08 RobertvanderHulst

This is the best write up I've seen: https://www.codingwithcalvin.net/extending-visual-studio-codelens-functionality/

madskristensen avatar Aug 30 '22 16:08 madskristensen

@madskristensen Thanks for the link. This however adds support to a language that already is "codeLens" aware. Do you have any idea what we have to do to get for example the existing TFS and Github codelens providers to work in our development language with our content type (apart from hacking them and adding our language as supported Content type) .

RobertvanderHulst avatar Aug 30 '22 16:08 RobertvanderHulst

I do not know, sorry

madskristensen avatar Aug 30 '22 17:08 madskristensen

@RobertvanderHulst I'm unaware of your language's design, but you could perhaps achieve this with LSP.

MariaSolOs avatar Oct 09 '22 03:10 MariaSolOs

@MariaSolOs We are looking into turning our Language Service into LSP, because that would also allow it to be used in other IDEs like VS Code.

RobertvanderHulst avatar Oct 09 '22 06:10 RobertvanderHulst