Skip to content

Commit 4690a06

Browse files
authored
"Revert File" on inactive editors are ignored (fix microsoft#177557) (microsoft#183903)
1 parent 67a1ca6 commit 4690a06

File tree

1 file changed

+1
-0
lines changed
  • src/vs/workbench/contrib/files/browser

1 file changed

+1
-0
lines changed

src/vs/workbench/contrib/files/browser/files.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export function getOpenEditorsViewMultiSelection(listService: IListService, edit
150150
if (selection.some(s => s === mainEditor)) {
151151
return selection;
152152
}
153+
return mainEditor ? [mainEditor] : undefined;
153154
}
154155
}
155156

0 commit comments

Comments
 (0)