瀏覽代碼

Renames `showRemoteNamesOnRefs` for future usages

main
Eric Amodio 2 年之前
父節點
當前提交
cc0f423504
共有 4 個檔案被更改,包括 7 行新增7 行删除
  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 查看文件

@ -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 查看文件

@ -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 查看文件

@ -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 查看文件

@ -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>

Loading…
取消
儲存