Skip to content

Commit 312d8d5

Browse files
[Ignore] Update Notebook dts (#2917)
Co-authored-by: TylerLeonhardt <TylerLeonhardt@users.noreply.github.com>
1 parent d89083c commit 312d8d5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

vscode.proposed.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,19 @@ declare module 'vscode' {
526526
export namespace notebook {
527527
export function registerNotebookContentProvider(
528528
notebookType: string,
529-
provider: NotebookContentProvider
529+
provider: NotebookContentProvider,
530+
options?: {
531+
/**
532+
* Controls if outputs change will trigger notebook document content change and if it will be used in the diff editor
533+
* Default to false. If the content provider doesn't persisit the outputs in the file document, this should be set to true.
534+
*/
535+
transientOutputs: boolean;
536+
/**
537+
* Controls if a meetadata property change will trigger notebook document content change and if it will be used in the diff editor
538+
* Default to false. If the content provider doesn't persisit a metadata property in the file document, it should be set to true.
539+
*/
540+
transientMetadata: { [K in keyof NotebookCellMetadata]?: boolean }
541+
}
530542
): Disposable;
531543

532544
export function registerNotebookKernelProvider(

0 commit comments

Comments
 (0)