diff --git a/packages/jupyterlab-lsp/src/connection_manager.ts b/packages/jupyterlab-lsp/src/connection_manager.ts index 4835a55da..e72a17528 100644 --- a/packages/jupyterlab-lsp/src/connection_manager.ts +++ b/packages/jupyterlab-lsp/src/connection_manager.ts @@ -326,6 +326,10 @@ export namespace DocumentConnectionManager { language }); + if (language_server_id === null) { + throw `No language server installed for language ${language}`; + } + return { base: baseUri, document: URLExt.join(baseUri, virtual_document.uri),