[Bug] In Web IDE, GitLab Workflow fails to load if missing authProvider
MR: !297 (merged)
Description
When starting the Example App with Auth set to None, the GitLab Workflow extension fails to start.
This is because the Workflow extension is waiting for the Authentication Provider to be registered, but there is not one.
Implemention Plan
- https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/blob/ba49bf7c0f2f10ef509478ad1ca9593c939375d7/src/browser/auth/web_ide_authentication.ts#L6
- I'm not sure if there's a better VSCode API to use than
getSessions
here. It looks like that method actually rejects if the auth provider never shows up. - At the very least we can expose something in the
WebIDEExtensions
for whether the auth provider is set or not.🤔
Edited by Paul Slaughter