You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'dotnet' is not recognized as an internal or external command,
operable program or batch file.
VS Code version: 1.17.2
C# Extension version: 1.12.1
I am testing on Windows 10.
Steps to reproduce
Open "user settings" with ctrl-shift-p. In the search box type "References".
A javascript.referencesCodeLens.enabled and typescript.referencesCodeLens.enabled are found. In other words, it is possible to disable the CodeLens "references" feature selectively for JS/TS only.
There is no csharp.referencesCodeLens.enabled, and manually setting one has no effect. The only way to disable the "N references" display in VS Code is to set editor.codeLens to false. I am not certain what other features (if any) I am disabling by setting editor.codeLens false.
Expected behavior
I should be able to disable the "5 references" text which is by default scattered through the code without disabling other features.
In my opinion, there should be feature parity between the TypeScript and C# modules. If TypeScript allows you to turn off the "references" display for TypeScript only, so should C#.
The text was updated successfully, but these errors were encountered:
@mcclure this is already available in the latest code (not yet released), but as @DustinCampbell mentioned, the names of these settings are different - csharp.showReferencesCodeLens and csharp.showTestsCodeLens.
It would definitely make sense to standardize them to match other language ecosystems 👍
Environment data
dotnet --info
output:VS Code version: 1.17.2
C# Extension version: 1.12.1
I am testing on Windows 10.
Steps to reproduce
Open "user settings" with ctrl-shift-p. In the search box type "References".
A
javascript.referencesCodeLens.enabled
andtypescript.referencesCodeLens.enabled
are found. In other words, it is possible to disable the CodeLens "references" feature selectively for JS/TS only.There is no
csharp.referencesCodeLens.enabled
, and manually setting one has no effect. The only way to disable the "N references" display in VS Code is to seteditor.codeLens
to false. I am not certain what other features (if any) I am disabling by settingeditor.codeLens
false.Expected behavior
The text was updated successfully, but these errors were encountered: