diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-27 11:23:55 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-27 11:23:55 -0700 |
commit | 5d973490687c40922f2b7a2ddf2a3e19c207eb0f (patch) | |
tree | fab63009bd6014cd8ded1bd0a536727e0228b055 /extension/src/extension.ts | |
parent | 4e47da8398ac1cecb6f7100568f0f7296baaeac9 (diff) | |
download | sncontinue-5d973490687c40922f2b7a2ddf2a3e19c207eb0f.tar.gz sncontinue-5d973490687c40922f2b7a2ddf2a3e19c207eb0f.tar.bz2 sncontinue-5d973490687c40922f2b7a2ddf2a3e19c207eb0f.zip |
feat: :loud_sound: give users access to Continue server logs
can see logs in ~/.continue/continue.log
Diffstat (limited to 'extension/src/extension.ts')
-rw-r--r-- | extension/src/extension.ts | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/extension/src/extension.ts b/extension/src/extension.ts index f2e580a1..802b12bc 100644 --- a/extension/src/extension.ts +++ b/extension/src/extension.ts @@ -10,9 +10,20 @@ async function dynamicImportAndActivate(context: vscode.ExtensionContext) { await activateExtension(context); } catch (e) { console.log("Error activating extension: ", e); - vscode.window.showInformationMessage( - "Error activating the Continue extension." - ); + vscode.window + .showInformationMessage( + "Error activating the Continue extension.", + "View Logs", + "Retry" + ) + .then((selection) => { + if (selection === "View Logs") { + vscode.commands.executeCommand("continue.viewLogs"); + } else if (selection === "Retry") { + // Reload VS Code window + vscode.commands.executeCommand("workbench.action.reloadWindow"); + } + }); } } |