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(
131131
132132 if ( ! useOmnisharpServer ) {
133133 // Download Razor server telemetry bits if DevKit is installed.
134- if ( csharpDevkitExtension ) {
134+ if ( csharpDevkitExtension && vscode . env . isTelemetryEnabled ) {
135135 const razorTelemetryDownloader = new RazorTelemetryDownloader (
136136 networkSettingsProvider ,
137137 eventStream ,
Original file line number Diff line number Diff line change @@ -98,13 +98,15 @@ export async function activate(
9898 if ( csharpDevkitExtension ) {
9999 await setupDevKitEnvironment ( dotnetInfo . env , csharpDevkitExtension , logger ) ;
100100
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+ }
108110 }
109111 }
110112
You can’t perform that action at this time.
0 commit comments