Skip to content

Commit 044e607

Browse files
committed
Adds settings to the settings editor
Adds the status bar reduce flashing setting Adds the current line scrollable setting
1 parent c285c82 commit 044e607

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ See also [Explorer Settings](#explorer-settings "Jump to the Explorer settings")
646646
|`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
647647
|`gitlens.statusBar.enabled`|Specifies whether to provide blame information on the status bar
648648
|`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
649-
|`gitlens.statusBar.reduceFlicker`|Specifies whether to reduce the status bar "flickering" when changing lines by not first clearing the previous blame information
649+
|`gitlens.statusBar.reduceFlicker`|Specifies whether to avoid clearing the previous blame information when changing lines to reduce status bar "flashing"
650650

651651
### Advanced Settings
652652

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@
776776
"gitlens.statusBar.reduceFlicker": {
777777
"type": "boolean",
778778
"default": false,
779-
"description": "Specifies whether to reduce the status bar \"flickering\" when changing lines by not first clearing the previous blame information",
779+
"description": "Specifies whether to avoid clearing the previous blame information when changing lines to reduce status bar \"flashing\"",
780780
"scope": "window"
781781
},
782782
"gitlens.strings.codeLens.unsavedChanges.recentChangeAndAuthors": {
1.69 KB
Loading

src/ui/settings/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,16 @@ <h2 class="section__title">Current Line Blame
269269
<input class="setting" id="currentLine.enabled" name="currentLine.enabled" type="checkbox" data-add-settings-off="hovers.currentLine.over=line"/>
270270
<label for="currentLine.enabled">Show a blame annotation at the end of the current line</label>
271271
</div>
272+
<div class="settings-group__setting nowrap ml-2" data-enablement="currentLine.enabled" disabled>
273+
<input class="setting" id="currentLine.scrollable" name="currentLine.scrollable" type="checkbox" disabled/>
274+
<label for="currentLine.scrollable">Include the annotation when scrolling the editor horizontally</label>
275+
</div>
276+
<p class="setting__hint">When enabled the annotation can be scrolled into view when it is outside the viewport</p>
272277
</div>
273278
<div class="section__preview">
274279
<img class="image__preview" src="{{root}}/images/settings/current-line-blame.png"/>
275280
<img class="image__preview--overlay hidden" src="{{root}}/images/settings/current-line-blame-on.png" data-visibility="currentLine.enabled"/>
281+
<img class="image__preview--overlay hidden" src="{{root}}/images/settings/current-line-blame-on-scrollable.png" data-visibility="currentLine.enabled &amp; currentLine.scrollable"/>
276282
</div>
277283
<p class="settings-group__hint">
278284
<i class="icon icon--lg icon__info"></i>
@@ -601,6 +607,11 @@ <h2 class="section__title">Status Bar Blame
601607
<option value="gitlens.showQuickRepoHistory">shows the current branch history</option>
602608
</select>
603609
</div>
610+
<div class="settings-group__setting nowrap ml-2" data-enablement="statusBar.enabled" disabled>
611+
<input class="setting" id="statusBar.reduceFlicker" name="statusBar.reduceFlicker" type="checkbox" disabled/>
612+
<label for="statusBar.reduceFlicker">Reduce flashing when updating the annotation</label>
613+
</div>
614+
<p class="setting__hint">Avoids clearing the previous blame information when changing lines to reduce status bar "flashing"</p>
604615
</div>
605616
<div class="section__preview">
606617
<img class="image__preview" src="{{root}}/images/settings/status-bar.png"/>

0 commit comments

Comments
 (0)