We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 240f2cb + 138b3e1 commit f9bb85fCopy full SHA for f9bb85f
packages/jupyterlab-lsp/src/connection_manager.ts
@@ -1,4 +1,5 @@
1
import { PageConfig, URLExt } from '@jupyterlab/coreutils';
2
+import { ServerConnection } from '@jupyterlab/services';
3
import { Signal } from '@lumino/signaling';
4
import type * as protocol from 'vscode-languageserver-protocol';
5
@@ -391,7 +392,8 @@ export namespace DocumentConnectionManager {
391
392
virtual_document: VirtualDocument,
393
language: string
394
): IURIs {
- const wsBase = PageConfig.getBaseUrl().replace(/^http/, 'ws');
395
+ const settings = ServerConnection.makeSettings();
396
+ const wsBase = settings.wsUrl;
397
const rootUri = PageConfig.getOption('rootUri');
398
const virtualDocumentsUri = PageConfig.getOption('virtualDocumentsUri');
399
0 commit comments