Skip to content

Commit 9780334

Browse files
krassowskiAuthor: MikeSem
andcommitted
Use proper web socket URL, see jupyter-lsp/jupyterlab-lsp#819
Co-authored-by: Author: MikeSem <[email protected]>
1 parent 4a267df commit 9780334

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/lsp/src/connection_manager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Distributed under the terms of the Modified BSD License.
33

44
import { PageConfig, URLExt } from '@jupyterlab/coreutils';
5+
import { ServerConnection } from '@jupyterlab/services';
56
import { IDocumentWidget } from '@jupyterlab/docregistry';
67
import { ISignal, Signal } from '@lumino/signaling';
78

@@ -547,7 +548,8 @@ export namespace DocumentConnectionManager {
547548
virtualDocument: VirtualDocument,
548549
language: string
549550
): IURIs | undefined {
550-
const wsBase = PageConfig.getBaseUrl().replace(/^http/, 'ws');
551+
const settings = ServerConnection.makeSettings();
552+
const wsBase = settings.wsUrl;
551553
const rootUri = PageConfig.getOption('rootUri');
552554
const virtualDocumentsUri = PageConfig.getOption('virtualDocumentsUri');
553555

0 commit comments

Comments
 (0)