Skip to content

Commit ba56c50

Browse files
Merge master into feature/cwltail
2 parents faccbe1 + 17e3b6b commit ba56c50

File tree

12 files changed

+463
-171
lines changed

12 files changed

+463
-171
lines changed

packages/amazonq/src/extensionNode.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export async function activate(context: vscode.ExtensionContext) {
3232
* the code compatible with web and move it to {@link activateAmazonQCommon}.
3333
*/
3434
async function activateAmazonQNode(context: vscode.ExtensionContext) {
35-
await (await CrashMonitoring.instance()).start()
35+
// Intentionally do not await since this is slow and non-critical
36+
void (await CrashMonitoring.instance())?.start()
3637

3738
const extContext = {
3839
extensionContext: context,
@@ -96,5 +97,5 @@ async function setupDevMode(context: vscode.ExtensionContext) {
9697

9798
export async function deactivate() {
9899
// Run concurrently to speed up execution. stop() does not throw so it is safe
99-
await Promise.all([(await CrashMonitoring.instance()).stop(), deactivateCommon()])
100+
await Promise.all([(await CrashMonitoring.instance())?.shutdown(), deactivateCommon()])
100101
}

packages/core/src/extensionNode.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ export async function activate(context: vscode.ExtensionContext) {
7878
// IMPORTANT: If you are doing setup that should also work in web mode (browser), it should be done in the function below
7979
const extContext = await activateCommon(context, contextPrefix, false)
8080

81-
await (await CrashMonitoring.instance()).start()
81+
// Intentionally do not await since this can be slow and non-critical
82+
void (await CrashMonitoring.instance())?.start()
8283

8384
initializeCredentialsProviderManager()
8485

@@ -254,7 +255,7 @@ export async function activate(context: vscode.ExtensionContext) {
254255

255256
export async function deactivate() {
256257
// Run concurrently to speed up execution. stop() does not throw so it is safe
257-
await Promise.all([await (await CrashMonitoring.instance()).stop(), deactivateCommon()])
258+
await Promise.all([await (await CrashMonitoring.instance())?.shutdown(), deactivateCommon()])
258259
await globals.resourceManager.dispose()
259260
}
260261

0 commit comments

Comments
 (0)