mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
notebook: fix unused cell lookup and broken selection deduplication (#305105)
notebook: remove dead code, fix redundant output search, and fix broken selection dedup Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
This commit is contained in:
@@ -159,6 +159,7 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
|
||||
const handles: number[] = [];
|
||||
cellRangesToIndexes(this._selectionCollection.selections).map(index => index < this.length ? this.cellAt(index) : undefined).forEach(cell => {
|
||||
if (cell && !handlesSet.has(cell.handle)) {
|
||||
handlesSet.add(cell.handle);
|
||||
handles.push(cell.handle);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user