Skip to content

Commit d73a2df

Browse files
Remove use of mocked output channel in virtual workspace (#24051) (#24056)
cherry pick Co-authored-by: Karthik Nadig <[email protected]>
1 parent 873c398 commit d73a2df

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/client/extensionInit.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import { Container } from 'inversify';
77
import { Disposable, Memento, window } from 'vscode';
8-
import { instance, mock } from 'ts-mockito';
98
import { registerTypes as platformRegisterTypes } from './common/platform/serviceRegistry';
109
import { registerTypes as processRegisterTypes } from './common/process/serviceRegistry';
1110
import { registerTypes as commonRegisterTypes } from './common/serviceRegistry';
@@ -29,7 +28,6 @@ import * as pythonEnvironments from './pythonEnvironments';
2928
import { IDiscoveryAPI } from './pythonEnvironments/base/locator';
3029
import { registerLogger } from './logging';
3130
import { OutputChannelLogger } from './logging/outputChannelLogger';
32-
import { WorkspaceService } from './common/application/workspace';
3331

3432
// The code in this module should do nothing more complex than register
3533
// objects to DI and simple init (e.g. no side effects). That implies
@@ -57,12 +55,7 @@ export function initializeGlobals(
5755
disposables.push(standardOutputChannel);
5856
disposables.push(registerLogger(new OutputChannelLogger(standardOutputChannel)));
5957

60-
const workspaceService = new WorkspaceService();
61-
const unitTestOutChannel =
62-
workspaceService.isVirtualWorkspace || !workspaceService.isTrusted
63-
? // Do not create any test related output UI when using virtual workspaces.
64-
instance(mock<ITestOutputChannel>())
65-
: window.createOutputChannel(OutputChannelNames.pythonTest);
58+
const unitTestOutChannel = window.createOutputChannel(OutputChannelNames.pythonTest);
6659
disposables.push(unitTestOutChannel);
6760

6861
serviceManager.addSingletonInstance<ILogOutputChannel>(ILogOutputChannel, standardOutputChannel);

0 commit comments

Comments
 (0)