show "View Logs" popup during server loading

This commit is contained in:
Nate Sesti 2023-07-28 18:12:47 -07:00
parent f7a3659381
commit 9a9b7aae31
2 changed files with 12 additions and 10 deletions

View file

@ -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);
});

View file

@ -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;
}
}