Adds setting to control blame annotation highlight

Fixes #24
This commit is contained in:
Eric Amodio
2017-02-13 01:44:54 -05:00
parent 6641233284
commit 310a547581
7 changed files with 103 additions and 42 deletions

View File

@@ -70,11 +70,11 @@ export default class GitProvider extends Disposable {
this._repoPath = context.workspaceState.get(WorkspaceState.RepoPath) as string;
this._onConfigure();
this._onConfigurationChanged();
const subscriptions: Disposable[] = [];
subscriptions.push(workspace.onDidChangeConfiguration(this._onConfigure, this));
subscriptions.push(workspace.onDidChangeConfiguration(this._onConfigurationChanged, this));
this._disposable = Disposable.from(...subscriptions);
}
@@ -99,7 +99,7 @@ export default class GitProvider extends Disposable {
return !!this._gitCache;
}
private _onConfigure() {
private _onConfigurationChanged() {
const config = workspace.getConfiguration().get<IConfig>('gitlens');
const codeLensChanged = !Objects.areEquivalent(config.codeLens, this.config && this.config.codeLens);