From 6c1be5abea8e2f0fad0dd1a19ea3fd49651fbe68 Mon Sep 17 00:00:00 2001 From: rebornix Date: Wed, 26 Jan 2022 10:43:17 -0800 Subject: [PATCH] fix #141370. Update buttons on find match state change. --- .../notebook/browser/contrib/find/notebookFindReplaceWidget.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.ts b/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.ts index 57a23cecec31c..79bd86c4dae67 100644 --- a/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.ts +++ b/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.ts @@ -544,6 +544,8 @@ export abstract class SimpleFindReplaceWidget extends Widget { this._domNode.classList.toggle('replaceToggled', this._isReplaceVisible); this._toggleReplaceBtn.setExpanded(this._isReplaceVisible); + this.foundMatch = this._state.matchesCount > 0; + this.updateButtons(this.foundMatch); } protected _updateMatchesCount(): void {