add NotebookController#detail

This commit is contained in:
Johannes Rieken
2021-04-19 08:58:01 +02:00
parent 8aff878db2
commit 6b9bd78998
4 changed files with 14 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ abstract class MainThreadKernel implements INotebookKernel2 {
this.implementsInterrupt = data.supportsInterrupt ?? false;
this.label = data.label;
this.description = data.description;
this.detail = data.detail;
this.isPreferred = data.isPreferred;
this.supportedLanguages = data.supportedLanguages;
this.implementsExecutionOrder = data.hasExecutionOrder ?? false;
@@ -69,6 +70,10 @@ abstract class MainThreadKernel implements INotebookKernel2 {
this.description = data.description;
event.description = true;
}
if (data.detail !== undefined) {
this.detail = data.detail;
event.detail = true;
}
if (data.isPreferred !== undefined) {
this.isPreferred = data.isPreferred;
event.isPreferred = true;