|
2 | 2 | "name": "githubinator", |
3 | 3 | "displayName": "Githubinator", |
4 | 4 | "description": "Quickly open files on Github and other providers. View blame information, copy permalinks and more. See the \"commands\" section of the README for more details.", |
5 | | - "version": "2.0.1", |
| 5 | + "version": "2.1.0", |
6 | 6 | "publisher": "chdsbd", |
7 | 7 | "license": "SEE LICENSE IN LICENSE", |
8 | 8 | "icon": "images/logo256.png", |
|
124 | 124 | { |
125 | 125 | "command": "extension.githubinator", |
126 | 126 | "group": "githubinator@1", |
127 | | - "when": "config.githubinator.enable_context_menu" |
| 127 | + "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuGithubinator" |
128 | 128 | }, |
129 | 129 | { |
130 | 130 | "command": "extension.githubinatorCopy", |
131 | 131 | "group": "githubinator@2", |
132 | | - "when": "config.githubinator.enable_context_menu" |
| 132 | + "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuCopy" |
133 | 133 | }, |
134 | 134 | { |
135 | 135 | "command": "extension.githubinatorCopyMaster", |
136 | 136 | "group": "githubinator@3", |
137 | | - "when": "config.githubinator.enable_context_menu" |
| 137 | + "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuCopyMaster" |
138 | 138 | }, |
139 | 139 | { |
140 | 140 | "command": "extension.githubinatorCopyPermalink", |
141 | 141 | "group": "githubinator@4", |
142 | | - "when": "config.githubinator.enable_context_menu" |
| 142 | + "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuCopyPermalink" |
143 | 143 | }, |
144 | 144 | { |
145 | 145 | "command": "extension.githubinatorCopyMasterPermalink", |
146 | 146 | "group": "githubinator@5", |
147 | | - "when": "config.githubinator.enable_context_menu" |
| 147 | + "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuCopyMasterPermalink" |
148 | 148 | }, |
149 | 149 | { |
150 | 150 | "command": "extension.githubinatorOnMaster", |
151 | 151 | "group": "githubinator@6", |
152 | | - "when": "config.githubinator.enable_context_menu" |
| 152 | + "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuOnMaster" |
153 | 153 | }, |
154 | 154 | { |
155 | 155 | "command": "extension.githubinatorPermalink", |
156 | 156 | "group": "githubinator@7", |
157 | | - "when": "config.githubinator.enable_context_menu" |
| 157 | + "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuPermalink" |
158 | 158 | }, |
159 | 159 | { |
160 | 160 | "command": "extension.githubinatorBlame", |
161 | 161 | "group": "githubinator@8", |
162 | | - "when": "config.githubinator.enable_context_menu" |
| 162 | + "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuBlame" |
163 | 163 | }, |
164 | 164 | { |
165 | 165 | "command": "extension.githubinatorBlameOnMaster", |
166 | 166 | "group": "githubinator@9", |
167 | | - "when": "config.githubinator.enable_context_menu" |
| 167 | + "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuBlameOnMaster" |
168 | 168 | }, |
169 | 169 | { |
170 | 170 | "command": "extension.githubinatorBlamePermalink", |
171 | 171 | "group": "githubinator@10", |
172 | | - "when": "config.githubinator.enable_context_menu" |
| 172 | + "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuBlamePermalink" |
173 | 173 | }, |
174 | 174 | { |
175 | 175 | "command": "extension.githubinatorRepository", |
176 | 176 | "group": "githubinator@11", |
177 | | - "when": "config.githubinator.enable_context_menu" |
| 177 | + "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuRepository" |
178 | 178 | }, |
179 | 179 | { |
180 | 180 | "command": "extension.githubinatorHistory", |
181 | 181 | "group": "githubinator@12", |
182 | | - "when": "config.githubinator.enable_context_menu" |
| 182 | + "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuHistory" |
183 | 183 | }, |
184 | 184 | { |
185 | 185 | "command": "extension.githubinatorOpenPR", |
186 | 186 | "group": "githubinator@13", |
187 | | - "when": "config.githubinator.enable_context_menu" |
| 187 | + "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuOpenPR" |
188 | 188 | }, |
189 | 189 | { |
190 | 190 | "command": "extension.githubinatorCompare", |
191 | 191 | "group": "githubinator@14", |
192 | | - "when": "config.githubinator.enable_context_menu" |
| 192 | + "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuCompare" |
| 193 | + }, |
| 194 | + { |
| 195 | + "submenu": "extension.githubinatorSubmenu", |
| 196 | + "group": "githubinator@15" |
| 197 | + } |
| 198 | + ], |
| 199 | + "extension.githubinatorSubmenu": [ |
| 200 | + { |
| 201 | + "command": "extension.githubinator", |
| 202 | + "group": "githubinator@1", |
| 203 | + "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuGithubinator" |
| 204 | + }, |
| 205 | + { |
| 206 | + "command": "extension.githubinatorCopy", |
| 207 | + "group": "githubinator@2", |
| 208 | + "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuCopy" |
| 209 | + }, |
| 210 | + { |
| 211 | + "command": "extension.githubinatorCopyMaster", |
| 212 | + "group": "githubinator@3", |
| 213 | + "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuCopyMaster" |
| 214 | + }, |
| 215 | + { |
| 216 | + "command": "extension.githubinatorCopyPermalink", |
| 217 | + "group": "githubinator@4", |
| 218 | + "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuCopyPermalink" |
| 219 | + }, |
| 220 | + { |
| 221 | + "command": "extension.githubinatorCopyMasterPermalink", |
| 222 | + "group": "githubinator@5", |
| 223 | + "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuCopyMasterPermalink" |
| 224 | + }, |
| 225 | + { |
| 226 | + "command": "extension.githubinatorOnMaster", |
| 227 | + "group": "githubinator@6", |
| 228 | + "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuOnMaster" |
| 229 | + }, |
| 230 | + { |
| 231 | + "command": "extension.githubinatorPermalink", |
| 232 | + "group": "githubinator@7", |
| 233 | + "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuPermalink" |
| 234 | + }, |
| 235 | + { |
| 236 | + "command": "extension.githubinatorBlame", |
| 237 | + "group": "githubinator@8", |
| 238 | + "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuBlame" |
| 239 | + }, |
| 240 | + { |
| 241 | + "command": "extension.githubinatorBlameOnMaster", |
| 242 | + "group": "githubinator@9", |
| 243 | + "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuBlameOnMaster" |
| 244 | + }, |
| 245 | + { |
| 246 | + "command": "extension.githubinatorBlamePermalink", |
| 247 | + "group": "githubinator@10", |
| 248 | + "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuBlamePermalink" |
| 249 | + }, |
| 250 | + { |
| 251 | + "command": "extension.githubinatorRepository", |
| 252 | + "group": "githubinator@11", |
| 253 | + "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuRepository" |
| 254 | + }, |
| 255 | + { |
| 256 | + "command": "extension.githubinatorHistory", |
| 257 | + "group": "githubinator@12", |
| 258 | + "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuHistory" |
| 259 | + }, |
| 260 | + { |
| 261 | + "command": "extension.githubinatorOpenPR", |
| 262 | + "group": "githubinator@13", |
| 263 | + "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuOpenPR" |
| 264 | + }, |
| 265 | + { |
| 266 | + "command": "extension.githubinatorCompare", |
| 267 | + "group": "githubinator@14", |
| 268 | + "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuCompare" |
193 | 269 | } |
194 | 270 | ] |
195 | 271 | }, |
| 272 | + "submenus": [ |
| 273 | + { |
| 274 | + "label": "Githubinator", |
| 275 | + "id": "extension.githubinatorSubmenu" |
| 276 | + } |
| 277 | + ], |
196 | 278 | "configuration": { |
197 | 279 | "type": "object", |
198 | 280 | "title": "Githubinator", |
199 | 281 | "properties": { |
200 | 282 | "githubinator.enable_context_menu": { |
201 | 283 | "type": "boolean", |
202 | | - "default": true, |
| 284 | + "default": false, |
| 285 | + "markdownDeprecationMessage": "**Deprecated**: Please use `#githubinator.contextMenu#` instead.", |
| 286 | + "deprecationMessage": "Deprecated: Please use githubinator.contextMenu instead.", |
| 287 | + "description": "Enable access to Githubinator commands from the context menu." |
| 288 | + }, |
| 289 | + "githubinator.contextMenu": { |
| 290 | + "type": "string", |
| 291 | + "enum": [ |
| 292 | + "enabled", |
| 293 | + "submenu", |
| 294 | + "disabled" |
| 295 | + ], |
| 296 | + "default": "enabled", |
| 297 | + "order": 0, |
203 | 298 | "description": "Enable access to Githubinator commands from the context menu." |
204 | 299 | }, |
| 300 | + "githubinator.contextMenuGithubinator": { |
| 301 | + "type": "boolean", |
| 302 | + "default": "true", |
| 303 | + "order": 1, |
| 304 | + "markdownDescription": "Access command **Githubinator** via context menu." |
| 305 | + }, |
| 306 | + "githubinator.contextMenuCopy": { |
| 307 | + "type": "boolean", |
| 308 | + "default": "true", |
| 309 | + "order": 2, |
| 310 | + "markdownDescription": "Access command **Copy** via context menu." |
| 311 | + }, |
| 312 | + "githubinator.contextMenuCopyMaster": { |
| 313 | + "type": "boolean", |
| 314 | + "default": "true", |
| 315 | + "order": 3, |
| 316 | + "markdownDescription": "Access command **Copy Main** via context menu." |
| 317 | + }, |
| 318 | + "githubinator.contextMenuCopyPermalink": { |
| 319 | + "type": "boolean", |
| 320 | + "default": "true", |
| 321 | + "order": 4, |
| 322 | + "markdownDescription": "Access command **Copy Permalink** via context menu." |
| 323 | + }, |
| 324 | + "githubinator.contextMenuCopyMasterPermalink": { |
| 325 | + "type": "boolean", |
| 326 | + "default": "true", |
| 327 | + "order": 5, |
| 328 | + "markdownDescription": "Access command **Copy Main Permalink** via context menu." |
| 329 | + }, |
| 330 | + "githubinator.contextMenuOnMaster": { |
| 331 | + "type": "boolean", |
| 332 | + "default": "true", |
| 333 | + "order": 6, |
| 334 | + "markdownDescription": "Access command **On Main** via context menu." |
| 335 | + }, |
| 336 | + "githubinator.contextMenuPermalink": { |
| 337 | + "type": "boolean", |
| 338 | + "default": "true", |
| 339 | + "order": 7, |
| 340 | + "markdownDescription": "Access command **Permalink** via context menu." |
| 341 | + }, |
| 342 | + "githubinator.contextMenuBlame": { |
| 343 | + "type": "boolean", |
| 344 | + "default": "true", |
| 345 | + "order": 8, |
| 346 | + "markdownDescription": "Access command **Blame** via context menu." |
| 347 | + }, |
| 348 | + "githubinator.contextMenuBlameOnMaster": { |
| 349 | + "type": "boolean", |
| 350 | + "default": "true", |
| 351 | + "order": 9, |
| 352 | + "markdownDescription": "Access command **Blame On Main** via context menu." |
| 353 | + }, |
| 354 | + "githubinator.contextMenuBlamePermalink": { |
| 355 | + "type": "boolean", |
| 356 | + "default": "true", |
| 357 | + "order": 10, |
| 358 | + "markdownDescription": "Access command **Blame Permalink** via context menu." |
| 359 | + }, |
| 360 | + "githubinator.contextMenuRepository": { |
| 361 | + "type": "boolean", |
| 362 | + "default": "true", |
| 363 | + "order": 11, |
| 364 | + "markdownDescription": "Access command **Repository** via context menu." |
| 365 | + }, |
| 366 | + "githubinator.contextMenuHistory": { |
| 367 | + "type": "boolean", |
| 368 | + "default": "true", |
| 369 | + "order": 12, |
| 370 | + "markdownDescription": "Access command **History** via context menu." |
| 371 | + }, |
| 372 | + "githubinator.contextMenuOpenPR": { |
| 373 | + "type": "boolean", |
| 374 | + "default": "true", |
| 375 | + "order": 13, |
| 376 | + "markdownDescription": "Access command **OpenPR** via context menu." |
| 377 | + }, |
| 378 | + "githubinator.contextMenuCompare": { |
| 379 | + "type": "boolean", |
| 380 | + "default": "true", |
| 381 | + "order": 14, |
| 382 | + "markdownDescription": "Access command **Compare** via context menu." |
| 383 | + }, |
205 | 384 | "githubinator.mainBranches": { |
206 | 385 | "type": "array", |
207 | 386 | "items": { |
|
0 commit comments