diff --git a/news/2 Fixes/10539.md b/news/2 Fixes/10539.md new file mode 100644 index 00000000000..a3448dd6aa7 --- /dev/null +++ b/news/2 Fixes/10539.md @@ -0,0 +1 @@ +Remove extra button from Restart Kernel modal. (Thanks [kilacoda](https://github.com/kilacoda)) diff --git a/src/notebooks/notebookCommandListener.ts b/src/notebooks/notebookCommandListener.ts index 838a1f21b63..58366bfbbd8 100644 --- a/src/notebooks/notebookCommandListener.ts +++ b/src/notebooks/notebookCommandListener.ts @@ -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);