@@ -234,9 +234,6 @@ export class ExtensionServiceServer extends Disposable {
234
234
try {
235
235
await this . localSSHServiceClient . ping ( { } ) ;
236
236
this . pingLocalSSHRetryCount = 0 ;
237
- this . notifyIfDaemonNeedsRestart ( ) . catch ( e => {
238
- this . logService . error ( e , 'failed to notify if daemon needs restart' ) ;
239
- } ) ;
240
237
} catch ( err ) {
241
238
this . logService . error ( 'failed to ping local ssh service, going to start a new one' , err ) ;
242
239
ensureDaemonStarted ( this . logService , this . telemetryService ) . catch ( ( ) => { } ) ;
@@ -247,15 +244,15 @@ export class ExtensionServiceServer extends Disposable {
247
244
}
248
245
}
249
246
250
- private async notifyIfDaemonNeedsRestart ( ) {
251
- const resp = await this . localSSHServiceClient . getDaemonVersion ( { } ) ;
252
- const runningVersion = new SemVer ( resp . version ) ;
253
- const wantedVersion = new SemVer ( getDaemonVersion ( ) ) ;
254
- if ( runningVersion . compare ( wantedVersion ) >= 0 ) {
255
- return ;
256
- }
257
- // TODO(local-ssh): allow to hide always for current version (wantedVersion)
258
- this . logService . info ( 'restart vscode to get latest features of local ssh' ) ;
259
- // await this.notificationService.showWarningMessage('Restart VSCode to use latest local ssh daemon', { id: 'daemon_needs_restart', flow: { flow: 'daemon_needs_restart' } });
260
- }
247
+ // private async notifyIfDaemonNeedsRestart() {
248
+ // const resp = await this.localSSHServiceClient.getDaemonVersion({});
249
+ // const runningVersion = new SemVer(resp.version);
250
+ // const wantedVersion = new SemVer(getDaemonVersion());
251
+ // if (runningVersion.compare(wantedVersion) >= 0) {
252
+ // return;
253
+ // }
254
+ // // TODO(local-ssh): allow to hide always for current version (wantedVersion)
255
+ // this.logService.info('restart vscode to get latest features of local ssh');
256
+ // // await this.notificationService.showWarningMessage('Restart VSCode to use latest local ssh daemon', { id: 'daemon_needs_restart', flow: { flow: 'daemon_needs_restart' } });
257
+ // }
261
258
}
0 commit comments