add NotebookController#detail

上级 8aff878d
......@@ -1494,6 +1494,7 @@ declare module 'vscode' {
// UI properties (get/set)
label: string;
detail?: string;
description?: string;
isPreferred?: boolean;
......
......@@ -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;
......
......@@ -914,6 +914,7 @@ export interface INotebookKernelDto2 {
extensionId: ExtensionIdentifier;
extensionLocation: UriComponents;
label: string;
detail?: string;
description?: string;
isPreferred?: boolean;
supportedLanguages: string[];
......
......@@ -106,6 +106,13 @@ export class ExtHostNotebookKernels implements ExtHostNotebookKernelsShape {
data.label = value ?? extension.displayName ?? extension.name;
_update();
},
get detail() {
return data.detail ?? '';
},
set detail(value) {
data.detail = value;
_update();
},
get description() {
return data.description ?? '';
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册