Skip to content

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
@microsoft microsoft locked and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants