Add socket type to websocket connection query (#3391)
This was added a long time ago but accidentally lost when we reverted the retry changes to this file after one of the VS Code updates that added their own retry (we reverted everything not realizing we had other unrelated changes in here).
This commit is contained in:
parent
36265ddfaf
commit
b49b1796e9
|
@ -229,7 +229,9 @@ async function connectToRemoteExtensionHostAgent(options: ISimpleConnectionOptio
|
||||||
|
|
||||||
let socket: ISocket;
|
let socket: ISocket;
|
||||||
try {
|
try {
|
||||||
socket = await createSocket(options.logService, options.socketFactory, options.host, options.port, `reconnectionToken=${options.reconnectionToken}&reconnection=${options.reconnectionProtocol ? 'true' : 'false'}`, 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'}`, timeoutCancellationToken);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
options.logService.error(`${logPrefix} socketFactory.connect() failed or timed out. Error:`);
|
options.logService.error(`${logPrefix} socketFactory.connect() failed or timed out. Error:`);
|
||||||
options.logService.error(error);
|
options.logService.error(error);
|
||||||
|
|
Loading…
Reference in New Issue