Skip to content

Commit

Permalink
Use proper web socket URL, see jupyter-lsp/jupyterlab-lsp#819
Browse files Browse the repository at this point in the history
Co-authored-by: Author: MikeSem <[email protected]>
  • Loading branch information
krassowski and Author: MikeSem committed Jun 18, 2023
1 parent 4a267df commit 9780334
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/lsp/src/connection_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Distributed under the terms of the Modified BSD License.

import { PageConfig, URLExt } from '@jupyterlab/coreutils';
import { ServerConnection } from '@jupyterlab/services';
import { IDocumentWidget } from '@jupyterlab/docregistry';
import { ISignal, Signal } from '@lumino/signaling';

Expand Down Expand Up @@ -547,7 +548,8 @@ export namespace DocumentConnectionManager {
virtualDocument: VirtualDocument,
language: string
): IURIs | undefined {
const wsBase = PageConfig.getBaseUrl().replace(/^http/, 'ws');
const settings = ServerConnection.makeSettings();
const wsBase = settings.wsUrl;
const rootUri = PageConfig.getOption('rootUri');
const virtualDocumentsUri = PageConfig.getOption('virtualDocumentsUri');

Expand Down

0 comments on commit 9780334

Please sign in to comment.