瀏覽代碼

Only reset code lens if its config changes

main
Eric Amodio 7 年之前
父節點
當前提交
b58c48841f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/gitService.ts

+ 1
- 1
src/gitService.ts 查看文件

@ -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) {

Loading…
取消
儲存