Skip to content

Commit 58f0d46

Browse files
authored
clean up (#171395)
1 parent 05e1981 commit 58f0d46

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

src/vs/workbench/contrib/remote/common/remote.contribution.ts

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { ILabelService, ResourceLabelFormatting } from 'vs/platform/label/common
1010
import { OperatingSystem, isWeb, OS } from 'vs/base/common/platform';
1111
import { Schemas } from 'vs/base/common/network';
1212
import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteAgentService';
13-
import { ILoggerService, ILogService } from 'vs/platform/log/common/log';
13+
import { ILoggerService } from 'vs/platform/log/common/log';
1414
import { localize } from 'vs/nls';
1515
import { Disposable } from 'vs/base/common/lifecycle';
1616
import { IConfigurationRegistry, Extensions as ConfigurationExtensions } from 'vs/platform/configuration/common/configurationRegistry';
@@ -66,7 +66,6 @@ export class LabelContribution implements IWorkbenchContribution {
6666
class RemoteChannelsContribution extends Disposable implements IWorkbenchContribution {
6767

6868
constructor(
69-
@ILogService logService: ILogService,
7069
@IRemoteAgentService remoteAgentService: IRemoteAgentService,
7170
@IDownloadService downloadService: IDownloadService,
7271
@ILoggerService loggerService: ILoggerService,
@@ -75,19 +74,6 @@ class RemoteChannelsContribution extends Disposable implements IWorkbenchContrib
7574
const connection = remoteAgentService.getConnection();
7675
if (connection) {
7776
connection.registerChannel('download', new DownloadServiceChannel(downloadService));
78-
}
79-
}
80-
}
81-
82-
class RemoteLogOutputChannels extends Disposable implements IWorkbenchContribution {
83-
84-
constructor(
85-
@IRemoteAgentService remoteAgentService: IRemoteAgentService,
86-
@ILoggerService loggerService: ILoggerService,
87-
) {
88-
super();
89-
const connection = remoteAgentService.getConnection();
90-
if (connection) {
9177
connection.withChannel('logger', async channel => this._register(new RemoteLoggerChannelClient(loggerService, channel)));
9278
}
9379
}
@@ -255,9 +241,8 @@ class InitialRemoteConnectionHealthContribution implements IWorkbenchContributio
255241

256242
const workbenchContributionsRegistry = Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench);
257243
workbenchContributionsRegistry.registerWorkbenchContribution(LabelContribution, LifecyclePhase.Starting);
258-
workbenchContributionsRegistry.registerWorkbenchContribution(RemoteChannelsContribution, LifecyclePhase.Starting);
244+
workbenchContributionsRegistry.registerWorkbenchContribution(RemoteChannelsContribution, LifecyclePhase.Restored);
259245
workbenchContributionsRegistry.registerWorkbenchContribution(RemoteInvalidWorkspaceDetector, LifecyclePhase.Starting);
260-
workbenchContributionsRegistry.registerWorkbenchContribution(RemoteLogOutputChannels, LifecyclePhase.Restored);
261246
workbenchContributionsRegistry.registerWorkbenchContribution(InitialRemoteConnectionHealthContribution, LifecyclePhase.Ready);
262247

263248
const enableDiagnostics = true;

0 commit comments

Comments
 (0)