diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-28 18:12:47 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-28 18:12:47 -0700 |
commit | 9a9b7aae313c8ca3e69acc6b49327fef47a2644d (patch) | |
tree | c4e8ed5e013e043f52ba9c6ae92f65762fe32bda /extension | |
parent | f7a3659381f839b890f2c53086f7fedecf23d9ab (diff) | |
download | sncontinue-9a9b7aae313c8ca3e69acc6b49327fef47a2644d.tar.gz sncontinue-9a9b7aae313c8ca3e69acc6b49327fef47a2644d.tar.bz2 sncontinue-9a9b7aae313c8ca3e69acc6b49327fef47a2644d.zip |
show "View Logs" popup during server loading
Diffstat (limited to 'extension')
-rw-r--r-- | extension/src/activation/activate.ts | 11 | ||||
-rw-r--r-- | extension/src/debugPanel.ts | 11 |
2 files changed, 12 insertions, 10 deletions
diff --git a/extension/src/activation/activate.ts b/extension/src/activation/activate.ts index cbb840c0..a47d5e97 100644 --- a/extension/src/activation/activate.ts +++ b/extension/src/activation/activate.ts @@ -86,6 +86,17 @@ export async function activateExtension(context: vscode.ExtensionContext) { return Promise.resolve(); } ); + + vscode.window + .showInformationMessage( + "Click here to view the server logs, or use the 'continue.viewLogs' VS Code command.", + "View Logs" + ) + .then((selection) => { + if (selection === "View Logs") { + vscode.commands.executeCommand("continue.viewLogs"); + } + }); } }, 2000); }); diff --git a/extension/src/debugPanel.ts b/extension/src/debugPanel.ts index d3972189..643563a2 100644 --- a/extension/src/debugPanel.ts +++ b/extension/src/debugPanel.ts @@ -272,16 +272,7 @@ export function setupDebugPanel( }); } ); - vscode.window - .showInformationMessage( - "Click here to view the server logs, or use the 'continue.viewLogs' VS Code command.", - "View Logs" - ) - .then((selection) => { - if (selection === "View Logs") { - vscode.commands.executeCommand("continue.viewLogs"); - } - }); + break; } } |