Adds more linting rules

Fixes lint issues
This commit is contained in:
Eric Amodio
2017-05-23 17:18:44 -04:00
parent 23db83832c
commit 3502bdf6c7
32 changed files with 125 additions and 76 deletions

View File

@@ -72,8 +72,8 @@ export class GitContextTracker extends Disposable {
if (!TextDocumentComparer.equals(this._editor && this._editor.document, e && e.document)) return;
// Can't unsubscribe here because undo doesn't trigger any other event
//this._unsubscribeToDocumentChanges();
//this.updateBlameability(false);
// this._unsubscribeToDocumentChanges();
// this.updateBlameability(false);
// We have to defer because isDirty is not reliable inside this event
setTimeout(() => this._updateBlameability(!e.document.isDirty), 1);
@@ -83,7 +83,7 @@ export class GitContextTracker extends Disposable {
if (!TextDocumentComparer.equals(this._editor && this._editor.document, e)) return;
// Don't need to resubscribe as we aren't unsubscribing on document changes anymore
//this._subscribeToDocumentChanges();
// this._subscribeToDocumentChanges();
this._updateBlameability(!e.isDirty);
}