From 2b71d110407705edaf3bf8a2db9b02291189ed78 Mon Sep 17 00:00:00 2001 From: Rich Chiodo Date: Mon, 6 Jun 2022 16:06:21 -0700 Subject: [PATCH] Fix for 151376 --- src/vs/workbench/api/common/extHostTypes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vs/workbench/api/common/extHostTypes.ts b/src/vs/workbench/api/common/extHostTypes.ts index a1c2a3ea107..b5e2cd04ef9 100644 --- a/src/vs/workbench/api/common/extHostTypes.ts +++ b/src/vs/workbench/api/common/extHostTypes.ts @@ -807,6 +807,8 @@ export class WorkspaceEdit implements vscode.WorkspaceEdit { if (NotebookEdit.isNotebookCellEdit(edit)) { if (edit.newCellMetadata) { this.replaceNotebookCellMetadata(uri, edit.range.start, edit.newCellMetadata); + } else if (edit.newNotebookMetadata) { + this.replaceNotebookMetadata(uri, edit.newNotebookMetadata); } else { this.replaceNotebookCells(uri, edit.range, edit.newCells); }