From 420bcbe901757fbe4e45c326329d597e41a5cccd Mon Sep 17 00:00:00 2001 From: Urange Date: Mon, 13 May 2019 14:48:53 -0500 Subject: [PATCH] function name change --- src/vs/editor/contrib/find/simpleFindWidget.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vs/editor/contrib/find/simpleFindWidget.ts b/src/vs/editor/contrib/find/simpleFindWidget.ts index f97cf3bdb13..dad7cc9b3e5 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); -- GitLab