Skip to content

Commit

Permalink
Only warn about missing spec for now
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Apr 23, 2023
1 parent fac9ff6 commit b4136fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/jupyterlab-lsp/src/connection_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,11 @@ export namespace DocumentConnectionManager {
const specs = serverManager.getMatchingSpecs(serverOptions);
const spec = specs.get(languageServerId);
if (!spec) {
throw `Specification not available for server ${languageServerId}`;
console.warn(
`Specification not available for server ${languageServerId}`
);
}
const requiresOnDiskFiles = spec.requires_documents_on_disk ?? true;
const requiresOnDiskFiles = spec?.requires_documents_on_disk ?? true;
const supportsInMemoryFiles = !requiresOnDiskFiles;

const baseUri =
Expand Down

0 comments on commit b4136fb

Please sign in to comment.