Add connection type to websocket query parameters
This allows external services to distinguish between them.
This commit is contained in:
parent
c7e6e58387
commit
0b9a478289
|
@ -442,6 +442,19 @@ index d0f6e6b18a..1966fd297d 100644
|
||||||
-
|
-
|
||||||
-
|
-
|
||||||
-
|
-
|
||||||
|
diff --git a/src/vs/platform/remote/common/remoteAgentConnection.ts b/src/vs/platform/remote/common/remoteAgentConnection.ts
|
||||||
|
index eab8591492..26668701f7 100644
|
||||||
|
--- a/src/vs/platform/remote/common/remoteAgentConnection.ts
|
||||||
|
+++ b/src/vs/platform/remote/common/remoteAgentConnection.ts
|
||||||
|
@@ -88,7 +88,7 @@ async function connectToRemoteExtensionHostAgent(options: ISimpleConnectionOptio
|
||||||
|
options.socketFactory.connect(
|
||||||
|
options.host,
|
||||||
|
options.port,
|
||||||
|
- `reconnectionToken=${options.reconnectionToken}&reconnection=${options.reconnectionProtocol ? 'true' : 'false'}`,
|
||||||
|
+ `type=${connectionTypeToString(connectionType)}&reconnectionToken=${options.reconnectionToken}&reconnection=${options.reconnectionProtocol ? 'true' : 'false'}`,
|
||||||
|
(err: any, socket: ISocket | undefined) => {
|
||||||
|
if (err || !socket) {
|
||||||
|
options.logService.error(`${logPrefix} socketFactory.connect() failed. Error:`);
|
||||||
diff --git a/src/vs/server/browser/client.ts b/src/vs/server/browser/client.ts
|
diff --git a/src/vs/server/browser/client.ts b/src/vs/server/browser/client.ts
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000..95e70869f2
|
index 0000000000..95e70869f2
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "code-server",
|
"name": "code-server",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "ci/clean.sh",
|
"clean": "ci/clean.sh",
|
||||||
"vscode": "ci/vscode.sh",
|
"vscode": "ci/vscode.sh",
|
||||||
|
|
|
@ -53,6 +53,7 @@ Our changes include:
|
||||||
- Make extensions work in the browser.
|
- Make extensions work in the browser.
|
||||||
- Fix getting permanently disconnected when you sleep or hibernate for a while.
|
- Fix getting permanently disconnected when you sleep or hibernate for a while.
|
||||||
- Make it possible to automatically update the binary.
|
- Make it possible to automatically update the binary.
|
||||||
|
- Add connection type to web socket query parameters.
|
||||||
|
|
||||||
## Future
|
## Future
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue