/
NotebookCellData.hx
48 lines (41 loc) · 1.25 KB
/
NotebookCellData.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package vscode;
/**
* NotebookCellData is the raw representation of notebook cells. Its is part of {@linkcode NotebookData}.
*/
@:jsRequire("vscode", "NotebookCellData")
extern class NotebookCellData {
/**
* The {@link NotebookCellKind kind} of this cell data.
*/
var kind:NotebookCellKind;
/**
* The source value of this cell data - either source code or formatted text.
*/
var value:String;
/**
* The language identifier of the source value of this cell data. Any value from
* {@linkcode languages.getLanguages getLanguages} is possible.
*/
var languageId:String;
/**
* The outputs of this cell data.
*/
var outputs:Null<Array<NotebookCellOutput>>;
/**
* Arbitrary metadata of this cell data. Can be anything but must be JSON-stringifyable.
*/
var metadata:Null<DynamicAccess<Any>>;
/**
* The execution summary of this cell data.
*/
var executionSummary:Null<NotebookCellExecutionSummary>;
/**
* Create new cell data. Minimal cell data specifies its kind, its source value, and the
* language identifier of its source.
*
* @param kind The kind.
* @param value The source value.
* @param languageId The language identifier of the source value.
*/
function new(kind:NotebookCellKind, value:String, languageId:String);
}