mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-18 17:39:47 +01:00
@@ -1385,7 +1385,8 @@ abstract class ChangeNotebookCellMetadataAction extends NotebookCellAction {
|
||||
|
||||
const metadataDelta = this.getMetadataDelta();
|
||||
const edits: ICellEditOperation[] = [];
|
||||
for (const cell of context.selectedCells || []) {
|
||||
const targetCells = (context.cell ? [context.cell] : context.selectedCells) ?? [];
|
||||
for (const cell of targetCells) {
|
||||
const index = textModel.cells.indexOf(cell.model);
|
||||
if (index >= 0) {
|
||||
edits.push({ editType: CellEditType.Metadata, index, metadata: { ...context.cell.metadata, ...metadataDelta } });
|
||||
|
||||
Reference in New Issue
Block a user