Skip to content

Remove hard extensionDependency on auth extension - #2018

Merged
Rachel Macfarlane (RMacfarlane) merged 1 commit into
masterfrom
rmacfarlane/extensionDependencies
Aug 3, 2020
Merged

Remove hard extensionDependency on auth extension#2018
Rachel Macfarlane (RMacfarlane) merged 1 commit into
masterfrom
rmacfarlane/extensionDependencies

Conversation

@RMacfarlane

@RMacfarlane Rachel Macfarlane (RMacfarlane) commented Jul 23, 2020

Copy link
Copy Markdown
Contributor

Kind of a weird change, the reasoning is that I need to move the GitHub Auth Provider extension to be a UI instead of Workspace extension. The auth provider API will make sure that regardless of what side the auth provider extension is on, calls to it go through. For Codespaces, the resolver extension is on the UI side, and it needs to get auth information at start up, before the Workspace extension host is even up. (Also, it makes sense for the auth provider to be on the local machine since that's where it's storing credentials).

Anyway, if GHPRI directly depends on it and is a workspace extension, it will fail to activate since the auth provider isn't on the same side. Since we don't actually need the extension to be in the same extension host, we shouldn't set it as a dependency

@alexr00 Alex Ross (alexr00) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What happens if the user disables the auth extension then?

@RMacfarlane

Copy link
Copy Markdown
Contributor Author

If they disable it, they should see an error notification like "No provider with id 'github' registered".

@RMacfarlane
Rachel Macfarlane (RMacfarlane) deleted the rmacfarlane/extensionDependencies branch November 12, 2020 16:53
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