Skip to content

Commit ef8f1c6

Browse files
committed
Add back connection type query param (#14)
Fixes coder/code-server#4482.
1 parent a9ea411 commit ef8f1c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
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'}`, 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'}`, 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)