Skip to content

Commit d1bbe99

Browse files
committed
💄 remove anoy loggings
1 parent 4e55c23 commit d1bbe99

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

src/local-ssh/ipc/extension.ts

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)