@codingame/monaco-vscode-github-authentication-default-extension 1.82.6 → 1.83.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/extension.js CHANGED
@@ -77,7 +77,7 @@ class UriEventHandler extends vscode.EventEmitter {
77
77
  try {
78
78
  return await Promise.race([
79
79
  codeExchangePromise.promise,
80
- new Promise((_, reject) => setTimeout(() => reject(errors_1.TIMED_OUT_ERROR), 300000)),
80
+ new Promise((_, reject) => setTimeout(() => reject(errors_1.TIMED_OUT_ERROR), 300000)), // 5min timeout
81
81
  (0, utils_1.promiseFromEvent)(token.onCancellationRequested, (_, __, reject) => { reject(errors_1.USER_CANCELLATION_ERROR); }).promise
82
82
  ]);
83
83
  }
@@ -382,12 +382,11 @@ const webAppInsightsClientFactory = async (key, replacementOptions) => {
382
382
  appInsightsClient?.flush(false);
383
383
  },
384
384
  dispose: async () => {
385
- appInsightsClient?.flush(true);
386
385
  const unloadPromise = new Promise((resolve) => {
387
386
  appInsightsClient?.unload(true, () => {
388
387
  resolve();
389
388
  appInsightsClient = undefined;
390
- });
389
+ }, 1000);
391
390
  });
392
391
  return unloadPromise;
393
392
  }
@@ -486,7 +485,7 @@ class TelemetryUtil {
486
485
  "common.nodeArch": osShim.architecture,
487
486
  "common.platformversion": (osShim.release || "").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/, "$1$2$3"),
488
487
  // Do not change this string as it gets found and replaced upon packaging
489
- "common.telemetryclientversion": "0.8.4"
488
+ "common.telemetryclientversion": "0.8.5"
490
489
  };
491
490
  }
492
491
  // Get singleton instance of TelemetryUtil
@@ -760,17 +759,16 @@ const oneDataSystemClientFactory = async (key, vscodeAPI, xhrOverride) => {
760
759
  },
761
760
  flush: flushOneDS,
762
761
  dispose: async () => {
763
- await flushOneDS();
764
762
  const disposePromise = new Promise((resolve) => {
765
763
  if (!appInsightsCore) {
766
764
  resolve();
767
765
  return;
768
766
  }
769
- appInsightsCore.unload(true, () => {
767
+ appInsightsCore.unload(false, () => {
770
768
  resolve();
771
769
  appInsightsCore = undefined;
772
770
  return;
773
- });
771
+ }, 1000);
774
772
  });
775
773
  return disposePromise;
776
774
  }
@@ -14258,7 +14256,6 @@ class BaseTelemetrySender {
14258
14256
  return this._telemetryClient?.flush();
14259
14257
  }
14260
14258
  async dispose() {
14261
- await this.flush();
14262
14259
  if (this._telemetryClient) {
14263
14260
  await this._telemetryClient.dispose();
14264
14261
  this._telemetryClient = undefined;
@@ -34153,7 +34150,7 @@ const allFlows = [
34153
34150
  vscode_1.env.openExternal(vscode_1.Uri.parse(`http://127.0.0.1:${port}/signin?nonce=${encodeURIComponent(server.nonce)}`));
34154
34151
  const { code } = await Promise.race([
34155
34152
  server.waitForOAuthResponse(),
34156
- new Promise((_, reject) => setTimeout(() => reject(errors_1.TIMED_OUT_ERROR), 300000)),
34153
+ new Promise((_, reject) => setTimeout(() => reject(errors_1.TIMED_OUT_ERROR), 300000)), // 5min timeout
34157
34154
  (0, utils_1.promiseFromEvent)(token.onCancellationRequested, (_, __, reject) => { reject(errors_1.USER_CANCELLATION_ERROR); }).promise
34158
34155
  ]);
34159
34156
  codeToExchange = code;