mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
tests - close editors from debug API tests (#254646)
This commit is contained in:
@@ -6,11 +6,14 @@
|
||||
import * as assert from 'assert';
|
||||
import { basename } from 'path';
|
||||
import { commands, debug, Disposable, FunctionBreakpoint, window, workspace } from 'vscode';
|
||||
import { assertNoRpc, createRandomFile, disposeAll } from '../utils';
|
||||
import { assertNoRpc, closeAllEditors, createRandomFile, disposeAll } from '../utils';
|
||||
|
||||
suite('vscode API - debug', function () {
|
||||
|
||||
teardown(assertNoRpc);
|
||||
teardown(async function () {
|
||||
assertNoRpc();
|
||||
await closeAllEditors();
|
||||
});
|
||||
|
||||
test('breakpoints are available before accessing debug extension API', async () => {
|
||||
const file = await createRandomFile(undefined, undefined, '.js');
|
||||
|
||||
Reference in New Issue
Block a user