mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
add kernel push to proposed API
This commit is contained in:
@@ -20,9 +20,9 @@ abstract class MainThreadKernel implements INotebookKernel2 {
|
||||
|
||||
readonly id: string;
|
||||
readonly selector: NotebookSelector;
|
||||
readonly detail: string;
|
||||
|
||||
label: string;
|
||||
detail?: string;
|
||||
description?: string;
|
||||
isPreferred?: boolean;
|
||||
supportedLanguages: string[];
|
||||
@@ -32,8 +32,8 @@ abstract class MainThreadKernel implements INotebookKernel2 {
|
||||
constructor(data: INotebookKernelDto2) {
|
||||
this.id = data.id;
|
||||
this.selector = data.selector;
|
||||
this.detail = data.displayName;
|
||||
this.label = data.label;
|
||||
this.detail = data.detail;
|
||||
this.description = data.description;
|
||||
this.isPreferred = data.isPreferred;
|
||||
this.supportedLanguages = data.supportedLanguages;
|
||||
@@ -48,10 +48,6 @@ abstract class MainThreadKernel implements INotebookKernel2 {
|
||||
this.label = data.label;
|
||||
event.label = true;
|
||||
}
|
||||
if (data.detail !== undefined) {
|
||||
this.detail = data.detail;
|
||||
event.detail = true;
|
||||
}
|
||||
if (data.description !== undefined) {
|
||||
this.description = data.description;
|
||||
event.description = true;
|
||||
|
||||
Reference in New Issue
Block a user