Skip to content

fix: couldn't focus corresponding directory from URL#149

Merged
conwnet merged 1 commit intoconwnet:masterfrom
xcv58:fix-open-folder
Feb 19, 2021
Merged

fix: couldn't focus corresponding directory from URL#149
conwnet merged 1 commit intoconwnet:masterfrom
xcv58:fix-open-folder

Conversation

@xcv58
Copy link
Copy Markdown
Collaborator

@xcv58 xcv58 commented Feb 19, 2021

Preview link: https://github1s-git-fix-open-folder.xcv58.vercel.app/xcv58/github1s/tree/index/html/test/src/vs

The failed reason is here: https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/files/common/explorerModel.ts#L367

equalsIgnoreCase(this.resource.authority, resource.authority)

this.resource.authority would be '' and resource.authority will be the actual one if we set it. If we set it, the comparison would be false thus it stops revealing the directory.

Copy link
Copy Markdown
Owner

@conwnet conwnet left a comment

Choose a reason for hiding this comment

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

lgtm, thanks~

@conwnet conwnet merged commit 64bbaf2 into conwnet:master Feb 19, 2021
@conwnet conwnet mentioned this pull request Feb 22, 2021
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.

2 participants