Skip to content

Commit

Permalink
Remove extra button from Restart Kernel modal (#10539)
Browse files Browse the repository at this point in the history
* Remove extra button from Restart Kernel modal

* Remove extra button from Restart Kernel modal (#10539)

* Update 10539.md

Co-authored-by: Rich Chiodo <rchiodo@users.noreply.github.com>
  • Loading branch information
kilacoda and rchiodo authored Jun 22, 2022
1 parent f274826 commit 380e100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions news/2 Fixes/10539.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove extra button from Restart Kernel modal. (Thanks [kilacoda](https://github.com/kilacoda))
4 changes: 1 addition & 3 deletions src/notebooks/notebookCommandListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,12 @@ export class NotebookCommandListener implements IDataScienceCommandListener {
const message = DataScience.restartKernelMessage();
const yes = DataScience.restartKernelMessageYes();
const dontAskAgain = DataScience.restartKernelMessageDontAskAgain();
const no = DataScience.restartKernelMessageNo();

const response = await this.applicationShell.showInformationMessage(
message,
{ modal: true },
yes,
dontAskAgain,
no
dontAskAgain
);
if (response === dontAskAgain) {
await this.disableAskForRestart(document.uri);
Expand Down

0 comments on commit 380e100

Please sign in to comment.