Browse Source

Renames `showRemoteNamesOnRefs` for future usages

main
Eric Amodio 2 years ago
parent
commit
cc0f423504
4 changed files with 7 additions and 7 deletions
  1. +1
    -1
      package.json
  2. +1
    -1
      src/config.ts
  3. +2
    -2
      src/plus/webviews/graph/graphWebview.ts
  4. +3
    -3
      src/webviews/apps/settings/partials/commit-graph.html

+ 1
- 1
package.json View File

@ -2135,7 +2135,7 @@
"scope": "window", "scope": "window",
"order": 13 "order": 13
}, },
"gitlens.graph.showRemoteNamesOnRefs": {
"gitlens.graph.showRemoteNames": {
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"markdownDescription": "Specifies whether to show remote names on remote branches in the _Commit Graph_", "markdownDescription": "Specifies whether to show remote names on remote branches in the _Commit Graph_",

+ 1
- 1
src/config.ts View File

@ -382,7 +382,7 @@ export interface GraphConfig {
highlightRowsOnRefHover: boolean; highlightRowsOnRefHover: boolean;
showDetailsView: 'open' | 'selection' | false; showDetailsView: 'open' | 'selection' | false;
showGhostRefsOnRowHover: boolean; showGhostRefsOnRowHover: boolean;
showRemoteNamesOnRefs: boolean;
showRemoteNames: boolean;
pageItemLimit: number; pageItemLimit: number;
searchItemLimit: number; searchItemLimit: number;
statusBar: { statusBar: {

+ 2
- 2
src/plus/webviews/graph/graphWebview.ts View File

@ -483,7 +483,7 @@ export class GraphWebview extends WebviewBase {
configuration.changed(e, 'graph.dateStyle') || configuration.changed(e, 'graph.dateStyle') ||
configuration.changed(e, 'graph.highlightRowsOnRefHover') || configuration.changed(e, 'graph.highlightRowsOnRefHover') ||
configuration.changed(e, 'graph.showGhostRefsOnRowHover') || configuration.changed(e, 'graph.showGhostRefsOnRowHover') ||
configuration.changed(e, 'graph.showRemoteNamesOnRefs')
configuration.changed(e, 'graph.showRemoteNames')
) { ) {
void this.notifyDidChangeConfiguration(); void this.notifyDidChangeConfiguration();
} }
@ -1201,7 +1201,7 @@ export class GraphWebview extends WebviewBase {
enableMultiSelection: false, enableMultiSelection: false,
highlightRowsOnRefHover: configuration.get('graph.highlightRowsOnRefHover'), highlightRowsOnRefHover: configuration.get('graph.highlightRowsOnRefHover'),
showGhostRefsOnRowHover: configuration.get('graph.showGhostRefsOnRowHover'), showGhostRefsOnRowHover: configuration.get('graph.showGhostRefsOnRowHover'),
showRemoteNamesOnRefs: configuration.get('graph.showRemoteNamesOnRefs'),
showRemoteNamesOnRefs: configuration.get('graph.showRemoteNames'),
idLength: configuration.get('advanced.abbreviatedShaLength'), idLength: configuration.get('advanced.abbreviatedShaLength'),
}; };
return config; return config;

+ 3
- 3
src/webviews/apps/settings/partials/commit-graph.html View File

@ -116,12 +116,12 @@
<div class="setting"> <div class="setting">
<div class="setting__input"> <div class="setting__input">
<input <input
id="graph.showRemoteNamesOnRefs"
name="graph.showRemoteNamesOnRefs"
id="graph.showRemoteNames"
name="graph.showRemoteNames"
type="checkbox" type="checkbox"
data-setting data-setting
/> />
<label for="graph.showRemoteNamesOnRefs">Show remote names on remote branches</label>
<label for="graph.showRemoteNames">Show remote names on remote branches</label>
</div> </div>
</div> </div>

Loading…
Cancel
Save