Skip to content

Commit 65685b1

Browse files
authored
Do not use respectMultiSelection for upload and paste (microsoft#201145)
1 parent db3ebe6 commit 65685b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ const uploadFileHandler = async (accessor: ServicesAccessor) => {
10611061
const notificationService = accessor.get(INotificationService);
10621062
const instantiationService = accessor.get(IInstantiationService);
10631063

1064-
const context = explorerService.getContext(true);
1064+
const context = explorerService.getContext(false);
10651065
const element = context.length ? context[0] : explorerService.roots[0];
10661066

10671067
try {
@@ -1092,7 +1092,7 @@ export const pasteFileHandler = async (accessor: ServicesAccessor, fileList?: Fi
10921092
const uriIdentityService = accessor.get(IUriIdentityService);
10931093
const dialogService = accessor.get(IDialogService);
10941094

1095-
const context = explorerService.getContext(true);
1095+
const context = explorerService.getContext(false);
10961096
const hasNativeFilesToPaste = fileList && fileList.length > 0;
10971097
const confirmPasteNative = hasNativeFilesToPaste && configurationService.getValue<boolean>('explorer.confirmPasteNative');
10981098

0 commit comments

Comments
 (0)