Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/amazonq/src/extensionNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export async function activate(context: vscode.ExtensionContext) {
* the code compatible with web and move it to {@link activateAmazonQCommon}.
*/
async function activateAmazonQNode(context: vscode.ExtensionContext) {
await (await CrashMonitoring.instance()).start()
// Intentionally do not await since this is slow and non-critical
void (await CrashMonitoring.instance())?.start()

const extContext = {
extensionContext: context,
Expand Down Expand Up @@ -96,5 +97,5 @@ async function setupDevMode(context: vscode.ExtensionContext) {

export async function deactivate() {
// Run concurrently to speed up execution. stop() does not throw so it is safe
await Promise.all([(await CrashMonitoring.instance()).stop(), deactivateCommon()])
await Promise.all([(await CrashMonitoring.instance())?.shutdown(), deactivateCommon()])
}
5 changes: 3 additions & 2 deletions packages/core/src/extensionNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export async function activate(context: vscode.ExtensionContext) {
// IMPORTANT: If you are doing setup that should also work in web mode (browser), it should be done in the function below
const extContext = await activateCommon(context, contextPrefix, false)

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

initializeCredentialsProviderManager()

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

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

Expand Down
Loading
Loading