File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export async function activate(
131
131
132
132
if ( ! useOmnisharpServer ) {
133
133
// Download Razor server telemetry bits if DevKit is installed.
134
- if ( csharpDevkitExtension ) {
134
+ if ( csharpDevkitExtension && vscode . env . isTelemetryEnabled ) {
135
135
const razorTelemetryDownloader = new RazorTelemetryDownloader (
136
136
networkSettingsProvider ,
137
137
eventStream ,
Original file line number Diff line number Diff line change @@ -98,13 +98,15 @@ export async function activate(
98
98
if ( csharpDevkitExtension ) {
99
99
await setupDevKitEnvironment ( dotnetInfo . env , csharpDevkitExtension , logger ) ;
100
100
101
- const telemetryExtensionPath = path . join (
102
- util . getExtensionPath ( ) ,
103
- '.razortelemetry' ,
104
- 'Microsoft.VisualStudio.DevKit.Razor.dll'
105
- ) ;
106
- if ( await util . fileExists ( telemetryExtensionPath ) ) {
107
- telemetryExtensionDllPath = telemetryExtensionPath ;
101
+ if ( vscode . env . isTelemetryEnabled ) {
102
+ const telemetryExtensionPath = path . join (
103
+ util . getExtensionPath ( ) ,
104
+ '.razortelemetry' ,
105
+ 'Microsoft.VisualStudio.DevKit.Razor.dll'
106
+ ) ;
107
+ if ( await util . fileExists ( telemetryExtensionPath ) ) {
108
+ telemetryExtensionDllPath = telemetryExtensionPath ;
109
+ }
108
110
}
109
111
}
110
112
You can’t perform that action at this time.
0 commit comments