diff options
author | Ty Dunn <ty@tydunn.com> | 2023-06-28 23:10:54 -0700 |
---|---|---|
committer | Ty Dunn <ty@tydunn.com> | 2023-06-28 23:10:54 -0700 |
commit | b9e1ff3a1a2ea76a2a2ca754ee25df551381bbc6 (patch) | |
tree | 298d23233ee082e8d24da221612c0965161a4f5e /extension/src/activation/activate.ts | |
parent | 5cb80a064fe49ae64f5c15e1e4d130d7925a61f8 (diff) | |
parent | 14f779412c086d569d6f86b9c3e871cbeb45c95a (diff) | |
download | sncontinue-b9e1ff3a1a2ea76a2a2ca754ee25df551381bbc6.tar.gz sncontinue-b9e1ff3a1a2ea76a2a2ca754ee25df551381bbc6.tar.bz2 sncontinue-b9e1ff3a1a2ea76a2a2ca754ee25df551381bbc6.zip |
Merge branch 'main' of github.com:continuedev/continue
Diffstat (limited to 'extension/src/activation/activate.ts')
-rw-r--r-- | extension/src/activation/activate.ts | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/extension/src/activation/activate.ts b/extension/src/activation/activate.ts index df8b6871..cd8f0cf3 100644 --- a/extension/src/activation/activate.ts +++ b/extension/src/activation/activate.ts @@ -24,19 +24,6 @@ export async function activateExtension( registerAllCodeLensProviders(context); registerAllCommands(context); - await new Promise((resolve, reject) => { - vscode.window.withProgress( - { - location: vscode.ProgressLocation.Notification, - title: "Starting Continue Server...", - cancellable: false, - }, - async (progress, token) => { - await startContinuePythonServer(); - resolve(null); - } - ); - }); const serverUrl = getContinueServerUrl(); ideProtocolClient = new IdeProtocolClient( @@ -46,8 +33,8 @@ export async function activateExtension( // Setup the left panel (async () => { - const sessionId = await ideProtocolClient.getSessionId(); - const provider = new ContinueGUIWebviewViewProvider(sessionId); + const sessionIdPromise = ideProtocolClient.getSessionId(); + const provider = new ContinueGUIWebviewViewProvider(sessionIdPromise); context.subscriptions.push( vscode.window.registerWebviewViewProvider( @@ -60,6 +47,20 @@ 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) => {}); |