Skip to content

update #91296 allow multiple workspace roots#92082

Merged
mjbvz merged 3 commits intomicrosoft:masterfrom
blueworrybear:markdown-preview-91296
Mar 9, 2020
Merged

update #91296 allow multiple workspace roots#92082
mjbvz merged 3 commits intomicrosoft:masterfrom
blueworrybear:markdown-preview-91296

Conversation

@blueworrybear
Copy link
Contributor

This PR fixes #91296. It adds all opened workspace into localResourceRoots, which allows rendering images from other workspace roots.

baseRoots.push(vscode.Uri.file(path.dirname(base.fsPath)));
}

const workspaceRoots = vscode.workspace.workspaceFolders?.map(folder => folder.uri);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please merge this into the if conditional above since that already adds the current folder to the list

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No problem! 😄

@blueworrybear
Copy link
Contributor Author

Hi @mjbvz, I found that the unit-test fails because one of the test-case in BackupMainService is timeout. I try to run the test by myself, and this case just exceeds time limitation occasionally. Maybe we should consider increasing the timeout?

@mjbvz mjbvz added this to the March 2020 milestone Mar 9, 2020
@mjbvz mjbvz merged commit 0b3e54e into microsoft:master Mar 9, 2020
@mjbvz
Copy link
Collaborator

mjbvz commented Mar 9, 2020

Thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Apr 23, 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.

Support loading images in markdown preview from other root folders in multi root workspace

2 participants