Fixes #107815: Remove save RenameOperation

This commit is contained in:
Alex Dima
2020-10-06 22:53:57 +02:00
parent ca01c69720
commit 1a9e0af641
2 changed files with 2 additions and 16 deletions

View File

@@ -926,10 +926,7 @@ suite('vscode API - workspace', () => {
assert.ok(await vscode.workspace.applyEdit(we));
const document = await vscode.workspace.openTextDocument(newUri);
// 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);
assert.equal(document.isDirty, true);
await document.save();
assert.equal(document.isDirty, false);