Only reset code lens if its config changes

This commit is contained in:
Eric Amodio
2017-04-13 14:40:02 -04:00
parent d3800a1ae8
commit b58c48841f

View File

@@ -127,7 +127,7 @@ export class GitService extends Disposable {
const codeLensChanged = !Objects.areEquivalent(config.codeLens, this.config && this.config.codeLens);
const advancedChanged = !Objects.areEquivalent(config.advanced, this.config && this.config.advanced);
if (codeLensChanged || advancedChanged) {
if (codeLensChanged) {
Logger.log('CodeLens config changed; resetting CodeLens provider');
if (config.codeLens.visibility === CodeLensVisibility.Auto && (config.codeLens.recentChange.enabled || config.codeLens.authors.enabled)) {
if (this._codeLensProvider) {