File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
extensions/ql-vscode/src/common/vscode Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,9 @@ import {
1010 ConfigListener ,
1111 CANARY_FEATURES ,
1212 ENABLE_TELEMETRY ,
13- GLOBAL_ENABLE_TELEMETRY ,
1413 LOG_TELEMETRY ,
1514 isIntegrationTestMode ,
1615 isCanary ,
17- GLOBAL_TELEMETRY_LEVEL ,
1816} from "../../config" ;
1917import * as appInsights from "applicationinsights" ;
2018import { extLogger } from "../logging/vscode" ;
@@ -72,6 +70,10 @@ export class ExtensionTelemetryListener
7270 private readonly ctx : ExtensionContext ,
7371 ) {
7472 super ( ) ;
73+
74+ env . onDidChangeTelemetryEnabled ( async ( ) => {
75+ await this . initialize ( ) ;
76+ } ) ;
7577 }
7678
7779 /**
@@ -91,11 +93,7 @@ export class ExtensionTelemetryListener
9193 async handleDidChangeConfiguration (
9294 e : ConfigurationChangeEvent ,
9395 ) : Promise < void > {
94- if (
95- e . affectsConfiguration ( ENABLE_TELEMETRY . qualifiedName ) ||
96- e . affectsConfiguration ( GLOBAL_ENABLE_TELEMETRY . qualifiedName ) ||
97- e . affectsConfiguration ( GLOBAL_TELEMETRY_LEVEL . qualifiedName )
98- ) {
96+ if ( e . affectsConfiguration ( ENABLE_TELEMETRY . qualifiedName ) ) {
9997 await this . initialize ( ) ;
10098 }
10199
You can’t perform that action at this time.
0 commit comments