Skip to content

Commit be23012

Browse files
committed
fixup! Move connection logic into connection class
1 parent 114525b commit be23012

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/vscode/src/vs/server/node/connection.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export abstract class Connection {
2727
) {
2828
this.logger = logger.named(
2929
this.name,
30-
field("token", this.protocol.options.reconnectionToken),
30+
field('token', this.protocol.options.reconnectionToken),
3131
);
3232

3333
this.logger.debug('Connecting...');
@@ -146,7 +146,7 @@ export class ExtensionHostConnection extends Connection {
146146

147147
private sendInitMessage(buffer: VSBuffer, inflateBytes: Uint8Array | undefined): void {
148148
if (!this.process) {
149-
throw new Error("Tried to initialize VS Code before spawning");
149+
throw new Error('Tried to initialize VS Code before spawning');
150150
}
151151

152152
this.logger.debug('Sending socket');

lib/vscode/src/vs/server/node/server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export class Vscode {
201201
const offline = Array.from(connections.values())
202202
.filter((connection) => typeof connection.offline !== 'undefined');
203203
for (let i = 0, max = offline.length - this.maxExtraOfflineConnections; i < max; ++i) {
204-
offline[i].dispose("old");
204+
offline[i].dispose('old');
205205
}
206206
}
207207

0 commit comments

Comments
 (0)