Skip to content
Open
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 @@ -273,6 +273,11 @@ export class FindModel extends Disposable {

private async revealCellRange(cellIndex: number, matchIndex: number, outputOffset: number | null) {
const findMatch = this._findMatches[cellIndex];
// _findMatches can be replaced between cellIndex computation and this
// async execution (e.g. via research() triggered by onDidChangeContent).
if (!findMatch) {
return;
}
Comment on lines 274 to +280
if (matchIndex >= findMatch.contentMatches.length) {
// reveal output range
this._notebookEditor.focusElement(findMatch.cell);
Expand Down