提交 8b354bc3 编写于 作者: B Benjamin Pasero

Exception in fileActions.ts (fixes #21460)

上级 d41c48d4
......@@ -989,7 +989,7 @@ export const pasteIntoFocusedFilesExplorerViewItem = (accessor: ServicesAccessor
const instantiationService = accessor.get(IInstantiationService);
withFocussedFilesExplorerViewItem(accessor).then(res => {
if (res.item) {
if (res && res.item) {
const pasteAction = instantiationService.createInstance(PasteFileAction, res.tree, res.item);
if (pasteAction._isEnabled()) {
pasteAction.run().done(null, errors.onUnexpectedError);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册