From e3eed837d4ae56826f2fb430d396b24768b58f79 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Wed, 30 Aug 2023 08:58:40 +1000 Subject: [PATCH] Allow anyone to use the new proposed API --- src/standalone/api/api.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/standalone/api/api.ts b/src/standalone/api/api.ts index b6d81c09e46..c23f9992a99 100644 --- a/src/standalone/api/api.ts +++ b/src/standalone/api/api.ts @@ -226,13 +226,6 @@ export function buildApi( (async () => { sendApiUsageTelemetry(extensions, 'createJupyterServerCollection'); extensionId = (await extensions.determineExtensionFromCallStack()).extensionId; - if ( - ![JVSC_EXTENSION_ID.split('.')[0], 'SynapseVSCode', 'GitHub'] - .map((s) => s.toLowerCase()) - .includes(extensionId.split('.')[0].toLowerCase()) - ) { - throw new Error(`Access to Proposed API not allowed, as it is subject to change.`); - } const registration = serviceContainer.get(IJupyterServerProviderRegistry); proxy = registration.createJupyterServerCollection(extensionId, id, label);