Skip to content

Commit a9e4fff

Browse files
committed
Closes #3953 improves date setting descriptions
1 parent 2cace3f commit a9e4fff

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1616
- Improves editor revision navigation ([#4200](https://github.com/gitkraken/vscode-gitlens/issues/4200))
1717
- Improves AI-related error messages ([#4227](https://github.com/gitkraken/vscode-gitlens/issues/4227))
1818
- Changes cherry-pick command no longer use/open a terminal ([#3531](https://github.com/gitkraken/vscode-gitlens/issues/3531))
19+
- Improves date setting descriptions ([#3953](https://github.com/gitkraken/vscode-gitlens/issues/3953))
1920

2021
### Fixed
2122

Diff for: package.json

+17-15
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
"null"
141141
],
142142
"default": null,
143-
"markdownDescription": "Specifies how to format absolute dates (e.g. using the `${date}` token) for the inline blame annotation. See the [Moment.js docs](https://momentjs.com/docs/#/displaying/format/) for supported formats",
143+
"markdownDescription": "Specifies how to format absolute dates (e.g. using the `${date}` token) for the inline blame annotation, when not specified `#gitlens.defaultDateFormat#` is used. Use `full`, `long`, `medium`, `short`, or a custom format, e.g. `MMMM Do, YYYY h:mma`, similar to [Moment.js formats](https://momentjs.com/docs/#/displaying/format/)",
144144
"scope": "window",
145145
"order": 50
146146
}
@@ -334,7 +334,7 @@
334334
"null"
335335
],
336336
"default": null,
337-
"markdownDescription": "Specifies how to format absolute dates in the Git CodeLens. See the [Moment.js docs](https://momentjs.com/docs/#/displaying/format/) for supported formats",
337+
"markdownDescription": "Specifies how to format absolute dates in the Git CodeLens, when not specified `#gitlens.defaultDateFormat#` is used. Use `full`, `long`, `medium`, `short`, or a custom format, e.g. `MMMM Do, YYYY h:mma`, similar to [Moment.js formats](https://momentjs.com/docs/#/displaying/format/)",
338338
"scope": "window",
339339
"order": 73
340340
},
@@ -451,7 +451,7 @@
451451
"null"
452452
],
453453
"default": null,
454-
"markdownDescription": "Specifies how to format absolute dates (e.g. using the `${date}` token) in the blame information in the status bar. See the [Moment.js docs](https://momentjs.com/docs/#/displaying/format/) for supported formats",
454+
"markdownDescription": "Specifies how to format absolute dates (e.g. using the `${date}` token) in the blame information in the status bar, when not specified `#gitlens.defaultDateFormat#` is used. Use `full`, `long`, `medium`, `short`, or a custom format, e.g. `MMMM Do, YYYY h:mma`, similar to [Moment.js formats](https://momentjs.com/docs/#/displaying/format/)",
455455
"scope": "window",
456456
"order": 80
457457
}
@@ -796,7 +796,7 @@
796796
"null"
797797
],
798798
"default": null,
799-
"markdownDescription": "Specifies how to format absolute dates (e.g. using the `${date}` token) in file blame annotations. See the [Moment.js docs](https://momentjs.com/docs/#/displaying/format/) for supported formats",
799+
"markdownDescription": "Specifies how to format absolute dates (e.g. using the `${date}` token) in file blame annotations, when not specified `#gitlens.defaultDateFormat#` is used. Use `full`, `long`, `medium`, `short`, or a custom format, e.g. `MMMM Do, YYYY h:mma`, similar to [Moment.js formats](https://momentjs.com/docs/#/displaying/format/)",
800800
"scope": "window",
801801
"order": 80
802802
}
@@ -1104,31 +1104,33 @@
11041104
"scope": "window",
11051105
"order": 500
11061106
},
1107-
"gitlens.graph.dateFormat": {
1108-
"type": [
1109-
"string",
1110-
"null"
1111-
],
1112-
"default": null,
1113-
"markdownDescription": "Specifies how absolute dates will be formatted in the _Commit Graph_. See the [Moment.js docs](https://momentjs.com/docs/#/displaying/format/) for supported formats",
1114-
"scope": "window",
1115-
"order": 600
1116-
},
11171107
"gitlens.graph.dateStyle": {
11181108
"type": [
11191109
"string",
11201110
"null"
11211111
],
11221112
"default": null,
11231113
"enum": [
1114+
null,
11241115
"relative",
11251116
"absolute"
11261117
],
11271118
"enumDescriptions": [
1119+
"defaults to `gitlens.defaultDateStyle`",
11281120
"e.g. 1 day ago",
11291121
"e.g. July 25th, 2018 7:18pm"
11301122
],
1131-
"markdownDescription": "Specifies how dates will be displayed in the _Commit Graph_",
1123+
"markdownDescription": "Specifies how dates will be displayed in the _Commit Graph_, when not specified `#gitlens.defaultDateStyle#` is used",
1124+
"scope": "window",
1125+
"order": 600
1126+
},
1127+
"gitlens.graph.dateFormat": {
1128+
"type": [
1129+
"string",
1130+
"null"
1131+
],
1132+
"default": null,
1133+
"markdownDescription": "Specifies how absolute dates will be formatted in the _Commit Graph_, when not specified `#gitlens.defaultDateFormat#` is used. Use `full`, `long`, `medium`, `short`, or a custom format, e.g. `MMMM Do, YYYY h:mma`, similar to [Moment.js formats](https://momentjs.com/docs/#/displaying/format/). Only applies when `#gitlens.graph.dateFormat#` is set to `absolute`",
11321134
"scope": "window",
11331135
"order": 601
11341136
},

0 commit comments

Comments
 (0)