Skip to content

Commit d952d47

Browse files
[Ignore] Update Notebook dts (#2914)
Co-authored-by: TylerLeonhardt <[email protected]>
1 parent 013c23d commit d952d47

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

vscode.proposed.d.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ declare module 'vscode' {
215215

216216
export interface NotebookDocument {
217217
readonly uri: Uri;
218+
readonly version: number;
218219
readonly fileName: string;
219220
readonly viewType: string;
220221
readonly isDirty: boolean;
@@ -245,7 +246,14 @@ declare module 'vscode' {
245246
}
246247

247248
export interface NotebookEditorCellEdit {
249+
250+
replaceCells(from: number, to: number, cells: NotebookCellData[]): void;
251+
replaceOutputs(index: number, outputs: CellOutput[]): void;
252+
replaceMetadata(index: number, metadata: NotebookCellMetadata): void;
253+
254+
/** @deprecated */
248255
insert(index: number, content: string | string[], language: string, type: CellKind, outputs: CellOutput[], metadata: NotebookCellMetadata | undefined): void;
256+
/** @deprecated */
249257
delete(index: number): void;
250258
}
251259

@@ -369,9 +377,9 @@ declare module 'vscode' {
369377
export interface NotebookCellData {
370378
readonly cellKind: CellKind;
371379
readonly source: string;
372-
language: string;
373-
outputs: CellOutput[];
374-
metadata: NotebookCellMetadata;
380+
readonly language: string;
381+
readonly outputs: CellOutput[];
382+
readonly metadata: NotebookCellMetadata | undefined;
375383
}
376384

377385
export interface NotebookData {

0 commit comments

Comments
 (0)