workspace.applyEdit drops the TextEdit if there is a RenameFile later #77735 (fix #166436) (#166439)

This commit is contained in:
Benjamin Pasero
2022-11-16 09:43:07 +01:00
committed by GitHub
parent 3e19ba91ff
commit f176ad8e28

View File

@@ -897,6 +897,7 @@ suite('vscode API - workspace', () => {
async function test77735(withOpenedEditor: boolean): Promise<void> {
const docUriOriginal = await createRandomFile();
const docUriMoved = docUriOriginal.with({ path: `${docUriOriginal.path}.moved` });
await deleteFile(docUriMoved); // ensure target does not exist
if (withOpenedEditor) {
const document = await vscode.workspace.openTextDocument(docUriOriginal);