mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Always focus explorer viewlet while creating new file/folder. Fixes #75038
This commit is contained in:
parent
e0893d7828
commit
7e5eb633e2
|
@ -875,10 +875,8 @@ async function openExplorerAndCreate(accessor: ServicesAccessor, isFolder: boole
|
|||
const textFileService = accessor.get(ITextFileService);
|
||||
const editorService = accessor.get(IEditorService);
|
||||
const viewletService = accessor.get(IViewletService);
|
||||
const activeViewlet = viewletService.getActiveViewlet();
|
||||
if (!activeViewlet || activeViewlet.getId() !== VIEWLET_ID || !listService.lastFocusedList) {
|
||||
await viewletService.openViewlet(VIEWLET_ID, true);
|
||||
}
|
||||
|
||||
await viewletService.openViewlet(VIEWLET_ID, true);
|
||||
|
||||
const list = listService.lastFocusedList;
|
||||
if (list) {
|
||||
|
|
Loading…
Reference in a new issue