Skip to content

Commit f176ad8

Browse files
authored
workspace.applyEdit drops the TextEdit if there is a RenameFile later microsoft#77735 (fix microsoft#166436) (microsoft#166439)
1 parent 3e19ba9 commit f176ad8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extensions/vscode-api-tests/src/singlefolder-tests/workspace.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,7 @@ suite('vscode API - workspace', () => {
897897
async function test77735(withOpenedEditor: boolean): Promise<void> {
898898
const docUriOriginal = await createRandomFile();
899899
const docUriMoved = docUriOriginal.with({ path: `${docUriOriginal.path}.moved` });
900+
await deleteFile(docUriMoved); // ensure target does not exist
900901

901902
if (withOpenedEditor) {
902903
const document = await vscode.workspace.openTextDocument(docUriOriginal);

0 commit comments

Comments
 (0)