Fixed #3936 display cancel msg when interrupt run cell (#5518)

This commit is contained in:
Yurong He
2019-05-20 21:52:36 -07:00
committed by GitHub
parent fe7ec76cd5
commit c1f73255b5

View File

@@ -213,6 +213,7 @@ export class CellModel implements ICellModel {
if (this.future && this.future.inProgress) {
this.future.inProgress = false;
await kernel.interrupt();
this.sendNotification(notificationService, Severity.Info, localize('runCellCancelled', "Cell execution cancelled"));
} else {
// TODO update source based on editor component contents
if (kernel.requiresConnection && !this.notebookModel.activeConnection) {