Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not use respectMultiSelection for upload and paste #201145

Merged
merged 2 commits into from Feb 1, 2024

Conversation

aramikuto
Copy link
Contributor

Fixes #191359

The explorerService.getContext method is used to determine where to upload or paste files. It accepts the respectMultiSelection argument. When set to true, it disregards the currently focused item in the explorer and uses selected items as context. This is handy when copying multiple files, preventing copying only the focused one.

However, for paste or upload actions, it's more practical to use the focused item as the target instead of the current selection. The paste action relies on the target file only to identify the destination folder, and uploading isn't available in the file context menu, so the multiSelection information isn't utilized anyway.

@lramos15 lramos15 added this to the February 2024 milestone Feb 1, 2024
@lramos15 lramos15 enabled auto-merge (squash) February 1, 2024 15:25
Copy link
Member

@lramos15 lramos15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks for the contribution

@lramos15 lramos15 merged commit 65685b1 into microsoft:main Feb 1, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pasting multiple files with right-click pastes in the originating directory instead of the target directory
4 participants