Skip to content

Fix list service of TreeView mishandled in block for FileExplorer - #87805

Merged
Isidor Nikolic (isidorn) merged 1 commit into
microsoft:masterfrom
Vigilans:vigilans/get-selected-resource
Dec 30, 2019
Merged

Isidor Nikolic (isidorn) merged 1 commit into
microsoft:masterfrom
Vigilans:vigilans/get-selected-resource

Conversation

@Vigilans

@Vigilans Vigilans (Vigilans) commented Dec 28, 2019 •

Copy link
Copy Markdown
Member

This PR fixes #87804.

Though getMultiSelectedResources will be deprecated as described in #86268, this PR may add some cases for not breaking current behaviors when it gets removed.

There's a further scenario where getMultiSelectedResources will return a wrong resource:

  1. An extension adds a command to ExplorerItem's right click context.
  2. The command handler invokes revealFileInOS, but providing a uri different from selected file
  3. getMultiSelectedResources will still return selected file's uri, not the uri desired by the extension.

But this scenario seems so rare, so not included in this PR, just for a testcase when removing getMultiSelectedResources.

@isidorn

Copy link
Copy Markdown

Thank you very much for this PR. It looks good to me, merging it in.
Sorry for breaking your extension! I was not aware that extension trees depend on the reveal in OS command.

@isidorn
Isidor Nikolic (isidorn) merged commit 2e881b9 into microsoft:master Dec 30, 2019
@isidorn Isidor Nikolic (isidorn) added this to the January 2020 milestone Dec 30, 2019
@Vigilans
Vigilans (Vigilans) deleted the vigilans/get-selected-resource branch December 30, 2019 11:07
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Execute revealFileInOS on TreeItem will use current focused file's URI

2 participants