Skip to content

Commit

Permalink
Mark TransientOptions properties readonly (#166071)
Browse files Browse the repository at this point in the history
This type is passed to us and should not be modified
  • Loading branch information
mjbvz authored Nov 14, 2022
1 parent cb43019 commit 0537f30
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/vs/workbench/contrib/notebook/common/notebookCommon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ export interface NotebookCellDefaultCollapseConfig {

export type InteractiveWindowCollapseCodeCells = 'always' | 'never' | 'fromEditor';

export type TransientCellMetadata = { [K in keyof NotebookCellMetadata]?: boolean };
export type CellContentMetadata = { [K in keyof NotebookCellMetadata]?: boolean };
export type TransientDocumentMetadata = { [K in keyof NotebookDocumentMetadata]?: boolean };
export type TransientCellMetadata = { readonly [K in keyof NotebookCellMetadata]?: boolean };
export type CellContentMetadata = { readonly [K in keyof NotebookCellMetadata]?: boolean };
export type TransientDocumentMetadata = { readonly [K in keyof NotebookDocumentMetadata]?: boolean };

export interface TransientOptions {
transientOutputs: boolean;
transientCellMetadata: TransientCellMetadata;
transientDocumentMetadata: TransientDocumentMetadata;
cellContentMetadata: CellContentMetadata;
readonly transientOutputs: boolean;
readonly transientCellMetadata: TransientCellMetadata;
readonly transientDocumentMetadata: TransientDocumentMetadata;
readonly cellContentMetadata: CellContentMetadata;
}

/** Note: enum values are used for sorting */
Expand Down

0 comments on commit 0537f30

Please sign in to comment.