diff --git a/src/sql/workbench/contrib/notebook/browser/notebookEditor.ts b/src/sql/workbench/contrib/notebook/browser/notebookEditor.ts index 6b8c791bb1..d24db9e808 100644 --- a/src/sql/workbench/contrib/notebook/browser/notebookEditor.ts +++ b/src/sql/workbench/contrib/notebook/browser/notebookEditor.ts @@ -346,7 +346,7 @@ export class NotebookEditor extends BaseEditor implements IFindNotebookControlle this._findDecorations.getCount(), this._currentMatch ); - if (this._finder.getDomNode().style.visibility === 'visible') { + if (this._finder.getDomNode().style.visibility === 'visible' && this._previousMatch !== this._currentMatch) { this._setCurrentFindMatch(this._currentMatch); } }