diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-30 17:25:35 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-30 17:25:35 -0700 |
commit | 953d7dc8ddbea6b534977d68f38415a6b149d9d6 (patch) | |
tree | 3204415bb4de0c0b00b875a4812198c3f57ae0c5 /extension/src/activation/activate.ts | |
parent | 9913b4fd46275f9185bf6a6896931bc38bd7d3d0 (diff) | |
download | sncontinue-953d7dc8ddbea6b534977d68f38415a6b149d9d6.tar.gz sncontinue-953d7dc8ddbea6b534977d68f38415a6b149d9d6.tar.bz2 sncontinue-953d7dc8ddbea6b534977d68f38415a6b149d9d6.zip |
the fix. and others.
Diffstat (limited to 'extension/src/activation/activate.ts')
-rw-r--r-- | extension/src/activation/activate.ts | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/extension/src/activation/activate.ts b/extension/src/activation/activate.ts index cd8f0cf3..18650561 100644 --- a/extension/src/activation/activate.ts +++ b/extension/src/activation/activate.ts @@ -20,6 +20,21 @@ export async function activateExtension( ) { extensionContext = context; + await new Promise((resolve, reject) => { + vscode.window.withProgress( + { + location: vscode.ProgressLocation.Notification, + title: + "Starting Continue Server... (it may take a minute to download Python packages)", + cancellable: false, + }, + async (progress, token) => { + await startContinuePythonServer(); + resolve(null); + } + ); + }); + sendTelemetryEvent(TelemetryEvent.ExtensionActivated); registerAllCodeLensProviders(context); registerAllCommands(context); @@ -33,7 +48,7 @@ export async function activateExtension( // Setup the left panel (async () => { - const sessionIdPromise = ideProtocolClient.getSessionId(); + const sessionIdPromise = await ideProtocolClient.getSessionId(); const provider = new ContinueGUIWebviewViewProvider(sessionIdPromise); context.subscriptions.push( @@ -46,21 +61,6 @@ export async function activateExtension( ) ); })(); - - await new Promise((resolve, reject) => { - vscode.window.withProgress( - { - location: vscode.ProgressLocation.Notification, - title: - "Starting Continue Server... (it may take a minute to download Python packages)", - cancellable: false, - }, - async (progress, token) => { - await startContinuePythonServer(); - resolve(null); - } - ); - }); // All opened terminals should be replaced by our own terminal // vscode.window.onDidOpenTerminal((terminal) => {}); |