Skip to content

Commit 3a5a169

Browse files
authored
Merge pull request microsoft#146213 from microsoft/rebornix/update-replace-all-nb
fix microsoft#142756 update replace all button after input is updated
2 parents 660f140 + 3dc701c commit 3a5a169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/contrib/find/findController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class NotebookFindWidget extends SimpleFindReplaceWidget implements INote
8888
}
8989

9090
const matches = this._findModel.findMatches;
91-
this._replaceAllBtn.setEnabled(matches.find(match => match.modelMatchCount < match.matches.length) === null);
91+
this._replaceAllBtn.setEnabled(matches.length > 0 && matches.find(match => match.modelMatchCount < match.matches.length) === undefined);
9292

9393
if (e.filters) {
9494
this._findInput.updateFilterState((this._state.filters?.markupPreview ?? false) || (this._state.filters?.codeOutput ?? false));

0 commit comments

Comments
 (0)