Closed NoelAbrahams closed 1 year ago
I would really enjoy having the CodeLens Git Authors part work for TypeScript. That would be really cool.
+1
+1
+1
+1
Absolutely +1
+1
+1
+10
+10086
+123123189238190542
+1
+1
+1
+1
Any news about this one?
The community could help with this, if there was a public CodeLens API. There's a 3-year-old request on UserVoice with 700 votes, but unfortunately it doesn't have a high priority:
I really wish I had better news, but this didn't make the cut for VS2017, I'm afraid. I know... :(
Any news on this? we are 2021 now, it's hard to believe that rust-analyzer already supports this but tsserver and gopls hasn't a good support for this yet
I'm not 100% sure but seems we already have codelens?
@DanielRosenwasser
I think @mjbvz can answer this better, but I'm guessing the CodeLens support you see today in VS Code uses a regex and then just requests references on the identifier that matches.
uses a regex
Well.... Difficult work....
Yes VS Code has supported this for quite a long time. I'm guess this issue is track support in VS through
To implement the code lenses, VS Code uses navTree
to get the symbols in a file and then calls references
for each interesting symbol in the current viewport
Starting with Visual Studio 17.6 (to be released next month), Visual Studio also supports codelens for JavaScript and TypeScript :)
Hi,
Code lens is a new feature in Visual Studio 2013.
After working with this on a C# project, I have found it to be a tremendous productivity booster.
CodeLens provides information about references, unit tests, check-ins etc. I'm not sure how unit tests would be incorporated but simply being able to view the references to a class or method is in itself hugely useful.
Thanks.