(
context: IExtensionContext,
standardOutputChannel: OutputChannel
)
| 149 | |
| 150 | // eslint-disable-next-line |
| 151 | function 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 | |
| 177 | function escapeRegExp(text: string) { |
| 178 | return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); |
no test coverage detected