From 1bf3036597a9614c39d8f6a7ab93365e6f02883f Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Fri, 26 Feb 2021 12:55:04 -0700 Subject: [PATCH] fix(connection): onClose -> onDidDispose protocol --- lib/vscode/src/vs/server/node/connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vscode/src/vs/server/node/connection.ts b/lib/vscode/src/vs/server/node/connection.ts index 6b7c5ffd2..b584a34c1 100644 --- a/lib/vscode/src/vs/server/node/connection.ts +++ b/lib/vscode/src/vs/server/node/connection.ts @@ -54,7 +54,7 @@ export abstract class Connection { export class ManagementConnection extends Connection { public constructor(protected protocol: Protocol, token: string) { super(protocol, token); - protocol.onClose(() => this.dispose()); // Explicit close. + protocol.onDidDispose(() => this.dispose()); // Explicit close. protocol.onSocketClose(() => this.setOffline()); // Might reconnect. }