diff --git a/src/vs/editor/contrib/find/simpleFindWidget.ts b/src/vs/editor/contrib/find/simpleFindWidget.ts index f97cf3bdb1399116fe16b46d17642ce9f9faa003..dad7cc9b3e50a3ecc8d8e05c04f876d51a2087ed 100644 --- a/src/vs/editor/contrib/find/simpleFindWidget.ts +++ b/src/vs/editor/contrib/find/simpleFindWidget.ts @@ -58,7 +58,7 @@ export abstract class SimpleFindWidget extends Widget { return null; } catch (e) { this.foundMatch = false; - this.updateBtns(); + this.updateButtons(); return { content: e.message }; } } @@ -69,7 +69,7 @@ export abstract class SimpleFindWidget extends Widget { this.oninput(this._findInput.domNode, (e) => { this.foundMatch = this.onInputChanged(); - this.updateBtns(); + this.updateButtons(); this._delayedUpdateHistory(); }); @@ -219,7 +219,7 @@ export abstract class SimpleFindWidget extends Widget { } this._isVisible = true; - this.updateBtns(); + this.updateButtons(); setTimeout(() => { dom.addClass(this._innerDomNode, 'visible'); @@ -250,7 +250,7 @@ export abstract class SimpleFindWidget extends Widget { // Need to delay toggling visibility until after Transition, then visibility hidden - removes from tabIndex list setTimeout(() => { this._isVisible = false; - this.updateBtns(); + this.updateButtons(); dom.removeClass(this._innerDomNode, 'visible'); }, 200); } @@ -276,7 +276,7 @@ export abstract class SimpleFindWidget extends Widget { return this._findInput.getCaseSensitive(); } - private updateBtns() { + private updateButtons() { let hasInput = this.inputValue.length > 0; this.prevBtn.setEnabled(this._isVisible && hasInput && this.foundMatch); this.nextBtn.setEnabled(this._isVisible && hasInput && this.foundMatch);