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

Support Flask and Beta in the external extension provider #252

Merged
merged 4 commits into from
Apr 20, 2023

Conversation

FrederikBolding
Copy link
Member

Adds support for Flask, Beta and custom extension IDs in the external extension provider.

Fixes #251

@FrederikBolding FrederikBolding requested a review from a team as a code owner April 19, 2023 12:44
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
@@ -8,14 +8,16 @@ import config from './external-extension-config.json';

const browser = detect();

export function createExternalExtensionProvider() {
export type ExtensionType = 'stable' | 'flask' | 'beta' | string;
Copy link
Member

Choose a reason for hiding this comment

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

Does this actually provide autocomplete, since ExtensionType is inferred as just string?

Copy link
Member Author

Choose a reason for hiding this comment

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

It does not. Do you have an idea of how to make that happen?

Copy link
Member

Choose a reason for hiding this comment

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

Probably not possible unless the ID is not a string.

export type ExtensionType = 'stable' | 'flask' | 'beta' | `id:${string}`;

This works for example, but not sure if that's what we want.

@FrederikBolding FrederikBolding merged commit 7ba2c64 into main Apr 20, 2023
@FrederikBolding FrederikBolding deleted the fb/fix-external-extension-provider branch April 20, 2023 16:48
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.

createExternalExtensionProvider does not support connecting to Flask
2 participants