Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ export class NotebookCellTextModel extends Disposable implements ICell {
this._outputs = outputs.map(op => new NotebookCellOutputTextModel(op));
this._metadata = metadata ?? {};
this._internalMetadata = internalMetadata ?? {};
this._internalMetadata.cellId = this._internalMetadata.cellId ??
this._metadata.id as string ??
uri.fragment;
}

enableAutoLanguageDetection() {
Expand Down
1 change: 1 addition & 0 deletions src/vs/workbench/contrib/notebook/common/notebookCommon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export interface NotebookCellMetadata {
}

export interface NotebookCellInternalMetadata {
cellId?: string;
executionId?: string;
executionOrder?: number;
lastRunSuccess?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ export class NotebookEditorSimpleWorker implements IRequestHandler, IDisposable
dto.language,
dto.cellKind,
dto.outputs,
dto.metadata
dto.metadata,
dto.internalMetadata
)), metadata, transientDocumentMetadata);
}

Expand Down
Loading