Skip to content

Commit

Permalink
Add back connection type query param (microsoft#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
code-asher authored and ZauberNerd committed Dec 23, 2021
1 parent 230442a commit 13ca868
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vs/platform/remote/common/remoteAgentConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ async function connectToRemoteExtensionHostAgent(options: ISimpleConnectionOptio

let socket: ISocket;
try {
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);
// NOTE@coder: Add connection type to the socket. This is so they can be
// distinguished by the backend.
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);
} catch (error) {
options.logService.error(`${logPrefix} socketFactory.connect() failed or timed out. Error:`);
options.logService.error(error);
Expand Down

0 comments on commit 13ca868

Please sign in to comment.