提交 7e5eb633 编写于 作者: J jeanp413

Always focus explorer viewlet while creating new file/folder. Fixes #75038

上级 e0893d78
......@@ -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);
}
const list = listService.lastFocusedList;
if (list) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册