Skip to content

Commit 1c5aac4

Browse files
authored
tests - close editors from debug API tests (microsoft#254646)
1 parent 491bf7a commit 1c5aac4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

extensions/vscode-api-tests/src/singlefolder-tests/debug.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
import * as assert from 'assert';
77
import { basename } from 'path';
88
import { commands, debug, Disposable, FunctionBreakpoint, window, workspace } from 'vscode';
9-
import { assertNoRpc, createRandomFile, disposeAll } from '../utils';
9+
import { assertNoRpc, closeAllEditors, createRandomFile, disposeAll } from '../utils';
1010

1111
suite('vscode API - debug', function () {
1212

13-
teardown(assertNoRpc);
13+
teardown(async function () {
14+
assertNoRpc();
15+
await closeAllEditors();
16+
});
1417

1518
test('breakpoints are available before accessing debug extension API', async () => {
1619
const file = await createRandomFile(undefined, undefined, '.js');

0 commit comments

Comments
 (0)