mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +01:00
workspace.applyEdit drops the TextEdit if there is a RenameFile later #77735 (fix #166436) (#166439)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user