Fix integration tests

This commit is contained in:
Alex Dima 2020-09-30 20:58:18 +02:00
parent 357d4e7a0e
commit 296147c88e
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0

View file

@ -926,7 +926,10 @@ suite('vscode API - workspace', () => {
assert.ok(await vscode.workspace.applyEdit(we));
const document = await vscode.workspace.openTextDocument(newUri);
assert.equal(document.isDirty, true);
// See https://github.com/microsoft/vscode/issues/107739
// RenameOperation currently saves the file before applying the rename
// so that is why the document is not dirty here
assert.equal(document.isDirty, false);
await document.save();
assert.equal(document.isDirty, false);