microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
100.16k stars 12.38k forks source link

Please enable CodeLens for TypeScript files #189

Closed NoelAbrahams closed 1 year ago

NoelAbrahams commented 10 years ago

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.

dun3 commented 10 years ago

I would really enjoy having the CodeLens Git Authors part work for TypeScript. That would be really cool.

LarsKemmann commented 9 years ago

+1

phmatray commented 9 years ago

+1

RobMoloney commented 9 years ago

+1

ctrlShiftBryan commented 9 years ago

+1

jmwnoble commented 9 years ago

Absolutely +1

ctrlShiftBryan commented 9 years ago
OlegDokuka commented 9 years ago

+1

ghost commented 8 years ago

+1

badre429 commented 8 years ago

+10

techird commented 8 years ago

+10086

HardCodr commented 8 years ago

+123123189238190542

fedoranimus commented 8 years ago

+1

joelmdev commented 8 years ago

+1

badre429 commented 8 years ago

+1

wysisoft commented 7 years ago

+1

Peter-Juhasz commented 7 years ago

Any news about this one?

stijnherreman commented 7 years ago

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... :(

GopherJ commented 3 years ago

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

Kingwl commented 3 years ago

I'm not 100% sure but seems we already have codelens?

@DanielRosenwasser

DanielRosenwasser commented 3 years ago

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.

Kingwl commented 3 years ago

uses a regex

Well.... Difficult work....

mjbvz commented 3 years ago

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

joj commented 1 year ago

Starting with Visual Studio 17.6 (to be released next month), Visual Studio also supports codelens for JavaScript and TypeScript :)