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

Make ExtensionTipsService multi-root aware #32106

Closed

Conversation

felixfbecker
Copy link
Contributor

As described in #29242

Collects extension recommendations from all roots instead of only for the first root.

return [];
}).then<string[]>(null, err => [])
)
).then(flatten);
Copy link
Member

Choose a reason for hiding this comment

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

Also needed to de dup

}, err => []);
return TPromise.join(
this.contextService.getWorkspace().roots.map(root =>
this.fileService.resolveContent(root.with({ path: root.path + '/.vscode/extensions.json' })).then(content => {
Copy link
Member

Choose a reason for hiding this comment

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

I would use the old way paths to construct the path. This will make construct the path as per the platform

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That would use backslashes on Windows, which is not valid in a URI

Copy link
Member

Choose a reason for hiding this comment

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

That would use backslashes on Windows

True, but it is a valid file path. Creating an URI using URI.file takes care of it
Good thing is it will hide the knowledge of path separators.

@sandy081 sandy081 modified the milestones: September 2017, August 2017 Aug 29, 2017
@sandy081
Copy link
Member

Resolved the conflicts and pushed

@sandy081 sandy081 closed this Sep 18, 2017
@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.

3 participants