@@ -11,14 +11,15 @@ import { isTestExecution, STANDARD_OUTPUT_CHANNEL } from '../common/constants';
1111import { createDeferred , Deferred } from '../common/helpers' ;
1212import { IFileSystem , IPlatformService } from '../common/platform/types' ;
1313import { StopWatch } from '../common/stopWatch' ;
14- import { IConfigurationService , IExtensionContext , IOutputChannel , IPythonSettings } from '../common/types' ;
14+ import { IConfigurationService , IExtensionContext , ILogger , IOutputChannel , IPythonSettings } from '../common/types' ;
1515import { IServiceContainer } from '../ioc/types' ;
1616import {
1717 PYTHON_LANGUAGE_SERVER_DOWNLOADED ,
1818 PYTHON_LANGUAGE_SERVER_ENABLED ,
1919 PYTHON_LANGUAGE_SERVER_ERROR
2020} from '../telemetry/constants' ;
2121import { getTelemetryReporter } from '../telemetry/telemetry' ;
22+ import { IUnitTestManagementService } from '../unittests/types' ;
2223import { LanguageServerDownloader } from './downloader' ;
2324import { InterpreterData , InterpreterDataService } from './interpreterDataService' ;
2425import { PlatformData } from './platformData' ;
@@ -89,6 +90,11 @@ export class LanguageServerExtensionActivator implements IExtensionActivator {
8990 if ( ! clientOptions ) {
9091 return false ;
9192 }
93+
94+ const testManagementService = this . services . get < IUnitTestManagementService > ( IUnitTestManagementService ) ;
95+ testManagementService . activate ( )
96+ . catch ( ex => this . services . get < ILogger > ( ILogger ) . logError ( 'Failed to activate Unit Tests' , ex ) ) ;
97+
9298 return this . startLanguageServer ( clientOptions ) ;
9399 }
94100
0 commit comments