fix #87330
This commit is contained in:
parent
611f25cce2
commit
7c8b0844ec
2 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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[]) {
|
||||
|
|
Loading…
Reference in a new issue