diff options
author | Johannes <johannes.rieken@gmail.com> | 2022-07-13 13:01:36 +0300 |
---|---|---|
committer | Johannes <johannes.rieken@gmail.com> | 2022-07-13 13:01:36 +0300 |
commit | 78693265be2fa394330df097c3fd99925dff21d4 (patch) | |
tree | ebbed0a9f40c67fbfb152a7730c9e61774616f01 /src/vs/workbench/contrib/notebook/common/notebookCommon.ts | |
parent | 268c941bf0fd8255d4dd7c106c22e9b911772916 (diff) | |
parent | 4404dc63561a286e13f9ba5a669e5403a367425a (diff) |
Merge branch 'main' into joh/cellUrijoh/cellUri
Diffstat (limited to 'src/vs/workbench/contrib/notebook/common/notebookCommon.ts')
-rw-r--r-- | src/vs/workbench/contrib/notebook/common/notebookCommon.ts | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/vs/workbench/contrib/notebook/common/notebookCommon.ts b/src/vs/workbench/contrib/notebook/common/notebookCommon.ts index e590c5cddb9..7eca3e5a6cf 100644 --- a/src/vs/workbench/contrib/notebook/common/notebookCommon.ts +++ b/src/vs/workbench/contrib/notebook/common/notebookCommon.ts @@ -17,7 +17,7 @@ import { ISplice } from 'vs/base/common/sequence'; import { URI, UriComponents } from 'vs/base/common/uri'; import { ILineChange } from 'vs/editor/common/diff/diffComputer'; import * as editorCommon from 'vs/editor/common/editorCommon'; -import { Command } from 'vs/editor/common/languages'; +import { Command, WorkspaceEditMetadata } from 'vs/editor/common/languages'; import { IReadonlyTextBuffer } from 'vs/editor/common/model'; import { IAccessibilityInformation } from 'vs/platform/accessibility/common/accessibility'; import { RawContextKey } from 'vs/platform/contextkey/common/contextkey'; @@ -497,6 +497,14 @@ export interface ICellMoveEdit { export type IImmediateCellEditOperation = ICellOutputEditByHandle | ICellPartialMetadataEditByHandle | ICellOutputItemEdit | ICellPartialInternalMetadataEdit | ICellPartialInternalMetadataEditByHandle | ICellPartialMetadataEdit; export type ICellEditOperation = IImmediateCellEditOperation | ICellReplaceEdit | ICellOutputEdit | ICellMetadataEdit | ICellPartialMetadataEdit | ICellPartialInternalMetadataEdit | IDocumentMetadataEdit | ICellMoveEdit | ICellOutputItemEdit | ICellLanguageEdit; + +export interface IWorkspaceNotebookCellEdit { + metadata?: WorkspaceEditMetadata; + resource: URI; + notebookVersionId: number | undefined; + cellEdit: ICellPartialMetadataEdit | IDocumentMetadataEdit | ICellReplaceEdit; +} + export interface NotebookData { readonly cells: ICellDto2[]; readonly metadata: NotebookDocumentMetadata; @@ -927,8 +935,7 @@ export const NotebookSetting = { interactiveWindowCollapseCodeCells: 'interactiveWindow.collapseCellInputCode', outputLineHeight: 'notebook.outputLineHeight', outputFontSize: 'notebook.outputFontSize', - outputFontFamily: 'notebook.outputFontFamily', - interactiveWindowAlwaysScrollOnNewCell: 'interactiveWindow.alwaysScrollOnNewCell' + outputFontFamily: 'notebook.outputFontFamily' } as const; export const enum CellStatusbarAlignment { |