feat(extensions): add support for sso:// protocol (#8581)

This commit is contained in:
Gal Zahavi
2025-09-17 10:36:23 -07:00
committed by GitHub
parent 678e947f21
commit 726d2c4274
2 changed files with 14 additions and 1 deletions

View File

@@ -99,6 +99,18 @@ describe('handleInstall', () => {
expect(processSpy).toHaveBeenCalledWith(1); expect(processSpy).toHaveBeenCalledWith(1);
}); });
it('should install an extension from a sso source', async () => {
mockInstallExtension.mockResolvedValue('sso-extension');
await handleInstall({
source: 'sso://google.com',
});
expect(consoleLogSpy).toHaveBeenCalledWith(
'Extension "sso-extension" installed successfully and enabled.',
);
});
it('should install an extension from a local path', async () => { it('should install an extension from a local path', async () => {
mockInstallExtension.mockResolvedValue('local-extension'); mockInstallExtension.mockResolvedValue('local-extension');

View File

@@ -27,7 +27,8 @@ export async function handleInstall(args: InstallArgs) {
if ( if (
source.startsWith('http://') || source.startsWith('http://') ||
source.startsWith('https://') || source.startsWith('https://') ||
source.startsWith('git@') source.startsWith('git@') ||
source.startsWith('sso://')
) { ) {
installMetadata = { installMetadata = {
source, source,