File tree Expand file tree Collapse file tree
workbench/contrib/notebook/common Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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+
156163export interface IDisplayOutput {
157164 outputKind : CellOutputKind . Rich ;
158165 /**
159166 * { mime_type: value }
160167 */
161168 data : { [ key : string ] : any ; }
169+
170+ metadata ?: NotebookCellOutputMetadata ;
162171}
163172
164173export enum MimeTypeRendererResolver {
@@ -177,6 +186,7 @@ export interface IOrderedMimeType {
177186export interface ITransformedDisplayOutputDto {
178187 outputKind : CellOutputKind . Rich ;
179188 data : { [ key : string ] : any ; }
189+ metadata ?: NotebookCellOutputMetadata ;
180190
181191 orderedMimeTypes ?: IOrderedMimeType [ ] ;
182192 pickedMimeTypeIndex ?: number ;
You can’t perform that action at this time.
0 commit comments