Skip to content

Commit b2b53d3

Browse files
karthiknadiganthonykim1
authored andcommitted
Remove use of mocked output channel in virtual workspace (microsoft#24051)
1 parent 0c0d371 commit b2b53d3

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

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';
@@ -30,7 +29,6 @@ import * as pythonEnvironments from './pythonEnvironments';
3029
import { IDiscoveryAPI } from './pythonEnvironments/base/locator';
3130
import { registerLogger } from './logging';
3231
import { 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

Comments
 (0)