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

Function activateUnsafe

src/extension.node.ts:151–175  ·  view source on GitHub ↗
(
    context: IExtensionContext,
    standardOutputChannel: OutputChannel
)

Source from the content-addressed store, hash-verified

149
150// eslint-disable-next-line
151function activateUnsafe(
152 context: IExtensionContext,
153 standardOutputChannel: OutputChannel
154): [IExtensionApi, Promise<void>, IServiceContainer] {
155 //===============================================
156 // activation starts here
157
158 const [serviceManager, serviceContainer] = initializeGlobals(context, standardOutputChannel);
159 activatedServiceContainer = serviceContainer;
160 initializeTelemetryGlobals((interpreter) =>
161 serviceContainer.get<IInterpreterPackages>(IInterpreterPackages).getPackageVersions(interpreter)
162 );
163 const activationPromise = activateLegacy(context, serviceManager, serviceContainer);
164
165 //===============================================
166 // activation ends here
167
168 //===============================================
169 // dynamically load standalone plugins
170 activateExecutionAnalysis(context).then(noop, noop);
171 activateChat(context, serviceContainer).then(noop, noop);
172
173 const api = buildApi(activationPromise, serviceManager, serviceContainer, context);
174 return [api, activationPromise, serviceContainer];
175}
176
177function escapeRegExp(text: string) {
178 return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');

Callers 1

activateFunction · 0.70

Calls 5

initializeGlobalsFunction · 0.90
buildApiFunction · 0.90
activateLegacyFunction · 0.70
getPackageVersionsMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected