mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
fix #87330
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user