Browse Source

Adds historyExplorer.avatars setting

main
Eric Amodio 6 years ago
parent
commit
22a5722a25
4 changed files with 11 additions and 3 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +6
    -0
      package.json
  3. +1
    -0
      src/ui/config.ts
  4. +3
    -3
      src/ui/settings/index.html

+ 1
- 0
CHANGELOG.md View File

@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
## [Unreleased]
### Added
- Adds *Compare with Selected* and *Select for Compare* commands to file nodes in the *GitLens*, *GitLens File History*, and *GitLens Results* explorers — closes [#446](https://github.com/eamodio/vscode-gitlens/issues/446)
- Adds `gitlens.historyExplorer.avatars` setting to specify whether to show avatar images instead of status icons in the `GitLens File History` explorer — allows for an independent value from the other explorers
### Fixed
- Fixes [#444](https://github.com/eamodio/vscode-gitlens/issues/444) - GitLens custom viewlet icon slightly larger than standard

+ 6
- 0
package.json View File

@ -528,6 +528,12 @@
"description": "Specifies how the gutter heatmap annotations will be toggled\n `file` - toggle each file individually\n `window` - toggle the window, i.e. all files at once",
"scope": "window"
},
"gitlens.historyExplorer.avatars": {
"type": "boolean",
"default": true,
"description": "Specifies whether to show avatar images instead of status icons in the `GitLens File History` explorer",
"scope": "window"
},
"gitlens.historyExplorer.enabled": {
"type": "boolean",
"default": true,

+ 1
- 0
src/ui/config.ts View File

@ -196,6 +196,7 @@ export interface IGitExplorerConfig {
}
export interface IHistoryExplorerConfig {
avatars: boolean;
enabled: boolean;
location: 'explorer' | 'scm';
}

+ 3
- 3
src/ui/settings/index.html View File

@ -393,7 +393,7 @@
</div>
<div class="settings-group__setting nowrap ml-2 hidden" data-enablement="historyExplorer.enabled" data-visibility="settings.mode =advanced">
<input class="setting" id="historyExplorer.avatars" name="explorers.avatars" type="checkbox" disabled/>
<input class="setting" id="historyExplorer.avatars" name="historyExplorer.avatars" type="checkbox" disabled/>
<label for="historyExplorer.avatars">Use author avatars icons</label>
</div>
</div>
@ -402,12 +402,12 @@
/>
<img class="image__preview--overlay hidden" src="{{root}}/images/settings/gitlens-history-explorer-close.png" data-visibility="historyExplorer.enabled &amp; gitExplorer.enabled =false"
/>
<img class="image__preview--overlay hidden" src="{{root}}/images/settings/gitlens-explorer-history-avatars.png" data-visibility="historyExplorer.enabled &amp; explorers.avatars"
<img class="image__preview--overlay hidden" src="{{root}}/images/settings/gitlens-explorer-history-avatars.png" data-visibility="historyExplorer.enabled &amp; historyExplorer.avatars"
/>
<img class="image__preview hidden" src="{{root}}/images/settings/gitlens-explorer-history.png" data-visibility="gitExplorer.enabled &amp; historyExplorer.enabled =false"
/>
<img class="image__preview--overlay hidden" src="{{root}}/images/settings/gitlens-explorer-history-avatars.png" data-visibility="gitExplorer.enabled &amp; historyExplorer.enabled =false &amp; explorers.avatars"
<img class="image__preview--overlay hidden" src="{{root}}/images/settings/gitlens-explorer-history-avatars.png" data-visibility="gitExplorer.enabled &amp; historyExplorer.enabled =false &amp; historyExplorer.avatars"
/>
</div>
</div>

Loading…
Cancel
Save