@vscode/extension-telemetry
Advanced tools
Comparing version 0.8.4 to 0.8.5
@@ -41,3 +41,2 @@ /*--------------------------------------------------------- | ||
dispose: async () => { | ||
appInsightsClient?.flush(true); | ||
const unloadPromise = new Promise((resolve) => { | ||
@@ -47,3 +46,3 @@ appInsightsClient?.unload(true, () => { | ||
appInsightsClient = undefined; | ||
}); | ||
}, 1000); | ||
}); | ||
@@ -50,0 +49,0 @@ return unloadPromise; |
@@ -95,3 +95,2 @@ /*--------------------------------------------------------------------------------------------- | ||
dispose: async () => { | ||
await flushOneDS(); | ||
const disposePromise = new Promise((resolve) => { | ||
@@ -102,7 +101,7 @@ if (!appInsightsCore) { | ||
} | ||
appInsightsCore.unload(true, () => { | ||
appInsightsCore.unload(false, () => { | ||
resolve(); | ||
appInsightsCore = undefined; | ||
return; | ||
}); | ||
}, 1000); | ||
}); | ||
@@ -109,0 +108,0 @@ return disposePromise; |
@@ -64,3 +64,2 @@ /*--------------------------------------------------------- | ||
async dispose() { | ||
await this.flush(); | ||
if (this._telemetryClient) { | ||
@@ -67,0 +66,0 @@ await this._telemetryClient.dispose(); |
@@ -53,3 +53,3 @@ /*--------------------------------------------------------- | ||
// Do not change this string as it gets found and replaced upon packaging | ||
"common.telemetryclientversion": "0.8.4" | ||
"common.telemetryclientversion": "0.8.5" | ||
}; | ||
@@ -56,0 +56,0 @@ } |
@@ -121,3 +121,2 @@ "use strict"; | ||
dispose: async () => { | ||
await flushOneDS(); | ||
const disposePromise = new Promise((resolve) => { | ||
@@ -128,7 +127,7 @@ if (!appInsightsCore) { | ||
} | ||
appInsightsCore.unload(true, () => { | ||
appInsightsCore.unload(false, () => { | ||
resolve(); | ||
appInsightsCore = undefined; | ||
return; | ||
}); | ||
}, 1000); | ||
}); | ||
@@ -135,0 +134,0 @@ return disposePromise; |
@@ -67,3 +67,2 @@ "use strict"; | ||
async dispose() { | ||
await this.flush(); | ||
if (this._telemetryClient) { | ||
@@ -70,0 +69,0 @@ await this._telemetryClient.dispose(); |
@@ -56,3 +56,3 @@ "use strict"; | ||
// Do not change this string as it gets found and replaced upon packaging | ||
"common.telemetryclientversion": "0.8.4" | ||
"common.telemetryclientversion": "0.8.5" | ||
}; | ||
@@ -59,0 +59,0 @@ } |
@@ -106,3 +106,3 @@ "use strict"; | ||
dispose: async () => { | ||
appInsightsClient?.flush(); | ||
appInsightsClient?.flush({ isAppCrashing: true }); | ||
appInsightsClient = undefined; | ||
@@ -109,0 +109,0 @@ } |
{ | ||
"name": "@vscode/extension-telemetry", | ||
"description": "A module for Visual Studio Code extensions to report consistent telemetry.", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Microsoft Corporation" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66944
1236