MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / activateUnsafe

Function activateUnsafe

src/extension.web.ts:139–157  ·  view source on GitHub ↗
(
    context: IExtensionContext,
    standardOutputChannel: OutputChannel
)

Source from the content-addressed store, hash-verified

137
138// eslint-disable-next-line
139function activateUnsafe(
140 context: IExtensionContext,
141 standardOutputChannel: OutputChannel
142): [IExtensionApi, Promise<void>, IServiceContainer] {
143 //===============================================
144 // activation starts here
145
146 const [serviceManager, serviceContainer] = initializeGlobals(context, standardOutputChannel);
147
148 activatedServiceContainer = serviceContainer;
149 initializeTelemetryGlobals(() => Promise.resolve(new Map()));
150 const activationPromise = activateLegacy(context, serviceManager, serviceContainer);
151
152 //===============================================
153 // activation ends here
154
155 const api = buildApi(activationPromise, serviceManager, serviceContainer, context);
156 return [api, activationPromise, serviceContainer];
157}
158
159/////////////////////////////
160// old activation code

Callers 1

activateFunction · 0.70

Calls 4

initializeGlobalsFunction · 0.90
buildApiFunction · 0.90
activateLegacyFunction · 0.70
resolveMethod · 0.65

Tested by

no test coverage detected