Skip to content

Commit

Permalink
Marking a few types/objects readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Nov 9, 2021
1 parent 4b10eb1 commit a88cbb5
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/vs/workbench/contrib/notebook/common/notebookOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,43 +64,43 @@ export interface NotebookLayoutConfiguration {
}

export interface NotebookOptionsChangeEvent {
cellStatusBarVisibility?: boolean;
cellToolbarLocation?: boolean;
cellToolbarInteraction?: boolean;
editorTopPadding?: boolean;
compactView?: boolean;
focusIndicator?: boolean;
insertToolbarPosition?: boolean;
insertToolbarAlignment?: boolean;
globalToolbar?: boolean;
showFoldingControls?: boolean;
consolidatedOutputButton?: boolean;
consolidatedRunButton?: boolean;
dragAndDropEnabled?: boolean;
fontSize?: boolean;
editorOptionsCustomizations?: boolean;
cellBreakpointMargin?: boolean;
readonly cellStatusBarVisibility?: boolean;
readonly cellToolbarLocation?: boolean;
readonly cellToolbarInteraction?: boolean;
readonly editorTopPadding?: boolean;
readonly compactView?: boolean;
readonly focusIndicator?: boolean;
readonly insertToolbarPosition?: boolean;
readonly insertToolbarAlignment?: boolean;
readonly globalToolbar?: boolean;
readonly showFoldingControls?: boolean;
readonly consolidatedOutputButton?: boolean;
readonly consolidatedRunButton?: boolean;
readonly dragAndDropEnabled?: boolean;
readonly fontSize?: boolean;
readonly editorOptionsCustomizations?: boolean;
readonly cellBreakpointMargin?: boolean;
}

const defaultConfigConstants = {
const defaultConfigConstants = Object.freeze({
codeCellLeftMargin: 28,
cellRunGutter: 32,
markdownCellTopMargin: 8,
markdownCellBottomMargin: 8,
markdownCellLeftMargin: 0,
markdownCellGutter: 32,
focusIndicatorLeftMargin: 4
};
});

const compactConfigConstants = {
const compactConfigConstants = Object.freeze({
codeCellLeftMargin: 8,
cellRunGutter: 36,
markdownCellTopMargin: 6,
markdownCellBottomMargin: 6,
markdownCellLeftMargin: 8,
markdownCellGutter: 36,
focusIndicatorLeftMargin: 4
};
});

export class NotebookOptions extends Disposable {
private _layoutConfiguration: NotebookLayoutConfiguration;
Expand Down

0 comments on commit a88cbb5

Please sign in to comment.