Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -448,18 +448,18 @@ export class NotebookMultiCursorController extends Disposable implements INotebo
code: 'multiCursorEdit',
confirmBeforeUndo: false,
undo: async () => {
newElementsMap.forEach(async value => {
value.reverse().forEach(async element => {
for (const value of newElementsMap.values()) {
for (const element of value.reverse()) {
await element.undo();
});
});
}
}
},
redo: async () => {
newElementsMap.forEach(async value => {
value.forEach(async element => {
for (const value of newElementsMap.values()) {
for (const element of value) {
await element.redo();
});
});
}
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ registerAction2(class CommentSelectedCellsAction extends NotebookMultiCellAction
async runWithContext(accessor: ServicesAccessor, context: INotebookCommandContext): Promise<void> {
const languageConfigurationService = accessor.get(ILanguageConfigurationService);

context.selectedCells.forEach(async cellViewModel => {
for (const cellViewModel of context.selectedCells) {
const textModel = await cellViewModel.resolveTextModel();

const commentsOptions = cellViewModel.commentOptions;
Expand Down Expand Up @@ -718,7 +718,7 @@ registerAction2(class CommentSelectedCellsAction extends NotebookMultiCellAction
return new Selection(range.startLineNumber, range.startColumn, range.endLineNumber, range.endColumn);
});
cellViewModel.setSelections(newTrackedSelections ?? []);
}); // end of cells forEach
}
}

});
Loading