Bladeren bron

Renames `showRemoteNamesOnRefs` for future usages

main
Eric Amodio 2 jaren geleden
bovenliggende
commit
cc0f423504
4 gewijzigde bestanden met toevoegingen van 7 en 7 verwijderingen
  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 Bestand weergeven

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

+ 1
- 1
src/config.ts Bestand weergeven

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

+ 2
- 2
src/plus/webviews/graph/graphWebview.ts Bestand weergeven

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

+ 3
- 3
src/webviews/apps/settings/partials/commit-graph.html Bestand weergeven

@ -116,12 +116,12 @@
<div class="setting">
<div class="setting__input">
<input
id="graph.showRemoteNamesOnRefs"
name="graph.showRemoteNamesOnRefs"
id="graph.showRemoteNames"
name="graph.showRemoteNames"
type="checkbox"
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>

Laden…
Annuleren
Opslaan