From ac78822d90358059b5a781a0abffb111e6637a67 Mon Sep 17 00:00:00 2001 From: Maddy <12754347+MaddyDev@users.noreply.github.com> Date: Mon, 6 Jul 2020 17:33:22 -0700 Subject: [PATCH] set currentMatch on find changes only (#11215) --- src/sql/workbench/contrib/notebook/browser/notebookEditor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }