diff --git a/src/extension.ts b/src/extension.ts index 17bcc72e..90e5603a 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -49,7 +49,7 @@ let connectionFactoryDisposable: extensionApi.Disposable; let crcVersion: CrcVersion | undefined; -export async function activate(extensionContext: extensionApi.ExtensionContext): Promise { +async function _activate(extensionContext: extensionApi.ExtensionContext): Promise { const crcInstaller = new CrcInstall(extensionContext.storagePath); crcVersion = await getCrcVersion(); @@ -190,6 +190,10 @@ export async function activate(extensionContext: extensionApi.ExtensionContext): ); } +export async function activate(extensionContext: extensionApi.ExtensionContext): Promise { + _activate(extensionContext).catch(console.error); +} + async function registerCrcUpdate( crcVersion: CrcVersion, crcInstaller: CrcInstall,