Преглед на файлове

Adds settings to the settings editor

Adds the status bar reduce flashing setting
Adds the current line scrollable setting
main
Eric Amodio преди 6 години
родител
ревизия
044e607b94
променени са 4 файла, в които са добавени 13 реда и са изтрити 2 реда
  1. +1
    -1
      README.md
  2. +1
    -1
      package.json
  3. Двоични данни
      src/ui/images/settings/current-line-blame-on-scrollable.png
  4. +11
    -0
      src/ui/settings/index.html

+ 1
- 1
README.md Целия файл

@ -646,7 +646,7 @@ See also [Explorer Settings](#explorer-settings "Jump to the Explorer settings")
|`gitlens.statusBar.dateFormat`|Specifies the date format of absolute dates shown in the blame information on the status bar<br />See https://momentjs.com/docs/#/displaying/format/ for valid formats
|`gitlens.statusBar.enabled`|Specifies whether to provide blame information on the status bar
|`gitlens.statusBar.format`|Specifies the format of the blame information on the status bar<br />Available tokens<br />`${id}` - commit id<br />`${author}` - commit author<br />`${message}` - commit message<br />`${ago}` - relative commit date (e.g. 1 day ago)<br />`${date}` - formatted commit date (format specified by `gitlens.statusBar.dateFormat`)<br />`${agoOrDate}` - commit date specified by `gitlens.defaultDateStyle`<br />`${authorAgo}` - commit author, relative commit date<br />`${authorAgoOrDate}` - commit author, commit date specified by `gitlens.defaultDateStyle`<br />See https://github.com/eamodio/vscode-gitlens/wiki/Advanced-Formatting for advanced formatting
|`gitlens.statusBar.reduceFlicker`|Specifies whether to reduce the status bar "flickering" when changing lines by not first clearing the previous blame information
|`gitlens.statusBar.reduceFlicker`|Specifies whether to avoid clearing the previous blame information when changing lines to reduce status bar "flashing"
### Advanced Settings

+ 1
- 1
package.json Целия файл

@ -776,7 +776,7 @@
"gitlens.statusBar.reduceFlicker": {
"type": "boolean",
"default": false,
"description": "Specifies whether to reduce the status bar \"flickering\" when changing lines by not first clearing the previous blame information",
"description": "Specifies whether to avoid clearing the previous blame information when changing lines to reduce status bar \"flashing\"",
"scope": "window"
},
"gitlens.strings.codeLens.unsavedChanges.recentChangeAndAuthors": {

Двоични данни
src/ui/images/settings/current-line-blame-on-scrollable.png Целия файл

Преди След
Ширина: 600  |  Височина: 206  |  Големина: 1.7 KiB

+ 11
- 0
src/ui/settings/index.html Целия файл

@ -269,10 +269,16 @@
<input class="setting" id="currentLine.enabled" name="currentLine.enabled" type="checkbox" data-add-settings-off="hovers.currentLine.over=line"/>
<label for="currentLine.enabled">Show a blame annotation at the end of the current line</label>
</div>
<div class="settings-group__setting nowrap ml-2" data-enablement="currentLine.enabled" disabled>
<input class="setting" id="currentLine.scrollable" name="currentLine.scrollable" type="checkbox" disabled/>
<label for="currentLine.scrollable">Include the annotation when scrolling the editor horizontally</label>
</div>
<p class="setting__hint">When enabled the annotation can be scrolled into view when it is outside the viewport</p>
</div>
<div class="section__preview">
<img class="image__preview" src="{{root}}/images/settings/current-line-blame.png"/>
<img class="image__preview--overlay hidden" src="{{root}}/images/settings/current-line-blame-on.png" data-visibility="currentLine.enabled"/>
<img class="image__preview--overlay hidden" src="{{root}}/images/settings/current-line-blame-on-scrollable.png" data-visibility="currentLine.enabled &amp; currentLine.scrollable"/>
</div>
<p class="settings-group__hint">
<i class="icon icon--lg icon__info"></i>
@ -601,6 +607,11 @@
<option value="gitlens.showQuickRepoHistory">shows the current branch history</option>
</select>
</div>
<div class="settings-group__setting nowrap ml-2" data-enablement="statusBar.enabled" disabled>
<input class="setting" id="statusBar.reduceFlicker" name="statusBar.reduceFlicker" type="checkbox" disabled/>
<label for="statusBar.reduceFlicker">Reduce flashing when updating the annotation</label>
</div>
<p class="setting__hint">Avoids clearing the previous blame information when changing lines to reduce status bar "flashing"</p>
</div>
<div class="section__preview">
<img class="image__preview" src="{{root}}/images/settings/status-bar.png"/>

Зареждане…
Отказ
Запис