This commit is contained in:
Benjamin Pasero 2020-01-14 10:48:05 +01:00
parent 611f25cce2
commit 7c8b0844ec
2 changed files with 1 additions and 6 deletions

View file

@ -145,23 +145,19 @@ suite('window namespace tests', () => {
});
});
test.skip('active editor not always correct... #49125', async function () {
test('active editor not always correct... #49125', async function () {
const randomFile1 = await createRandomFile();
const randomFile2 = await createRandomFile();
console.log('Created random files: ' + randomFile1.toString() + ' and ' + randomFile2.toString());
const [docA, docB] = await Promise.all([
workspace.openTextDocument(randomFile1),
workspace.openTextDocument(randomFile2)
]);
for (let c = 0; c < 4; c++) {
let editorA = await window.showTextDocument(docA, ViewColumn.One);
console.log('Showing: ' + editorA.document.fileName + ' and active editor is: ' + window.activeTextEditor?.document.fileName);
assert.equal(window.activeTextEditor, editorA);
let editorB = await window.showTextDocument(docB, ViewColumn.Two);
console.log('Showing: ' + editorB.document.fileName + ' and active editor is: ' + window.activeTextEditor?.document.fileName);
assert.equal(window.activeTextEditor, editorB);
}
});

View file

@ -46,7 +46,6 @@ export function pathEquals(path1: string, path2: string): boolean {
export function closeAllEditors(): Thenable<any> {
return vscode.commands.executeCommand('workbench.action.closeAllEditors');
}
export function disposeAll(disposables: vscode.Disposable[]) {