diff options
author | Johannes Rieken <johannes.rieken@gmail.com> | 2022-07-06 19:33:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-06 19:33:04 +0300 |
commit | f413297170178f16ab218202153b629d59a98be1 (patch) | |
tree | 3e370156bfe976d1e7526f07957403eec8d6f086 /src/vs/workbench/contrib/notebook/common | |
parent | 0df86c37b602d08bab3e8def45dd445d36f55fc2 (diff) |
joh/plastic fowl (#154275)
* * derive workspace dto with util
* be strict when defining reference version ids (must be set to a value or undefined)
* relax `ResourceNotebookCellEdit`
Diffstat (limited to 'src/vs/workbench/contrib/notebook/common')
-rw-r--r-- | src/vs/workbench/contrib/notebook/common/notebookCommon.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/vs/workbench/contrib/notebook/common/notebookCommon.ts b/src/vs/workbench/contrib/notebook/common/notebookCommon.ts index d0ccff06ccd..a95ecc6fb84 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; |