@@ -234,9 +234,6 @@ export class ExtensionServiceServer extends Disposable {
234234 try {
235235 await this . localSSHServiceClient . ping ( { } ) ;
236236 this . pingLocalSSHRetryCount = 0 ;
237- this . notifyIfDaemonNeedsRestart ( ) . catch ( e => {
238- this . logService . error ( e , 'failed to notify if daemon needs restart' ) ;
239- } ) ;
240237 } catch ( err ) {
241238 this . logService . error ( 'failed to ping local ssh service, going to start a new one' , err ) ;
242239 ensureDaemonStarted ( this . logService , this . telemetryService ) . catch ( ( ) => { } ) ;
@@ -247,15 +244,15 @@ export class ExtensionServiceServer extends Disposable {
247244 }
248245 }
249246
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+ // }
261258}
0 commit comments