Attempts to fix #99

undo/redo spawns too many git processes
This commit is contained in:
Eric Amodio
2017-06-25 12:41:20 -04:00
parent a306ba2b98
commit f553980146
2 changed files with 17 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ import { TextEditorComparer } from './comparers';
import { IConfig, StatusBarCommand } from './configuration';
import { DocumentSchemes, ExtensionKey } from './constants';
import { BlameabilityChangeEvent, CommitFormatter, GitCommit, GitCommitLine, GitContextTracker, GitService, GitUri } from './gitService';
import { Logger } from './logger';
const annotationDecoration: TextEditorDecorationType = window.createTextEditorDecorationType({
after: {
@@ -163,6 +164,7 @@ export class CurrentLineController extends Disposable {
}
private _onGitCacheChanged() {
Logger.log('Git cache changed; resetting current line annotations');
this._onActiveTextEditorChanged(window.activeTextEditor);
}