Skip to content

Commit

Permalink
Merge pull request #413 from martinRenou/better_error_message
Browse files Browse the repository at this point in the history
Improve error message when there is no language server installed for the current language
  • Loading branch information
krassowski authored Dec 12, 2020
2 parents 62206e5 + 9fa0d71 commit e2b95e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/jupyterlab-lsp/src/connection_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit e2b95e3

Please sign in to comment.