mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 17:23:25 -05:00
Improve Cleanup of Jupyter processes on Notebook and/or ADS Close (#5142)
* Close jupyter and python * Ensure we stop jupyter correctly on process end * dont stopServer from clientSession shutdown * PR comments * close notebook after each test
This commit is contained in:
@@ -20,7 +20,7 @@ if (context.RunTest) {
|
||||
setup(function () {
|
||||
console.log(`Start "${this.currentTest.title}"`);
|
||||
});
|
||||
teardown(function () {
|
||||
teardown(async function () {
|
||||
let testName = this.currentTest.title;
|
||||
try {
|
||||
let fileName = getFileName(testName);
|
||||
@@ -28,6 +28,7 @@ if (context.RunTest) {
|
||||
fs.unlinkSync(fileName);
|
||||
console.log(`"${fileName}" is deleted.`);
|
||||
}
|
||||
await vscode.commands.executeCommand('workbench.action.closeActiveEditor');
|
||||
}
|
||||
catch (err) {
|
||||
console.log(err);
|
||||
|
||||
Reference in New Issue
Block a user