Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #520 from mnowacki-b/default
Browse files Browse the repository at this point in the history
Return true from DebuggerServicer#isAvailable when spec is not available
  • Loading branch information
jtpio committed Jul 27, 2020
2 parents aa51408 + 4210366 commit c1defd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/service.ts
Expand Up @@ -156,6 +156,9 @@ export class DebuggerService implements IDebugger, IDisposable {
return false;
}
const name = kernel.name;
if (!this._specsManager.specs.kernelspecs[name]) {
return true;
}
return !!(
this._specsManager.specs.kernelspecs[name].metadata?.['debugger'] ?? false
);
Expand Down

0 comments on commit c1defd5

Please sign in to comment.