Skip to content

Commit

Permalink
Do not use respectMultiSelection for upload and paste (#201145)
Browse files Browse the repository at this point in the history
  • Loading branch information
aramikuto committed Feb 1, 2024
1 parent db3ebe6 commit 65685b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/files/browser/fileActions.ts
Expand Up @@ -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 {
Expand Down Expand Up @@ -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<boolean>('explorer.confirmPasteNative');

Expand Down

0 comments on commit 65685b1

Please sign in to comment.