summaryrefslogtreecommitdiff
path: root/extension/src/activation/activate.ts
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-30 17:25:35 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-30 17:25:35 -0700
commit81a5ed86119b81a07daf31144e8f09fe6b66246d (patch)
tree7c1c66842a251069336591f0d67bac297de81534 /extension/src/activation/activate.ts
parent965d7f2ac778b9f7f0bca0e26eb474bb69a0ece3 (diff)
downloadsncontinue-81a5ed86119b81a07daf31144e8f09fe6b66246d.tar.gz
sncontinue-81a5ed86119b81a07daf31144e8f09fe6b66246d.tar.bz2
sncontinue-81a5ed86119b81a07daf31144e8f09fe6b66246d.zip
the fix. and others.
Diffstat (limited to 'extension/src/activation/activate.ts')
-rw-r--r--extension/src/activation/activate.ts32
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) => {});