55
66import { Container } from 'inversify' ;
77import { Disposable , Memento , window } from 'vscode' ;
8- import { instance , mock } from 'ts-mockito' ;
98import { registerTypes as platformRegisterTypes } from './common/platform/serviceRegistry' ;
109import { registerTypes as processRegisterTypes } from './common/process/serviceRegistry' ;
1110import { registerTypes as commonRegisterTypes } from './common/serviceRegistry' ;
@@ -30,7 +29,6 @@ import * as pythonEnvironments from './pythonEnvironments';
3029import { IDiscoveryAPI } from './pythonEnvironments/base/locator' ;
3130import { registerLogger } from './logging' ;
3231import { OutputChannelLogger } from './logging/outputChannelLogger' ;
33- import { WorkspaceService } from './common/application/workspace' ;
3432
3533// The code in this module should do nothing more complex than register
3634// objects to DI and simple init (e.g. no side effects). That implies
@@ -58,12 +56,7 @@ export function initializeGlobals(
5856 disposables . push ( standardOutputChannel ) ;
5957 disposables . push ( registerLogger ( new OutputChannelLogger ( standardOutputChannel ) ) ) ;
6058
61- const workspaceService = new WorkspaceService ( ) ;
62- const unitTestOutChannel =
63- workspaceService . isVirtualWorkspace || ! workspaceService . isTrusted
64- ? // Do not create any test related output UI when using virtual workspaces.
65- instance ( mock < ITestOutputChannel > ( ) )
66- : window . createOutputChannel ( OutputChannelNames . pythonTest ) ;
59+ const unitTestOutChannel = window . createOutputChannel ( OutputChannelNames . pythonTest ) ;
6760 disposables . push ( unitTestOutChannel ) ;
6861
6962 serviceManager . addSingletonInstance < ILogOutputChannel > ( ILogOutputChannel , standardOutputChannel ) ;
0 commit comments