Skip to content

Commit 237a6eb

Browse files
code-asherZauberNerd
authored andcommitted
Add back connection type query param (microsoft#14)
Fixes coder/code-server#4482.
1 parent d129d67 commit 237a6eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ async function connectToRemoteExtensionHostAgent(options: ISimpleConnectionOptio
231231

232232
let socket: ISocket;
233233
try {
234-
socket = await createSocket(options.logService, options.socketFactory, options.host, options.port, `reconnectionToken=${options.reconnectionToken}&reconnection=${options.reconnectionProtocol ? 'true' : 'false'}`, `renderer-${connectionTypeToString(connectionType)}-${options.reconnectionToken}`, timeoutCancellationToken);
234+
// NOTE@coder: Add connection type to the socket. This is so they can be
235+
// distinguished by the backend.
236+
socket = await createSocket(options.logService, options.socketFactory, options.host, options.port, `type=${connectionTypeToString(connectionType)}&reconnectionToken=${options.reconnectionToken}&reconnection=${options.reconnectionProtocol ? 'true' : 'false'}`, `renderer-${connectionTypeToString(connectionType)}-${options.reconnectionToken}`, timeoutCancellationToken);
235237
} catch (error) {
236238
options.logService.error(`${logPrefix} socketFactory.connect() failed or timed out. Error:`);
237239
options.logService.error(error);

0 commit comments

Comments
 (0)