From 65685b14c7e0ab60d2c694e85182bb5aa2ed8926 Mon Sep 17 00:00:00 2001 From: Aleksandr Kondrashov <116561995+aramikuto@users.noreply.github.com> Date: Fri, 2 Feb 2024 01:12:31 +0900 Subject: [PATCH] Do not use respectMultiSelection for upload and paste (#201145) --- src/vs/workbench/contrib/files/browser/fileActions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/files/browser/fileActions.ts b/src/vs/workbench/contrib/files/browser/fileActions.ts index fba86d0dbbd3a..2f3dc318c256d 100644 --- a/src/vs/workbench/contrib/files/browser/fileActions.ts +++ b/src/vs/workbench/contrib/files/browser/fileActions.ts @@ -1061,7 +1061,7 @@ const uploadFileHandler = async (accessor: ServicesAccessor) => { const notificationService = accessor.get(INotificationService); const instantiationService = accessor.get(IInstantiationService); - const context = explorerService.getContext(true); + const context = explorerService.getContext(false); const element = context.length ? context[0] : explorerService.roots[0]; try { @@ -1092,7 +1092,7 @@ export const pasteFileHandler = async (accessor: ServicesAccessor, fileList?: Fi const uriIdentityService = accessor.get(IUriIdentityService); const dialogService = accessor.get(IDialogService); - const context = explorerService.getContext(true); + const context = explorerService.getContext(false); const hasNativeFilesToPaste = fileList && fileList.length > 0; const confirmPasteNative = hasNativeFilesToPaste && configurationService.getValue('explorer.confirmPasteNative');