File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -619,15 +619,15 @@ index d39c5877d6..c189d6f19f 100644
619
619
620
620
const rootPath = path.dirname(getPathFromAmdModule(require, ''));
621
621
diff --git a/src/vs/platform/remote/browser/browserWebSocketFactory.ts b/src/vs/platform/remote/browser/browserWebSocketFactory.ts
622
- index 6d9ecbcf5a..1b3499dddf 100644
622
+ index 6d9ecbcf5a..a3eb980965 100644
623
623
--- a/src/vs/platform/remote/browser/browserWebSocketFactory.ts
624
624
+++ b/src/vs/platform/remote/browser/browserWebSocketFactory.ts
625
625
@@ -79,7 +79,7 @@ class BrowserSocket implements ISocket {
626
626
export const browserWebSocketFactory = new class implements IWebSocketFactory {
627
627
connect(host: string, port: number, query: string, callback: IConnectCallback): void {
628
628
const errorListener = (err: any) => callback(err, undefined);
629
629
- const socket = new WebSocket(`ws://${host}:${port}/?${query}&skipWebSocketFrames=false`);
630
- + const socket = new WebSocket(`${window.location.protocol === 'https:' ? 'wss' : 'ws'}://${host}:${port}${ window.location.pathname.replace(/\/+$/, '')}/ ?${query}&skipWebSocketFrames=false`);
630
+ + const socket = new WebSocket(`${window.location.protocol === 'https:' ? 'wss' : 'ws'}://${window.location. host}${ window.location.pathname} ?${query}&skipWebSocketFrames=false`);
631
631
socket.onopen = function (event) {
632
632
socket.removeEventListener('error', errorListener);
633
633
callback(undefined, new BrowserSocket(socket));
You can’t perform that action at this time.
0 commit comments