From 9da80c121b7016c3df473cf7973cb8971339c098 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 25 May 2017 00:35:12 -0400 Subject: [PATCH] Debounces other active line events --- src/blameActiveLineController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blameActiveLineController.ts b/src/blameActiveLineController.ts index 1e1eb59..e675b30 100644 --- a/src/blameActiveLineController.ts +++ b/src/blameActiveLineController.ts @@ -140,7 +140,7 @@ export class BlameActiveLineController extends Disposable { this.git.getBlameForFile(this._uri); } - this._updateBlame(editor.selection.active.line, editor); + this._updateBlameDebounced(editor.selection.active.line, editor); } private _onBlameabilityChanged(e: BlameabilityChangeEvent) { @@ -153,7 +153,7 @@ export class BlameActiveLineController extends Disposable { // Make sure this is for the editor we are tracking if (!TextEditorComparer.equals(this._editor, e.editor)) return; - this._updateBlame(this._editor.selection.active.line, this._editor); + this._updateBlameDebounced(this._editor.selection.active.line, this._editor); } private _onBlameAnnotationToggled() {