Web: integration test failures in workspace events (fix #102365)

This commit is contained in:
Benjamin Pasero
2020-07-14 15:14:17 +02:00
parent 5278689345
commit ab1d1ad588
3 changed files with 22 additions and 2 deletions

View File

@@ -48,6 +48,10 @@ export function closeAllEditors(): Thenable<any> {
return vscode.commands.executeCommand('workbench.action.closeAllEditors');
}
export async function revertAllDirty(): Promise<void> {
return vscode.commands.executeCommand('_workbench.revertAllDirty');
}
export function disposeAll(disposables: vscode.Disposable[]) {
vscode.Disposable.from(...disposables).dispose();
}