diff --git a/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.ts b/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.ts index f67734cd02e..951fbe0e2e2 100644 --- a/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.ts +++ b/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.ts @@ -929,7 +929,7 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD matches.forEach(match => { match.matches.forEach((singleMatch, index) => { - if ((singleMatch as OutputFindMatch).index !== undefined) { + if ((singleMatch as OutputFindMatch).index === undefined) { textEdits.push({ edit: { range: (singleMatch as FindMatch).range, text: texts[index] }, resource: match.cell.uri