Skip to content

Commit 3d0a23b

Browse files
committed
Revert remaining remote agent connection changes
1 parent 6e659b0 commit 3d0a23b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/vscode/src/vs/platform/remote/common/remoteAgentConnection.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,7 @@ export class ReconnectionWaitEvent {
372372
public readonly reconnectionToken: string,
373373
public readonly millisSinceLastIncomingData: number,
374374
public readonly durationSeconds: number,
375-
private readonly cancellableTimer: CancelablePromise<void>,
376-
public readonly connectionAttempt: number
375+
private readonly cancellableTimer: CancelablePromise<void>
377376
) { }
378377

379378
public skipWait(): void {
@@ -480,7 +479,7 @@ abstract class PersistentConnection extends Disposable {
480479
try {
481480
if (waitTime > 0) {
482481
const sleepPromise = sleep(waitTime);
483-
this._onDidStateChange.fire(new ReconnectionWaitEvent(this.reconnectionToken, this.protocol.getMillisSinceLastIncomingData(), waitTime, sleepPromise, attempt));
482+
this._onDidStateChange.fire(new ReconnectionWaitEvent(this.reconnectionToken, this.protocol.getMillisSinceLastIncomingData(), waitTime, sleepPromise));
484483

485484
this._options.logService.info(`${logPrefix} waiting for ${waitTime} seconds before reconnecting...`);
486485
try {

0 commit comments

Comments
 (0)