@@ -10,7 +10,7 @@ import { ILabelService, ResourceLabelFormatting } from 'vs/platform/label/common
10
10
import { OperatingSystem , isWeb , OS } from 'vs/base/common/platform' ;
11
11
import { Schemas } from 'vs/base/common/network' ;
12
12
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' ;
14
14
import { localize } from 'vs/nls' ;
15
15
import { Disposable } from 'vs/base/common/lifecycle' ;
16
16
import { IConfigurationRegistry , Extensions as ConfigurationExtensions } from 'vs/platform/configuration/common/configurationRegistry' ;
@@ -66,7 +66,6 @@ export class LabelContribution implements IWorkbenchContribution {
66
66
class RemoteChannelsContribution extends Disposable implements IWorkbenchContribution {
67
67
68
68
constructor (
69
- @ILogService logService : ILogService ,
70
69
@IRemoteAgentService remoteAgentService : IRemoteAgentService ,
71
70
@IDownloadService downloadService : IDownloadService ,
72
71
@ILoggerService loggerService : ILoggerService ,
@@ -75,19 +74,6 @@ class RemoteChannelsContribution extends Disposable implements IWorkbenchContrib
75
74
const connection = remoteAgentService . getConnection ( ) ;
76
75
if ( connection ) {
77
76
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 ) {
91
77
connection . withChannel ( 'logger' , async channel => this . _register ( new RemoteLoggerChannelClient ( loggerService , channel ) ) ) ;
92
78
}
93
79
}
@@ -255,9 +241,8 @@ class InitialRemoteConnectionHealthContribution implements IWorkbenchContributio
255
241
256
242
const workbenchContributionsRegistry = Registry . as < IWorkbenchContributionsRegistry > ( WorkbenchExtensions . Workbench ) ;
257
243
workbenchContributionsRegistry . registerWorkbenchContribution ( LabelContribution , LifecyclePhase . Starting ) ;
258
- workbenchContributionsRegistry . registerWorkbenchContribution ( RemoteChannelsContribution , LifecyclePhase . Starting ) ;
244
+ workbenchContributionsRegistry . registerWorkbenchContribution ( RemoteChannelsContribution , LifecyclePhase . Restored ) ;
259
245
workbenchContributionsRegistry . registerWorkbenchContribution ( RemoteInvalidWorkspaceDetector , LifecyclePhase . Starting ) ;
260
- workbenchContributionsRegistry . registerWorkbenchContribution ( RemoteLogOutputChannels , LifecyclePhase . Restored ) ;
261
246
workbenchContributionsRegistry . registerWorkbenchContribution ( InitialRemoteConnectionHealthContribution , LifecyclePhase . Ready ) ;
262
247
263
248
const enableDiagnostics = true ;
0 commit comments