-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display errors in cells when we run into kernel issues (#9297)
- Loading branch information
1 parent
7b38613
commit 98f4b05
Showing
35 changed files
with
427 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
src/client/datascience/errors/jupyterDebuggerNotInstalledError.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
'use strict'; | ||
import { BaseError } from '../../common/errors/types'; | ||
import { BaseKernelError } from '../../common/errors/types'; | ||
import '../../common/extensions'; | ||
import * as localize from '../../common/utils/localize'; | ||
import { KernelConnectionMetadata } from '../jupyter/kernels/types'; | ||
|
||
export class JupyterDebuggerNotInstalledError extends BaseError { | ||
constructor(debuggerPkg: string, message?: string) { | ||
export class JupyterDebuggerNotInstalledError extends BaseKernelError { | ||
constructor(debuggerPkg: string, message: string | undefined, kernelConnectionMetadata: KernelConnectionMetadata) { | ||
const errorMessage = message | ||
? message | ||
: localize.DataScience.jupyterDebuggerNotInstalledError().format(debuggerPkg); | ||
super('notinstalled', errorMessage); | ||
super('notinstalled', errorMessage, kernelConnectionMetadata); | ||
} | ||
} |
20 changes: 0 additions & 20 deletions
20
src/client/datascience/errors/jupyterDebuggerPortBlockedError.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.