Skip to content

Commit f5540cf

Browse files
committed
1 parent a6e747b commit f5540cf

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

src/vs/vscode.proposed.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,13 @@ declare module 'vscode' {
12891289
traceback: string[];
12901290
}
12911291

1292+
export interface NotebookCellOutputMetadata {
1293+
/**
1294+
* Additional attributes of a cell metadata.
1295+
*/
1296+
custom?: { [key: string]: any };
1297+
}
1298+
12921299
export interface CellDisplayOutput {
12931300
outputKind: CellOutputKind.Rich;
12941301
/**
@@ -1309,6 +1316,8 @@ declare module 'vscode' {
13091316
* }
13101317
*/
13111318
data: { [key: string]: any; };
1319+
1320+
readonly metadata?: NotebookCellOutputMetadata;
13121321
}
13131322

13141323
export type CellOutput = CellStreamOutput | CellErrorOutput | CellDisplayOutput;

src/vs/workbench/contrib/notebook/common/notebookCommon.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,21 @@ export interface IErrorOutput {
153153
traceback?: string[];
154154
}
155155

156+
export interface NotebookCellOutputMetadata {
157+
/**
158+
* Additional attributes of a cell metadata.
159+
*/
160+
custom?: { [key: string]: any };
161+
}
162+
156163
export interface IDisplayOutput {
157164
outputKind: CellOutputKind.Rich;
158165
/**
159166
* { mime_type: value }
160167
*/
161168
data: { [key: string]: any; }
169+
170+
metadata?: NotebookCellOutputMetadata;
162171
}
163172

164173
export enum MimeTypeRendererResolver {
@@ -177,6 +186,7 @@ export interface IOrderedMimeType {
177186
export interface ITransformedDisplayOutputDto {
178187
outputKind: CellOutputKind.Rich;
179188
data: { [key: string]: any; }
189+
metadata?: NotebookCellOutputMetadata;
180190

181191
orderedMimeTypes?: IOrderedMimeType[];
182192
pickedMimeTypeIndex?: number;

0 commit comments

Comments
 (0)