We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d41c48d commit 8b354bcCopy full SHA for 8b354bc
1 file changed
src/vs/workbench/parts/files/browser/fileActions.ts
@@ -989,7 +989,7 @@ export const pasteIntoFocusedFilesExplorerViewItem = (accessor: ServicesAccessor
989
const instantiationService = accessor.get(IInstantiationService);
990
991
withFocussedFilesExplorerViewItem(accessor).then(res => {
992
- if (res.item) {
+ if (res && res.item) {
993
const pasteAction = instantiationService.createInstance(PasteFileAction, res.tree, res.item);
994
if (pasteAction._isEnabled()) {
995
pasteAction.run().done(null, errors.onUnexpectedError);
0 commit comments