From ad24edd2be21c9c015a6656de472c6d929b2cc19 Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 4 Mar 2021 10:39:16 -0600 Subject: [PATCH] Revert remaining remote agent connection changes --- .../src/vs/platform/remote/common/remoteAgentConnection.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/vscode/src/vs/platform/remote/common/remoteAgentConnection.ts b/lib/vscode/src/vs/platform/remote/common/remoteAgentConnection.ts index 4d80e204..82791249 100644 --- a/lib/vscode/src/vs/platform/remote/common/remoteAgentConnection.ts +++ b/lib/vscode/src/vs/platform/remote/common/remoteAgentConnection.ts @@ -372,8 +372,7 @@ export class ReconnectionWaitEvent { public readonly reconnectionToken: string, public readonly millisSinceLastIncomingData: number, public readonly durationSeconds: number, - private readonly cancellableTimer: CancelablePromise, - public readonly connectionAttempt: number + private readonly cancellableTimer: CancelablePromise ) { } public skipWait(): void { @@ -480,7 +479,7 @@ abstract class PersistentConnection extends Disposable { try { if (waitTime > 0) { const sleepPromise = sleep(waitTime); - this._onDidStateChange.fire(new ReconnectionWaitEvent(this.reconnectionToken, this.protocol.getMillisSinceLastIncomingData(), waitTime, sleepPromise, attempt)); + this._onDidStateChange.fire(new ReconnectionWaitEvent(this.reconnectionToken, this.protocol.getMillisSinceLastIncomingData(), waitTime, sleepPromise)); this._options.logService.info(`${logPrefix} waiting for ${waitTime} seconds before reconnecting...`); try {