diff --git a/lib/vscode/src/vs/platform/remote/common/remoteAgentConnection.ts b/lib/vscode/src/vs/platform/remote/common/remoteAgentConnection.ts index 4d80e2045..82791249f 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 {