You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3628 lines
160 KiB

6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
6 years ago
7 years ago
7 years ago
  1. {
  2. "name": "gitlens",
  3. "displayName": "GitLens — Git supercharged",
  4. "description": "Supercharge the Git capabilities built into Visual Studio Code — Visualize code authorship at a glance via Git blame annotations and code lens, seamlessly navigate and explore Git repositories, gain valuable insights via powerful comparison commands, and so much more",
  5. "version": "8.5.6",
  6. "author": {
  7. "name": "Eric Amodio",
  8. "email": "eamodio@gmail.com"
  9. },
  10. "publisher": "eamodio",
  11. "license": "SEE LICENSE IN LICENSE",
  12. "homepage": "https://github.com/eamodio/vscode-gitlens/blob/master/README.md",
  13. "bugs": {
  14. "url": "https://github.com/eamodio/vscode-gitlens/issues"
  15. },
  16. "repository": {
  17. "type": "git",
  18. "url": "https://github.com/eamodio/vscode-gitlens.git"
  19. },
  20. "engines": {
  21. "vscode": "^1.25.0"
  22. },
  23. "main": "./dist/extension",
  24. "icon": "images/gitlens-icon.png",
  25. "preview": false,
  26. "badges": [
  27. {
  28. "url": "https://img.shields.io/badge/vscode--dev--community-gitlens-blue.svg?logo=slack",
  29. "href": "https://join.slack.com/t/vscode-dev-community/shared_invite/enQtMjIxOTgxNDE3NzM0LWU5M2ZiZDU1YjBlMzdlZjA2YjBjYzRhYTM5NTgzMTAxMjdiNWU0ZmQzYWI3MWU5N2Q1YjBiYmQ4MzY0NDE1MzY",
  30. "description": "Join us in the #gitlens channel"
  31. }
  32. ],
  33. "categories": [
  34. "Other"
  35. ],
  36. "galleryBanner": {
  37. "color": "#8647ae",
  38. "theme": "dark"
  39. },
  40. "keywords": [
  41. "gitlens",
  42. "git",
  43. "blame",
  44. "log",
  45. "annotation",
  46. "multi-root ready"
  47. ],
  48. "activationEvents": [
  49. "*"
  50. ],
  51. "contributes": {
  52. "configuration": {
  53. "type": "object",
  54. "title": "GitLens",
  55. "properties": {
  56. "gitlens.blame.avatars": {
  57. "type": "boolean",
  58. "default": true,
  59. "description": "Specifies whether to show avatar images in the gutter blame annotations",
  60. "scope": "window"
  61. },
  62. "gitlens.blame.compact": {
  63. "type": "boolean",
  64. "default": true,
  65. "description": "Specifies whether to compact (deduplicate) matching adjacent gutter blame annotations",
  66. "scope": "window"
  67. },
  68. "gitlens.blame.dateFormat": {
  69. "type": "string",
  70. "default": null,
  71. "description": "Specifies how to format absolute dates (using the `${date}` token) in gutter blame annotations\nSee https://momentjs.com/docs/#/displaying/format/ for valid formats",
  72. "scope": "window"
  73. },
  74. "gitlens.blame.format": {
  75. "type": "string",
  76. "default": "${message|40?} ${agoOrDate|14-}",
  77. "description": "Specifies the format of the gutter blame annotations\nAvailable tokens\n ${id} - commit id\n ${author} - commit author\n ${message} - commit message\n ${ago} - relative commit date (e.g. 1 day ago)\n ${date} - formatted commit date (format specified by `gitlens.blame.dateFormat`)\n ${agoOrDate} - commit date specified by `gitlens.defaultDateStyle`\n ${authorAgo} - commit author, relative commit date\n ${authorAgoOrDate} - commit author, commit date specified by `gitlens.defaultDateStyle`\nSee https://github.com/eamodio/vscode-gitlens/wiki/Advanced-Formatting for advanced formatting",
  78. "scope": "window"
  79. },
  80. "gitlens.blame.heatmap.enabled": {
  81. "type": "boolean",
  82. "default": true,
  83. "description": "Specifies whether to provide a heatmap indicator in the gutter blame annotations",
  84. "scope": "window"
  85. },
  86. "gitlens.blame.heatmap.location": {
  87. "type": "string",
  88. "default": "right",
  89. "enum": [
  90. "left",
  91. "right"
  92. ],
  93. "enumDescriptions": [
  94. "Adds a heatmap indicator on the left edge of the gutter blame annotations",
  95. "Adds a heatmap indicator on the right edge of the gutter blame annotations"
  96. ],
  97. "description": "Specifies where the heatmap indicators will be shown in the gutter blame annotations",
  98. "scope": "window"
  99. },
  100. "gitlens.blame.highlight.enabled": {
  101. "type": "boolean",
  102. "default": true,
  103. "description": "Specifies whether to highlight lines associated with the current line",
  104. "scope": "window"
  105. },
  106. "gitlens.blame.highlight.locations": {
  107. "type": "array",
  108. "default": [
  109. "gutter",
  110. "line",
  111. "overview"
  112. ],
  113. "items": {
  114. "type": "string",
  115. "enum": [
  116. "gutter",
  117. "line",
  118. "overview"
  119. ],
  120. "enumDescriptions": [
  121. "Adds a gutter glyph",
  122. "Adds a full-line highlight background color",
  123. "Adds a decoration to the overview ruler (scroll bar)"
  124. ]
  125. },
  126. "minItems": 1,
  127. "maxItems": 3,
  128. "uniqueItems": true,
  129. "description": "Specifies where the associated line highlights will be shown",
  130. "scope": "window"
  131. },
  132. "gitlens.blame.ignoreWhitespace": {
  133. "type": "boolean",
  134. "default": false,
  135. "description": "Specifies whether to ignore whitespace when comparing revisions during blame operations",
  136. "scope": "resource"
  137. },
  138. "gitlens.blame.separateLines": {
  139. "type": "boolean",
  140. "default": true,
  141. "description": "Specifies whether gutter blame annotations will be separated by a small gap",
  142. "scope": "window"
  143. },
  144. "gitlens.blame.toggleMode": {
  145. "type": "string",
  146. "default": "file",
  147. "enum": [
  148. "file",
  149. "window"
  150. ],
  151. "enumDescriptions": [
  152. "Toggles each file individually",
  153. "Toggles the window, i.e. all files at once"
  154. ],
  155. "description": "Specifies how the gutter blame annotations will be toggled",
  156. "scope": "window"
  157. },
  158. "gitlens.codeLens.authors.command": {
  159. "type": "string",
  160. "default": "gitlens.toggleFileBlame",
  161. "enum": [
  162. "gitlens.toggleFileBlame",
  163. "gitlens.diffWithPrevious",
  164. "gitlens.showQuickCommitDetails",
  165. "gitlens.showQuickCommitFileDetails",
  166. "gitlens.showQuickFileHistory",
  167. "gitlens.showQuickRepoHistory"
  168. ],
  169. "enumDescriptions": [
  170. "Toggles file blame annotations",
  171. "Compares the current committed file with the previous commit",
  172. "Shows a commit details quick pick",
  173. "Shows a commit file details quick pick",
  174. "Shows a file history quick pick",
  175. "Shows a branch history quick pick"
  176. ],
  177. "description": "Specifies the command to be executed when the `authors` code lens is clicked",
  178. "scope": "window"
  179. },
  180. "gitlens.codeLens.authors.enabled": {
  181. "type": "boolean",
  182. "default": true,
  183. "description": "Specifies whether to show an `authors` code lens showing number of authors of the file or code block and the most prominent author (if there is more than one)",
  184. "scope": "window"
  185. },
  186. "gitlens.codeLens.enabled": {
  187. "type": "boolean",
  188. "default": true,
  189. "description": "Specifies whether to provide any Git code lens, by default\nUse the `Toggle Git Code Lens` command (`gitlens.toggleCodeLens`) to toggle the Git code lens on and off for the current window",
  190. "scope": "window"
  191. },
  192. "gitlens.codeLens.recentChange.command": {
  193. "type": "string",
  194. "default": "gitlens.showQuickCommitFileDetails",
  195. "enum": [
  196. "gitlens.toggleFileBlame",
  197. "gitlens.diffWithPrevious",
  198. "gitlens.showQuickCommitDetails",
  199. "gitlens.showQuickCommitFileDetails",
  200. "gitlens.showQuickFileHistory",
  201. "gitlens.showQuickRepoHistory"
  202. ],
  203. "enumDescriptions": [
  204. "Toggles file blame annotations",
  205. "Compares the current committed file with the previous commit",
  206. "Shows a commit details quick pick",
  207. "Shows a commit file details quick pick",
  208. "Shows a file history quick pick",
  209. "Shows a branch history quick pick"
  210. ],
  211. "description": "Specifies the command to be executed when the `recent change` code lens is clicked",
  212. "scope": "window"
  213. },
  214. "gitlens.codeLens.recentChange.enabled": {
  215. "type": "boolean",
  216. "default": true,
  217. "description": "Specifies whether to show a `recent change` code lens showing the author and date of the most recent commit for the file or code block",
  218. "scope": "window"
  219. },
  220. "gitlens.codeLens.scopes": {
  221. "type": "array",
  222. "default": [
  223. "document",
  224. "containers"
  225. ],
  226. "items": {
  227. "type": "string",
  228. "enum": [
  229. "document",
  230. "containers",
  231. "blocks"
  232. ],
  233. "enumDescriptions": [
  234. "Adds code lens at the top of the document",
  235. "Adds code lens at the start of container-like symbols (modules, classes, interfaces, etc)",
  236. "Adds code lens at the start of block-like symbols (functions, methods, etc) lines"
  237. ]
  238. },
  239. "minItems": 1,
  240. "maxItems": 4,
  241. "uniqueItems": true,
  242. "description": "Specifies where Git code lens will be shown in the document",
  243. "scope": "resource"
  244. },
  245. "gitlens.codeLens.scopesByLanguage": {
  246. "type": "array",
  247. "default": [
  248. {
  249. "language": "css",
  250. "scopes": [
  251. "document"
  252. ]
  253. },
  254. {
  255. "language": "html",
  256. "scopes": [
  257. "document"
  258. ]
  259. },
  260. {
  261. "language": "json",
  262. "scopes": [
  263. "document"
  264. ]
  265. },
  266. {
  267. "language": "jsonc",
  268. "scopes": [
  269. "document"
  270. ]
  271. },
  272. {
  273. "language": "less",
  274. "scopes": [
  275. "document"
  276. ]
  277. },
  278. {
  279. "language": "postcss",
  280. "scopes": [
  281. "document"
  282. ]
  283. },
  284. {
  285. "language": "python",
  286. "symbolScopes": [
  287. "!Module"
  288. ]
  289. },
  290. {
  291. "language": "scss",
  292. "scopes": [
  293. "document"
  294. ]
  295. },
  296. {
  297. "language": "stylus",
  298. "scopes": [
  299. "document"
  300. ]
  301. },
  302. {
  303. "language": "vue",
  304. "scopes": [
  305. "document"
  306. ]
  307. }
  308. ],
  309. "items": {
  310. "type": "object",
  311. "required": [
  312. "language"
  313. ],
  314. "properties": {
  315. "language": {
  316. "type": "string",
  317. "description": "Specifies the language to which this code lens override applies"
  318. },
  319. "scopes": {
  320. "type": "array",
  321. "default": [
  322. "document",
  323. "containers"
  324. ],
  325. "items": {
  326. "type": "string",
  327. "enum": [
  328. "document",
  329. "containers",
  330. "blocks",
  331. "custom"
  332. ],
  333. "enumDescriptions": [
  334. "Adds code lens at the top of the document",
  335. "Adds code lens at the start of container-like symbols (modules, classes, interfaces, etc)",
  336. "Adds code lens at the start of block-like symbols (functions, methods, properties, etc) lines",
  337. "Adds code lens at the start of symbols contained in `symbolScopes`"
  338. ]
  339. },
  340. "minItems": 1,
  341. "maxItems": 4,
  342. "uniqueItems": true,
  343. "description": "Specifies where Git code lens will be shown in the document for the specified language"
  344. },
  345. "symbolScopes": {
  346. "type": "array",
  347. "items": {
  348. "type": "string"
  349. },
  350. "uniqueItems": true,
  351. "description": "Specifies the set of document symbols where Git code lens will be shown in the document for the specified language\nMust be a member of `SymbolKind`"
  352. }
  353. }
  354. },
  355. "uniqueItems": true,
  356. "description": "Specifies where Git code lens will be shown in the document for the specified languages",
  357. "scope": "resource"
  358. },
  359. "gitlens.codeLens.symbolScopes": {
  360. "type": "array",
  361. "items": {
  362. "type": "string"
  363. },
  364. "uniqueItems": true,
  365. "description": "Specifies a set of document symbols where Git code lens will or will not be shown in the document\nPrefix with `!` to not show Git code lens for the symbol\nMust be a member of `SymbolKind`",
  366. "scope": "resource"
  367. },
  368. "gitlens.currentLine.dateFormat": {
  369. "type": "string",
  370. "default": null,
  371. "description": "Specifies how to format absolute dates (using the `${date}` token) for the current line blame annotation\nSee https://momentjs.com/docs/#/displaying/format/ for valid formats",
  372. "scope": "window"
  373. },
  374. "gitlens.currentLine.enabled": {
  375. "type": "boolean",
  376. "default": true,
  377. "description": "Specifies whether to provide a blame annotation for the current line, by default\nUse the `Toggle Line Blame Annotations` command (`gitlens.toggleLineBlame`) to toggle the annotations on and off for the current window",
  378. "scope": "window"
  379. },
  380. "gitlens.currentLine.format": {
  381. "type": "string",
  382. "default": "${authorAgoOrDate} • ${message}",
  383. "description": "Specifies the format of the current line blame annotation\nAvailable tokens\n ${id} - commit id\n ${author} - commit author\n ${message} - commit message\n ${ago} - relative commit date (e.g. 1 day ago)\n ${date} - formatted commit date (format specified by `gitlens.currentLine.dateFormat`)\n ${agoOrDate} - commit date specified by `gitlens.defaultDateStyle`\n ${authorAgo} - commit author, relative commit date\n ${authorAgoOrDate} - commit author, commit date specified by `gitlens.defaultDateStyle`\nSee https://github.com/eamodio/vscode-gitlens/wiki/Advanced-Formatting for advanced formatting",
  384. "scope": "window"
  385. },
  386. "gitlens.currentLine.scrollable": {
  387. "type": "boolean",
  388. "default": true,
  389. "description": "Specifies whether the current line blame annotation can be scrolled into view when it is outside the viewport",
  390. "scope": "window"
  391. },
  392. "gitlens.debug": {
  393. "type": "boolean",
  394. "default": false,
  395. "description": "Specifies debug mode",
  396. "scope": "window"
  397. },
  398. "gitlens.defaultDateFormat": {
  399. "type": "string",
  400. "default": null,
  401. "description": "Specifies how absolute dates will be formatted by default\nSee https://momentjs.com/docs/#/displaying/format/ for valid formats",
  402. "scope": "window"
  403. },
  404. "gitlens.defaultDateStyle": {
  405. "type": "string",
  406. "default": "relative",
  407. "enum": [
  408. "relative",
  409. "absolute"
  410. ],
  411. "enumDescriptions": [
  412. "e.g. 1 day ago",
  413. "e.g. July 25th, 2018 7:18pm"
  414. ],
  415. "description": "Specifies how dates will be displayed by default",
  416. "scope": "window"
  417. },
  418. "gitlens.defaultGravatarsStyle": {
  419. "type": "string",
  420. "default": "robohash",
  421. "enum": [
  422. "identicon",
  423. "mp",
  424. "monsterid",
  425. "retro",
  426. "robohash",
  427. "wavatar"
  428. ],
  429. "enumDescriptions": [
  430. "A geometric pattern",
  431. "A simple, cartoon-style silhouetted outline of a person (does not vary by email hash)",
  432. "A monster with different colors, faces, etc",
  433. "8-bit arcade-style pixelated faces",
  434. "A robot with different colors, faces, etc",
  435. "A face with differing features and backgrounds"
  436. ],
  437. "description": "Specifies the style of the gravatar default (fallback) images",
  438. "scope": "window"
  439. },
  440. "gitlens.explorers.avatars": {
  441. "type": "boolean",
  442. "default": true,
  443. "description": "Specifies whether to show avatar images instead of commit (or status) icons in the `GitLens` and `GitLens Results` explorers",
  444. "scope": "window"
  445. },
  446. "gitlens.explorers.commitFileFormat": {
  447. "type": "string",
  448. "default": "${filePath}",
  449. "description": "Specifies the format of a committed file in the `GitLens` and `GitLens Results` explorers\nAvailable tokens\n ${directory} - directory name\n ${file} - file name\n ${filePath} - formatted file name and path\n ${path} - full file path",
  450. "scope": "window"
  451. },
  452. "gitlens.explorers.commitFormat": {
  453. "type": "string",
  454. "default": "${message} • ${authorAgoOrDate}${ (id)}",
  455. "description": "Specifies the format of committed changes in the `GitLens` and `GitLens Results` explorers\nAvailable tokens\n ${id} - commit id\n ${author} - commit author\n ${message} - commit message\n ${ago} - relative commit date (e.g. 1 day ago)\n ${date} - formatted commit date (format specified by `gitlens.defaultDateFormat`)\\n ${agoOrDate} - commit date specified by `gitlens.defaultDateStyle`\n ${authorAgo} - commit author, relative commit date\n ${authorAgoOrDate} - commit author, commit date specified by `gitlens.defaultDateStyle`\nSee https://github.com/eamodio/vscode-gitlens/wiki/Advanced-Formatting for advanced formatting",
  456. "scope": "window"
  457. },
  458. "gitlens.explorers.stashFileFormat": {
  459. "type": "string",
  460. "default": "${filePath}",
  461. "description": "Specifies the format of a stashed file in the `GitLens` and `GitLens Results` explorers\nAvailable tokens\n ${directory} - directory name\n ${file} - file name\n ${filePath} - formatted file name and path\n ${path} - full file path",
  462. "scope": "window"
  463. },
  464. "gitlens.explorers.stashFormat": {
  465. "type": "string",
  466. "default": "${message}",
  467. "description": "Specifies the format of stashed changes in the `GitLens` and `GitLens Results` explorers\nAvailable tokens\n ${id} - commit id\n ${author} - commit author\n ${message} - commit message\n ${ago} - relative commit date (e.g. 1 day ago)\n ${date} - formatted commit date (format specified by `gitlens.statusBar.dateFormat`)\n ${agoOrDate} - commit date specified by `gitlens.defaultDateStyle`\n ${authorAgo} - commit author, relative commit date\n ${authorAgoOrDate} - commit author, commit date specified by `gitlens.defaultDateStyle`\nSee https://github.com/eamodio/vscode-gitlens/wiki/Advanced-Formatting for advanced formatting",
  468. "scope": "window"
  469. },
  470. "gitlens.explorers.statusFileFormat": {
  471. "type": "string",
  472. "default": "${working }${filePath}",
  473. "description": "Specifies the format of the status of a working or committed file in the `GitLens` and `GitLens Results` explorers\nAvailable tokens\n ${directory} - directory name\n ${file} - file name\n ${filePath} - formatted file name and path\n ${path} - full file path\n ${working} - optional indicator if the file is uncommitted",
  474. "scope": "window"
  475. },
  476. "gitlens.gitExplorer.autoRefresh": {
  477. "type": "boolean",
  478. "default": true,
  479. "description": "Specifies whether to automatically refresh the `GitLens` explorer when the repository or the file system changes",
  480. "scope": "window"
  481. },
  482. "gitlens.gitExplorer.branches.layout": {
  483. "type": "string",
  484. "default": "tree",
  485. "enum": [
  486. "list",
  487. "tree"
  488. ],
  489. "enumDescriptions": [
  490. "Displays branches as a list",
  491. "Displays branches as a tree when branch names contain slashes `/`"
  492. ],
  493. "description": "Specifies how the `GitLens` explorer will display branches",
  494. "scope": "window"
  495. },
  496. "gitlens.gitExplorer.enabled": {
  497. "type": "boolean",
  498. "default": true,
  499. "description": "Specifies whether to show the `GitLens` explorer",
  500. "scope": "window"
  501. },
  502. "gitlens.gitExplorer.files.compact": {
  503. "type": "boolean",
  504. "default": true,
  505. "description": "Specifies whether to compact (flatten) unnecessary file nesting in the `GitLens` explorer\nOnly applies when `#gitlens.gitExplorer.files.layout#` is set to `tree` or `auto`",
  506. "scope": "window"
  507. },
  508. "gitlens.gitExplorer.files.layout": {
  509. "type": "string",
  510. "default": "auto",
  511. "enum": [
  512. "auto",
  513. "list",
  514. "tree"
  515. ],
  516. "enumDescriptions": [
  517. "Automatically switches between displaying files as a `tree` or `list` based on the `#gitlens.gitExplorer.files.threshold#` value and the number of files at each nesting level",
  518. "Displays files as a list",
  519. "Displays files as a tree"
  520. ],
  521. "description": "Specifies how the `GitLens` explorer will display files",
  522. "scope": "window"
  523. },
  524. "gitlens.gitExplorer.files.threshold": {
  525. "type": "number",
  526. "default": 5,
  527. "description": "Specifies when to switch between displaying files as a `tree` or `list` based on the number of files in a nesting level in the `GitLens` explorer\nOnly applies when `#gitlens.gitExplorer.files.layout#` is set to `auto`",
  528. "scope": "window"
  529. },
  530. "gitlens.gitExplorer.includeWorkingTree": {
  531. "type": "boolean",
  532. "default": true,
  533. "description": "Specifies whether to include working tree files inside the `Repository Status` node of the `GitLens` explorer",
  534. "scope": "window"
  535. },
  536. "gitlens.gitExplorer.location": {
  537. "type": "string",
  538. "default": "gitlens",
  539. "enum": [
  540. "gitlens",
  541. "explorer",
  542. "scm"
  543. ],
  544. "enumDescriptions": [
  545. "Adds to the GitLens view",
  546. "Adds to the Explorer view",
  547. "Adds to the Source Control view"
  548. ],
  549. "description": "Specifies where to show the `GitLens` explorer",
  550. "scope": "window"
  551. },
  552. "gitlens.gitExplorer.showTrackingBranch": {
  553. "type": "boolean",
  554. "default": true,
  555. "description": "Specifies whether to show the tracking branch when displaying local branches in the `GitLens` explorer",
  556. "scope": "window"
  557. },
  558. "gitlens.gitExplorer.view": {
  559. "type": "string",
  560. "default": "auto",
  561. "enum": [
  562. "auto",
  563. "history",
  564. "repository"
  565. ],
  566. "enumDescriptions": [
  567. "Shows the last selected view, defaults to `repository`",
  568. "Shows the commit history of the current file",
  569. "Shows a repository explorer"
  570. ],
  571. "description": "Specifies the starting view of the `GitLens` explorer",
  572. "scope": "window"
  573. },
  574. "gitlens.heatmap.ageThreshold": {
  575. "type": "string",
  576. "default": "90",
  577. "description": "Specifies the age of the most recent change (in days) after which the gutter heatmap annotations will be cold rather than hot (i.e. will use `#gitlens.heatmap.coldColor#` instead of `#gitlens.heatmap.hotColor#`)",
  578. "scope": "window"
  579. },
  580. "gitlens.heatmap.coldColor": {
  581. "type": "string",
  582. "default": "#0a60f6",
  583. "description": "Specifies the base color of the gutter heatmap annotations when the most recent change is older (cold) than the `#gitlens.heatmap.ageThreshold#` value",
  584. "scope": "window"
  585. },
  586. "gitlens.heatmap.hotColor": {
  587. "type": "string",
  588. "default": "#f66a0a",
  589. "description": "Specifies the base color of the gutter heatmap annotations when the most recent change is newer (hot) than the `#gitlens.heatmap.ageThreshold#` value",
  590. "scope": "window"
  591. },
  592. "gitlens.heatmap.toggleMode": {
  593. "type": "string",
  594. "default": "file",
  595. "enum": [
  596. "file",
  597. "window"
  598. ],
  599. "enumDescriptions": [
  600. "Toggles each file individually",
  601. "Toggles the window, i.e. all files at once"
  602. ],
  603. "description": "Specifies how the gutter heatmap annotations will be toggled",
  604. "scope": "window"
  605. },
  606. "gitlens.historyExplorer.avatars": {
  607. "type": "boolean",
  608. "default": true,
  609. "description": "Specifies whether to show avatar images instead of status icons in the `GitLens File History` explorer",
  610. "scope": "window"
  611. },
  612. "gitlens.historyExplorer.enabled": {
  613. "type": "boolean",
  614. "default": true,
  615. "description": "Specifies whether to show the current file history undocked in a `GitLens File History` explorer",
  616. "scope": "window"
  617. },
  618. "gitlens.historyExplorer.location": {
  619. "type": "string",
  620. "default": "gitlens",
  621. "enum": [
  622. "gitlens",
  623. "explorer",
  624. "scm"
  625. ],
  626. "enumDescriptions": [
  627. "Adds to the GitLens view",
  628. "Adds to the Explorer view",
  629. "Adds to the Source Control view"
  630. ],
  631. "description": "Specifies where to show the `GitLens File History` explorer",
  632. "scope": "window"
  633. },
  634. "gitlens.hovers.annotations.changes": {
  635. "type": "boolean",
  636. "default": true,
  637. "description": "Specifies whether to provide a changes (diff) hover for all lines when showing blame annotations",
  638. "scope": "window"
  639. },
  640. "gitlens.hovers.annotations.details": {
  641. "type": "boolean",
  642. "default": true,
  643. "description": "Specifies whether to provide a commit details hover for all lines when showing blame annotations",
  644. "scope": "window"
  645. },
  646. "gitlens.hovers.annotations.enabled": {
  647. "type": "boolean",
  648. "default": true,
  649. "description": "Specifies whether to provide any hovers when showing blame annotations",
  650. "scope": "window"
  651. },
  652. "gitlens.hovers.annotations.over": {
  653. "type": "string",
  654. "default": "line",
  655. "enum": [
  656. "annotation",
  657. "line"
  658. ],
  659. "enumDescriptions": [
  660. "Only shown when hovering over the line annotation",
  661. "Shown when hovering anywhere over the line"
  662. ],
  663. "description": "Specifies when to trigger hovers when showing blame annotations",
  664. "scope": "window"
  665. },
  666. "gitlens.hovers.currentLine.changes": {
  667. "type": "boolean",
  668. "default": true,
  669. "description": "Specifies whether to provide a changes (diff) hover for the current line",
  670. "scope": "window"
  671. },
  672. "gitlens.hovers.currentLine.details": {
  673. "type": "boolean",
  674. "default": true,
  675. "description": "Specifies whether to provide a commit details hover for the current line",
  676. "scope": "window"
  677. },
  678. "gitlens.hovers.currentLine.enabled": {
  679. "type": "boolean",
  680. "default": true,
  681. "description": "Specifies whether to provide any hovers for the current line",
  682. "scope": "window"
  683. },
  684. "gitlens.hovers.currentLine.over": {
  685. "type": "string",
  686. "default": "annotation",
  687. "enum": [
  688. "annotation",
  689. "line"
  690. ],
  691. "enumDescriptions": [
  692. "Only shown when hovering over the line annotation",
  693. "Shown when hovering anywhere over the line"
  694. ],
  695. "description": "Specifies when to trigger hovers for the current line",
  696. "scope": "window"
  697. },
  698. "gitlens.hovers.avatars": {
  699. "type": "boolean",
  700. "default": true,
  701. "description": "Specifies whether to show avatar images in hovers",
  702. "scope": "window"
  703. },
  704. "gitlens.hovers.enabled": {
  705. "type": "boolean",
  706. "default": true,
  707. "description": "Specifies whether to provide any hovers",
  708. "scope": "window"
  709. },
  710. "gitlens.insiders": {
  711. "type": "boolean",
  712. "default": false,
  713. "description": "Specifies whether to enable experimental features",
  714. "scope": "window"
  715. },
  716. "gitlens.keymap": {
  717. "type": "string",
  718. "default": "chorded",
  719. "enum": [
  720. "alternate",
  721. "chorded",
  722. "none"
  723. ],
  724. "enumDescriptions": [
  725. "Adds an alternate set of shortcut keys that start with `Alt` (⌥ on macOS)",
  726. "Adds a chorded set of shortcut keys that start with `Ctrl+Alt+G` (`⌥⌘G` on macOS)",
  727. "No shortcut keys will be added"
  728. ],
  729. "description": "Specifies the keymap to use for GitLens shortcut keys",
  730. "scope": "window"
  731. },
  732. "gitlens.menus": {
  733. "anyOf": [
  734. {
  735. "enum": [
  736. false
  737. ]
  738. },
  739. {
  740. "type": "object",
  741. "properties": {
  742. "editor": {
  743. "anyOf": [
  744. {
  745. "enum": [
  746. false
  747. ]
  748. },
  749. {
  750. "type": "object",
  751. "properties": {
  752. "blame": {
  753. "type": "boolean"
  754. },
  755. "clipboard": {
  756. "type": "boolean"
  757. },
  758. "compare": {
  759. "type": "boolean"
  760. },
  761. "details": {
  762. "type": "boolean"
  763. },
  764. "history": {
  765. "type": "boolean"
  766. },
  767. "remote": {
  768. "type": "boolean"
  769. }
  770. }
  771. }
  772. ]
  773. },
  774. "editorGroup": {
  775. "anyOf": [
  776. {
  777. "enum": [
  778. false
  779. ]
  780. },
  781. {
  782. "type": "object",
  783. "properties": {
  784. "blame": {
  785. "type": "boolean"
  786. },
  787. "compare": {
  788. "type": "boolean"
  789. },
  790. "history": {
  791. "type": "boolean"
  792. },
  793. "remote": {
  794. "type": "boolean"
  795. }
  796. }
  797. }
  798. ]
  799. },
  800. "editorTab": {
  801. "anyOf": [
  802. {
  803. "enum": [
  804. false
  805. ]
  806. },
  807. {
  808. "type": "object",
  809. "properties": {
  810. "compare": {
  811. "type": "boolean"
  812. },
  813. "history": {
  814. "type": "boolean"
  815. },
  816. "remote": {
  817. "type": "boolean"
  818. }
  819. }
  820. }
  821. ]
  822. },
  823. "explorer": {
  824. "anyOf": [
  825. {
  826. "enum": [
  827. false
  828. ]
  829. },
  830. {
  831. "type": "object",
  832. "properties": {
  833. "compare": {
  834. "type": "boolean"
  835. },
  836. "history": {
  837. "type": "boolean"
  838. },
  839. "remote": {
  840. "type": "boolean"
  841. }
  842. }
  843. }
  844. ]
  845. }
  846. }
  847. }
  848. ],
  849. "default": {
  850. "editor": {
  851. "blame": false,
  852. "clipboard": true,
  853. "compare": true,
  854. "details": true,
  855. "history": false,
  856. "remote": true
  857. },
  858. "editorGroup": {
  859. "blame": true,
  860. "compare": true,
  861. "history": false,
  862. "remote": false
  863. },
  864. "editorTab": {
  865. "compare": false,
  866. "history": false,
  867. "remote": true
  868. },
  869. "explorer": {
  870. "compare": true,
  871. "history": true,
  872. "remote": true
  873. }
  874. },
  875. "description": "Specifies which commands will be added to which menus",
  876. "scope": "window"
  877. },
  878. "gitlens.mode.active": {
  879. "type": "string",
  880. "description": "Specifies the active GitLens mode, if any",
  881. "scope": "window"
  882. },
  883. "gitlens.mode.statusBar.enabled": {
  884. "type": "boolean",
  885. "default": true,
  886. "description": "Specifies whether to provide the active GitLens mode on the status bar",
  887. "scope": "window"
  888. },
  889. "gitlens.mode.statusBar.alignment": {
  890. "type": "string",
  891. "default": "right",
  892. "enum": [
  893. "left",
  894. "right"
  895. ],
  896. "enumDescriptions": [
  897. "Aligns to the left",
  898. "Aligns to the right"
  899. ],
  900. "description": "Specifies the active GitLens mode alignment in the status bar",
  901. "scope": "window"
  902. },
  903. "gitlens.modes": {
  904. "type": "object",
  905. "properties": {
  906. "zen": {
  907. "type": "object",
  908. "required": [
  909. "name"
  910. ],
  911. "properties": {
  912. "name": {
  913. "type": "string"
  914. },
  915. "statusBarItemName": {
  916. "type": "string"
  917. },
  918. "description": {
  919. "type": "string"
  920. },
  921. "codeLens": {
  922. "type": "boolean"
  923. },
  924. "currentLine": {
  925. "type": "boolean"
  926. },
  927. "explorers": {
  928. "type": "boolean"
  929. },
  930. "hovers": {
  931. "type": "boolean"
  932. },
  933. "statusBar": {
  934. "type": "boolean"
  935. }
  936. }
  937. },
  938. "review": {
  939. "type": "object",
  940. "required": [
  941. "name"
  942. ],
  943. "properties": {
  944. "name": {
  945. "type": "string"
  946. },
  947. "statusBarItemName": {
  948. "type": "string"
  949. },
  950. "description": {
  951. "type": "string"
  952. },
  953. "codeLens": {
  954. "type": "boolean"
  955. },
  956. "currentLine": {
  957. "type": "boolean"
  958. },
  959. "explorers": {
  960. "type": "boolean"
  961. },
  962. "hovers": {
  963. "type": "boolean"
  964. },
  965. "statusBar": {
  966. "type": "boolean"
  967. }
  968. }
  969. }
  970. },
  971. "additionalProperties": {
  972. "type": "object",
  973. "required": [
  974. "name"
  975. ],
  976. "properties": {
  977. "name": {
  978. "type": "string"
  979. },
  980. "statusBarItemName": {
  981. "type": "string"
  982. },
  983. "description": {
  984. "type": "string"
  985. },
  986. "codeLens": {
  987. "type": "boolean"
  988. },
  989. "currentLine": {
  990. "type": "boolean"
  991. },
  992. "explorers": {
  993. "type": "boolean"
  994. },
  995. "hovers": {
  996. "type": "boolean"
  997. },
  998. "statusBar": {
  999. "type": "boolean"
  1000. }
  1001. }
  1002. },
  1003. "default": {
  1004. "zen": {
  1005. "name": "Zen",
  1006. "statusBarItemName": "Zen",
  1007. "description": "for a zen-like experience, disables many visual features",
  1008. "codeLens": false,
  1009. "currentLine": false,
  1010. "hovers": false,
  1011. "statusBar": false
  1012. },
  1013. "review": {
  1014. "name": "Review",
  1015. "statusBarItemName": "Reviewing",
  1016. "description": "for reviewing code, enables many visual features",
  1017. "codeLens": true,
  1018. "currentLine": true,
  1019. "hovers": true
  1020. }
  1021. },
  1022. "description": "Specifies the user-defined GitLens modes",
  1023. "scope": "window"
  1024. },
  1025. "gitlens.outputLevel": {
  1026. "type": "string",
  1027. "default": "silent",
  1028. "enum": [
  1029. "silent",
  1030. "errors",
  1031. "verbose",
  1032. "debug"
  1033. ],
  1034. "description": "Specifies how much (if any) output will be sent to the GitLens output channel",
  1035. "scope": "window"
  1036. },
  1037. "gitlens.recentChanges.highlight.locations": {
  1038. "type": "array",
  1039. "default": [
  1040. "gutter",
  1041. "line",
  1042. "overview"
  1043. ],
  1044. "items": {
  1045. "type": "string",
  1046. "enum": [
  1047. "gutter",
  1048. "line",
  1049. "overview"
  1050. ],
  1051. "enumDescriptions": [
  1052. "Adds a gutter glyph",
  1053. "Adds a full-line highlight background color",
  1054. "Adds a decoration to the overview ruler (scroll bar)"
  1055. ]
  1056. },
  1057. "minItems": 1,
  1058. "maxItems": 3,
  1059. "uniqueItems": true,
  1060. "description": "Specifies where the highlights of the recently changed lines will be shown",
  1061. "scope": "window"
  1062. },
  1063. "gitlens.recentChanges.toggleMode": {
  1064. "type": "string",
  1065. "default": "file",
  1066. "enum": [
  1067. "file",
  1068. "window"
  1069. ],
  1070. "enumDescriptions": [
  1071. "Toggles each file individually",
  1072. "Toggles the window, i.e. all files at once"
  1073. ],
  1074. "description": "Specifies how the recently changed lines annotations will be toggled",
  1075. "scope": "window"
  1076. },
  1077. "gitlens.remotes": {
  1078. "type": "array",
  1079. "default": null,
  1080. "items": {
  1081. "type": "object",
  1082. "required": [
  1083. "type",
  1084. "domain"
  1085. ],
  1086. "properties": {
  1087. "type": {
  1088. "type": "string",
  1089. "enum": [
  1090. "Bitbucket",
  1091. "BitbucketServer",
  1092. "Custom",
  1093. "GitHub",
  1094. "GitLab"
  1095. ],
  1096. "description": "Specifies the type of the custom remote service"
  1097. },
  1098. "domain": {
  1099. "type": "string",
  1100. "description": "Specifies the domain name of the custom remote service"
  1101. },
  1102. "name": {
  1103. "type": "string",
  1104. "description": "Specifies an optional friendly name for the custom remote service"
  1105. },
  1106. "protocol": {
  1107. "type": "string",
  1108. "default": "https",
  1109. "description": "Specifies an optional url protocol for the custom remote service"
  1110. },
  1111. "urls": {
  1112. "type": "object",
  1113. "required": [
  1114. "repository",
  1115. "branches",
  1116. "branch",
  1117. "commit",
  1118. "file",
  1119. "fileInCommit",
  1120. "fileInBranch",
  1121. "fileLine",
  1122. "fileRange"
  1123. ],
  1124. "properties": {
  1125. "repository": {
  1126. "type": "string",
  1127. "description": "Specifies the format of a respository url for the custom remote service\nAvailable tokens\n ${repo} - repository path"
  1128. },
  1129. "branches": {
  1130. "type": "string",
  1131. "description": "Specifies the format of a branches url for the custom remote service\nAvailable tokens\n ${repo} - repository path\n ${branch} - branch"
  1132. },
  1133. "branch": {
  1134. "type": "string",
  1135. "description": "Specifies the format of a branch url for the custom remote service\nAvailable tokens\n ${repo} - repository path\n ${branch} - branch"
  1136. },
  1137. "commit": {
  1138. "type": "string",
  1139. "description": "Specifies the format of a commit url for the custom remote service\nAvailable tokens\n ${repo} - repository path\n ${id} - commit id"
  1140. },
  1141. "file": {
  1142. "type": "string",
  1143. "description": "Specifies the format of a file url for the custom remote service\nAvailable tokens\n ${repo} - repository path\n ${file} - file name\n ${line} - formatted line information"
  1144. },
  1145. "fileInBranch": {
  1146. "type": "string",
  1147. "description": "Specifies the format of a branch file url for the custom remote service\nAvailable tokens\n ${repo} - repository path\n ${file} - file name\n ${branch} - branch\n ${line} - formatted line information"
  1148. },
  1149. "fileInCommit": {
  1150. "type": "string",
  1151. "description": "Specifies the format of a commit file url for the custom remote service\nAvailable tokens\n ${repo} - repository path\n ${file} - file name\n ${id} - commit id\n ${line} - formatted line information"
  1152. },
  1153. "fileLine": {
  1154. "type": "string",
  1155. "description": "Specifies the format of a line in a file url for the custom remote service\nAvailable tokens\n ${line} - line"
  1156. },
  1157. "fileRange": {
  1158. "type": "string",
  1159. "description": "Specifies the format of a range in a file url for the custom remote service\nAvailable tokens\n ${start} - starting line\n ${end} - ending line"
  1160. }
  1161. }
  1162. },
  1163. "description": "Specifies the url formats of the custom remote service"
  1164. }
  1165. },
  1166. "uniqueItems": true,
  1167. "description": "Specifies user-defined remote (code-hosting) services or custom domains for built-in remote services",
  1168. "scope": "resource"
  1169. },
  1170. "gitlens.resultsExplorer.files.compact": {
  1171. "type": "boolean",
  1172. "default": true,
  1173. "description": "Specifies whether to compact (flatten) unnecessary file nesting in the `GitLens Results` explorer\nOnly applies when `#gitlens.resultsExplorer.files.layout#` is set to `tree` or `auto`",
  1174. "scope": "window"
  1175. },
  1176. "gitlens.resultsExplorer.files.layout": {
  1177. "type": "string",
  1178. "default": "auto",
  1179. "enum": [
  1180. "auto",
  1181. "list",
  1182. "tree"
  1183. ],
  1184. "enumDescriptions": [
  1185. "Automatically switches between displaying files as a `tree` or `list` based on the `#gitlens.gitExplorer.files.threshold#` value and the number of files at each nesting level",
  1186. "Displays files as a list",
  1187. "Displays files as a tree"
  1188. ],
  1189. "description": "Specifies how the `GitLens Results` explorer will display files",
  1190. "scope": "window"
  1191. },
  1192. "gitlens.resultsExplorer.files.threshold": {
  1193. "type": "number",
  1194. "default": 5,
  1195. "description": "Specifies when to switch between displaying files as a `tree` or `list` based on the number of files in a nesting level in the `GitLens Results` explorer\nOnly applies when `#gitlens.resultsExplorer.files.layout#` is set to `auto`",
  1196. "scope": "window"
  1197. },
  1198. "gitlens.resultsExplorer.location": {
  1199. "type": "string",
  1200. "default": "gitlens",
  1201. "enum": [
  1202. "gitlens",
  1203. "explorer",
  1204. "scm"
  1205. ],
  1206. "enumDescriptions": [
  1207. "Adds to the GitLens view",
  1208. "Adds to the Explorer view",
  1209. "Adds to the Source Control view"
  1210. ],
  1211. "description": "Specifies where to show the `GitLens Results` explorer",
  1212. "scope": "window"
  1213. },
  1214. "gitlens.settings.mode": {
  1215. "type": "string",
  1216. "default": "simple",
  1217. "enum": [
  1218. "simple",
  1219. "advanced"
  1220. ],
  1221. "enumDescriptions": [
  1222. "Only displays common settings",
  1223. "Displays all settings"
  1224. ],
  1225. "description": "Specifies the display mode of the interactive settings editor",
  1226. "scope": "window"
  1227. },
  1228. "gitlens.showWhatsNewAfterUpgrades": {
  1229. "type": "boolean",
  1230. "default": true,
  1231. "description": "Specifies whether to show What's New after upgrading to new feature releases",
  1232. "scope": "window"
  1233. },
  1234. "gitlens.statusBar.alignment": {
  1235. "type": "string",
  1236. "default": "right",
  1237. "enum": [
  1238. "left",
  1239. "right"
  1240. ],
  1241. "enumDescriptions": [
  1242. "Aligns to the left",
  1243. "Aligns to the right"
  1244. ],
  1245. "description": "Specifies the blame alignment in the status bar",
  1246. "scope": "window"
  1247. },
  1248. "gitlens.statusBar.command": {
  1249. "type": "string",
  1250. "default": "gitlens.showQuickCommitDetails",
  1251. "enum": [
  1252. "gitlens.toggleFileBlame",
  1253. "gitlens.diffWithPrevious",
  1254. "gitlens.diffWithWorking",
  1255. "gitlens.toggleCodeLens",
  1256. "gitlens.showQuickCommitDetails",
  1257. "gitlens.showQuickCommitFileDetails",
  1258. "gitlens.showQuickFileHistory",
  1259. "gitlens.showQuickRepoHistory"
  1260. ],
  1261. "enumDescriptions": [
  1262. "Toggles file blame annotations",
  1263. "Compares the current line commit with the previous",
  1264. "Compares the current line commit with the working tree",
  1265. "Toggles Git code lens",
  1266. "Shows a commit details quick pick",
  1267. "Shows a commit file details quick pick",
  1268. "Shows a file history quick pick",
  1269. "Shows a branch history quick pick"
  1270. ],
  1271. "description": "Specifies the command to be executed when the blame status bar item is clicked",
  1272. "scope": "window"
  1273. },
  1274. "gitlens.statusBar.dateFormat": {
  1275. "type": "string",
  1276. "default": null,
  1277. "description": "Specifies the date format of absolute dates shown in the blame information on the status bar. See https://momentjs.com/docs/#/displaying/format/ for valid formats",
  1278. "scope": "window"
  1279. },
  1280. "gitlens.statusBar.enabled": {
  1281. "type": "boolean",
  1282. "default": true,
  1283. "description": "Specifies whether to provide blame information on the status bar",
  1284. "scope": "window"
  1285. },
  1286. "gitlens.statusBar.format": {
  1287. "type": "string",
  1288. "default": "${authorAgoOrDate}",
  1289. "description": "Specifies the format of the status bar blame information\nAvailable tokens\n ${id} - commit id\n ${author} - commit author\n ${message} - commit message\n ${ago} - relative commit date (e.g. 1 day ago)\n ${date} - formatted commit date (format specified by `gitlens.statusBar.dateFormat`)\n ${agoOrDate} - commit date specified by `gitlens.defaultDateStyle`\n ${authorAgo} - commit author, relative commit date\n ${authorAgoOrDate} - commit author, commit date specified by `gitlens.defaultDateStyle`\nSee https://github.com/eamodio/vscode-gitlens/wiki/Advanced-Formatting for advanced formatting",
  1290. "scope": "window"
  1291. },
  1292. "gitlens.statusBar.reduceFlicker": {
  1293. "type": "boolean",
  1294. "default": false,
  1295. "description": "Specifies whether to avoid clearing the previous blame information when changing lines to reduce status bar \"flashing\"",
  1296. "scope": "window"
  1297. },
  1298. "gitlens.strings.codeLens.unsavedChanges.recentChangeAndAuthors": {
  1299. "type": "string",
  1300. "default": "Unsaved changes (cannot determine recent change or authors)",
  1301. "description": "Specifies the string to be shown in place of both the `recent change` and `authors` code lens when there are unsaved changes",
  1302. "scope": "window"
  1303. },
  1304. "gitlens.strings.codeLens.unsavedChanges.recentChangeOnly": {
  1305. "type": "string",
  1306. "default": "Unsaved changes (cannot determine recent change)",
  1307. "description": "Specifies the string to be shown in place of the `recent change` code lens when there are unsaved changes",
  1308. "scope": "window"
  1309. },
  1310. "gitlens.strings.codeLens.unsavedChanges.authorsOnly": {
  1311. "type": "string",
  1312. "default": "Unsaved changes (cannot determine authors)",
  1313. "description": "Specifies the string to be shown in place of the `authors` code lens when there are unsaved changes",
  1314. "scope": "window"
  1315. },
  1316. "gitlens.advanced.blame.customArguments": {
  1317. "type": "array",
  1318. "default": null,
  1319. "items": {
  1320. "type": "string"
  1321. },
  1322. "description": "Specifies additional arguments to pass to the `git blame` command",
  1323. "scope": "resource"
  1324. },
  1325. "gitlens.advanced.blame.delayAfterEdit": {
  1326. "type": "number",
  1327. "default": 5000,
  1328. "description": "Specifies the time (in milliseconds) to wait before re-blaming an unsaved document after an edit. Use 0 to specify an infinite wait",
  1329. "scope": "window"
  1330. },
  1331. "gitlens.advanced.blame.sizeThresholdAfterEdit": {
  1332. "type": "number",
  1333. "default": 5000,
  1334. "description": "Specifies the maximum document size (in lines) allowed to be re-blamed after an edit while still unsaved. Use 0 to specify no maximum",
  1335. "scope": "window"
  1336. },
  1337. "gitlens.advanced.caching.enabled": {
  1338. "type": "boolean",
  1339. "default": true,
  1340. "description": "Specifies whether git output will be cached — changing the default is not recommended",
  1341. "scope": "window"
  1342. },
  1343. "gitlens.advanced.fileHistoryFollowsRenames": {
  1344. "type": "boolean",
  1345. "default": true,
  1346. "description": "Specifies whether file histories will follow renames — will affect how merge commits are shown in histories",
  1347. "scope": "window"
  1348. },
  1349. "gitlens.advanced.maxListItems": {
  1350. "type": "number",
  1351. "default": 200,
  1352. "description": "Specifies the maximum number of items to show in a list. Use 0 to specify no maximum",
  1353. "scope": "window"
  1354. },
  1355. "gitlens.advanced.messages": {
  1356. "type": "object",
  1357. "default": {
  1358. "suppressCommitHasNoPreviousCommitWarning": false,
  1359. "suppressCommitNotFoundWarning": false,
  1360. "suppressFileNotUnderSourceControlWarning": false,
  1361. "suppressGitDisabledWarning": false,
  1362. "suppressGitVersionWarning": false,
  1363. "suppressLineUncommittedWarning": false,
  1364. "suppressNoRepositoryWarning": false,
  1365. "suppressShowKeyBindingsNotice": false
  1366. },
  1367. "properties": {
  1368. "suppressCommitHasNoPreviousCommitWarning": {
  1369. "type": "boolean",
  1370. "default": false
  1371. },
  1372. "suppressCommitNotFoundWarning": {
  1373. "type": "boolean",
  1374. "default": false
  1375. },
  1376. "suppressFileNotUnderSourceControlWarning": {
  1377. "type": "boolean",
  1378. "default": false
  1379. },
  1380. "suppressGitDisabledWarning": {
  1381. "type": "boolean",
  1382. "default": false
  1383. },
  1384. "suppressGitVersionWarning": {
  1385. "type": "boolean",
  1386. "default": false
  1387. },
  1388. "suppressLineUncommittedWarning": {
  1389. "type": "boolean",
  1390. "default": false
  1391. },
  1392. "suppressNoRepositoryWarning": {
  1393. "type": "boolean",
  1394. "default": false
  1395. },
  1396. "suppressShowKeyBindingsNotice": {
  1397. "type": "boolean",
  1398. "default": false
  1399. }
  1400. },
  1401. "description": "Specifies which messages should be suppressed",
  1402. "scope": "window"
  1403. },
  1404. "gitlens.advanced.quickPick.closeOnFocusOut": {
  1405. "type": "boolean",
  1406. "default": true,
  1407. "description": "Specifies whether to close QuickPick menus when focus is lost",
  1408. "scope": "window"
  1409. },
  1410. "gitlens.advanced.repositorySearchDepth": {
  1411. "type": "number",
  1412. "default": 1,
  1413. "description": "Specifies how many folders deep to search for repositories",
  1414. "scope": "resource"
  1415. },
  1416. "gitlens.advanced.telemetry.enabled": {
  1417. "type": "boolean",
  1418. "default": true,
  1419. "description": "Specifies whether to enable GitLens telemetry (even if enabled still abides by the overall `telemetry.enableTelemetry` setting",
  1420. "scope": "window"
  1421. }
  1422. }
  1423. },
  1424. "colors": [
  1425. {
  1426. "id": "gitlens.gutterBackgroundColor",
  1427. "description": "Specifies the background color of the gutter blame annotations",
  1428. "defaults": {
  1429. "dark": "#FFFFFF13",
  1430. "light": "#0000000C",
  1431. "highContrast": "#FFFFFF13"
  1432. }
  1433. },
  1434. {
  1435. "id": "gitlens.gutterForegroundColor",
  1436. "description": "Specifies the foreground color of the gutter blame annotations",
  1437. "defaults": {
  1438. "dark": "#BEBEBE",
  1439. "light": "#747474",
  1440. "highContrast": "#BEBEBE"
  1441. }
  1442. },
  1443. {
  1444. "id": "gitlens.gutterUncommittedForegroundColor",
  1445. "description": "Specifies the foreground color of an uncommitted line in the gutter blame annotations",
  1446. "defaults": {
  1447. "dark": "#00BCF299",
  1448. "light": "#00BCF299",
  1449. "highContrast": "#00BCF2FF"
  1450. }
  1451. },
  1452. {
  1453. "id": "gitlens.trailingLineBackgroundColor",
  1454. "description": "Specifies the background color of the blame annotation for the current line",
  1455. "defaults": {
  1456. "dark": "#00000000",
  1457. "light": "#00000000",
  1458. "highContrast": "#00000000"
  1459. }
  1460. },
  1461. {
  1462. "id": "gitlens.trailingLineForegroundColor",
  1463. "description": "Specifies the foreground color of the blame annotation for the current line",
  1464. "defaults": {
  1465. "dark": "#99999959",
  1466. "light": "#99999959",
  1467. "highContrast": "#99999999"
  1468. }
  1469. },
  1470. {
  1471. "id": "gitlens.lineHighlightBackgroundColor",
  1472. "description": "Specifies the background color of the associated line highlights in blame annotations",
  1473. "defaults": {
  1474. "dark": "#00BCF233",
  1475. "light": "#00BCF233",
  1476. "highContrast": "#00BCF233"
  1477. }
  1478. },
  1479. {
  1480. "id": "gitlens.lineHighlightOverviewRulerColor",
  1481. "description": "Specifies the overview ruler color of the associated line highlights in blame annotations",
  1482. "defaults": {
  1483. "dark": "#00BCF299",
  1484. "light": "#00BCF299",
  1485. "highContrast": "#00BCF299"
  1486. }
  1487. }
  1488. ],
  1489. "commands": [
  1490. {
  1491. "command": "gitlens.showSettingsPage",
  1492. "title": "Open Settings",
  1493. "category": "GitLens"
  1494. },
  1495. {
  1496. "command": "gitlens.showWelcomePage",
  1497. "title": "Welcome",
  1498. "category": "GitLens"
  1499. },
  1500. {
  1501. "command": "gitlens.showGitExplorer",
  1502. "title": "Show GitLens Explorer",
  1503. "category": "GitLens"
  1504. },
  1505. {
  1506. "command": "gitlens.showHistoryExplorer",
  1507. "title": "Show File History Explorer",
  1508. "category": "GitLens"
  1509. },
  1510. {
  1511. "command": "gitlens.showResultsExplorer",
  1512. "title": "Show Results Explorer",
  1513. "category": "GitLens"
  1514. },
  1515. {
  1516. "command": "gitlens.diffDirectory",
  1517. "title": "Directory Compare Working Tree with...",
  1518. "category": "GitLens"
  1519. },
  1520. {
  1521. "command": "gitlens.diffHeadWithBranch",
  1522. "title": "Compare HEAD with Branch or Tag...",
  1523. "category": "GitLens"
  1524. },
  1525. {
  1526. "command": "gitlens.diffWorkingWithBranch",
  1527. "title": "Compare Working Tree with Branch or Tag...",
  1528. "category": "GitLens"
  1529. },
  1530. {
  1531. "command": "gitlens.diffWithBranch",
  1532. "title": "Open Changes with Branch or Tag...",
  1533. "category": "GitLens"
  1534. },
  1535. {
  1536. "command": "gitlens.diffWithNext",
  1537. "title": "Open Changes with Next Revision",
  1538. "category": "GitLens",
  1539. "icon": {
  1540. "dark": "images/dark/icon-next-commit.svg",
  1541. "light": "images/light/icon-next-commit.svg"
  1542. }
  1543. },
  1544. {
  1545. "command": "gitlens.diffWithPrevious",
  1546. "title": "Open Changes with Previous Revision",
  1547. "category": "GitLens",
  1548. "icon": {
  1549. "dark": "images/dark/icon-prev-commit.svg",
  1550. "light": "images/light/icon-prev-commit.svg"
  1551. }
  1552. },
  1553. {
  1554. "command": "gitlens.diffWithPreviousInDiff",
  1555. "title": "Open Changes with Previous Revision",
  1556. "category": "GitLens",
  1557. "icon": {
  1558. "dark": "images/dark/icon-prev-commit.svg",
  1559. "light": "images/light/icon-prev-commit.svg"
  1560. }
  1561. },
  1562. {
  1563. "command": "gitlens.diffLineWithPrevious",
  1564. "title": "Open Line Changes with Previous Revision",
  1565. "category": "GitLens"
  1566. },
  1567. {
  1568. "command": "gitlens.diffWithRevision",
  1569. "title": "Open Changes with Revision...",
  1570. "category": "GitLens",
  1571. "icon": {
  1572. "dark": "images/dark/icon-prev-commit-menu.svg",
  1573. "light": "images/light/icon-prev-commit-menu.svg"
  1574. }
  1575. },
  1576. {
  1577. "command": "gitlens.diffWithWorking",
  1578. "title": "Open Changes with Working File",
  1579. "category": "GitLens",
  1580. "icon": {
  1581. "dark": "images/dark/icon-compare.svg",
  1582. "light": "images/light/icon-compare.svg"
  1583. }
  1584. },
  1585. {
  1586. "command": "gitlens.diffLineWithWorking",
  1587. "title": "Open Line Changes with Working File",
  1588. "category": "GitLens"
  1589. },
  1590. {
  1591. "command": "gitlens.toggleFileBlame",
  1592. "title": "Toggle File Blame Annotations",
  1593. "category": "GitLens",
  1594. "icon": {
  1595. "dark": "images/dark/git-icon.svg",
  1596. "light": "images/light/git-icon.svg"
  1597. }
  1598. },
  1599. {
  1600. "command": "gitlens.clearFileAnnotations",
  1601. "title": "Clear File Annotations",
  1602. "category": "GitLens",
  1603. "icon": {
  1604. "dark": "images/dark/git-icon-orange.svg",
  1605. "light": "images/light/git-icon-orange.svg"
  1606. }
  1607. },
  1608. {
  1609. "command": "gitlens.computingFileAnnotations",
  1610. "title": "Computing File Annotations...",
  1611. "category": "GitLens",
  1612. "icon": {
  1613. "dark": "images/dark/git-icon-progress.svg",
  1614. "light": "images/light/git-icon-progress.svg"
  1615. }
  1616. },
  1617. {
  1618. "command": "gitlens.toggleFileHeatmap",
  1619. "title": "Toggle File Heatmap Annotations",
  1620. "category": "GitLens"
  1621. },
  1622. {
  1623. "command": "gitlens.toggleFileRecentChanges",
  1624. "title": "Toggle Recent File Changes Annotations",
  1625. "category": "GitLens",
  1626. "icon": {
  1627. "dark": "images/dark/git-icon.svg",
  1628. "light": "images/light/git-icon.svg"
  1629. }
  1630. },
  1631. {
  1632. "command": "gitlens.toggleLineBlame",
  1633. "title": "Toggle Line Blame Annotations",
  1634. "category": "GitLens"
  1635. },
  1636. {
  1637. "command": "gitlens.toggleCodeLens",
  1638. "title": "Toggle Git Code Lens",
  1639. "category": "GitLens"
  1640. },
  1641. {
  1642. "command": "gitlens.switchMode",
  1643. "title": "Switch Mode",
  1644. "category": "GitLens"
  1645. },
  1646. {
  1647. "command": "gitlens.toggleReviewMode",
  1648. "title": "Toggle Review Mode",
  1649. "category": "GitLens"
  1650. },
  1651. {
  1652. "command": "gitlens.toggleZenMode",
  1653. "title": "Toggle Zen Mode",
  1654. "category": "GitLens"
  1655. },
  1656. {
  1657. "command": "gitlens.showCommitSearch",
  1658. "title": "Search Commits",
  1659. "category": "GitLens",
  1660. "icon": {
  1661. "dark": "images/dark/icon-search.svg",
  1662. "light": "images/light/icon-search.svg"
  1663. }
  1664. },
  1665. {
  1666. "command": "gitlens.showLastQuickPick",
  1667. "title": "Show Last Opened Quick Pick",
  1668. "category": "GitLens"
  1669. },
  1670. {
  1671. "command": "gitlens.showQuickCommitDetails",
  1672. "title": "Show Commit Details",
  1673. "category": "GitLens"
  1674. },
  1675. {
  1676. "command": "gitlens.showQuickCommitFileDetails",
  1677. "title": "Show Commit Details",
  1678. "category": "GitLens"
  1679. },
  1680. {
  1681. "command": "gitlens.showQuickFileHistory",
  1682. "title": "Show File History",
  1683. "category": "GitLens"
  1684. },
  1685. {
  1686. "command": "gitlens.showQuickBranchHistory",
  1687. "title": "Show Branch History",
  1688. "category": "GitLens"
  1689. },
  1690. {
  1691. "command": "gitlens.showQuickRepoHistory",
  1692. "title": "Show Current Branch History",
  1693. "category": "GitLens"
  1694. },
  1695. {
  1696. "command": "gitlens.showQuickRepoStatus",
  1697. "title": "Show Repository Status",
  1698. "category": "GitLens"
  1699. },
  1700. {
  1701. "command": "gitlens.showQuickStashList",
  1702. "title": "Show Stashed Changes",
  1703. "category": "GitLens"
  1704. },
  1705. {
  1706. "command": "gitlens.copyMessageToClipboard",
  1707. "title": "Copy Commit Message to Clipboard",
  1708. "category": "GitLens"
  1709. },
  1710. {
  1711. "command": "gitlens.copyRemoteFileUrlToClipboard",
  1712. "title": "Copy Remote File Url to Clipboard",
  1713. "category": "GitLens"
  1714. },
  1715. {
  1716. "command": "gitlens.copyShaToClipboard",
  1717. "title": "Copy Commit ID to Clipboard",
  1718. "category": "GitLens"
  1719. },
  1720. {
  1721. "command": "gitlens.closeUnchangedFiles",
  1722. "title": "Close Unchanged Files",
  1723. "category": "GitLens"
  1724. },
  1725. {
  1726. "command": "gitlens.openChangedFiles",
  1727. "title": "Open Changed Files",
  1728. "category": "GitLens"
  1729. },
  1730. {
  1731. "command": "gitlens.openBranchesInRemote",
  1732. "title": "Open Branches in Remote",
  1733. "category": "GitLens"
  1734. },
  1735. {
  1736. "command": "gitlens.openBranchInRemote",
  1737. "title": "Open Branch in Remote",
  1738. "category": "GitLens"
  1739. },
  1740. {
  1741. "command": "gitlens.openCommitInRemote",
  1742. "title": "Open Commit in Remote",
  1743. "category": "GitLens"
  1744. },
  1745. {
  1746. "command": "gitlens.openFileInRemote",
  1747. "title": "Open File in Remote",
  1748. "category": "GitLens"
  1749. },
  1750. {
  1751. "command": "gitlens.openFileRevision",
  1752. "title": "Open Revision...",
  1753. "category": "GitLens"
  1754. },
  1755. {
  1756. "command": "gitlens.openRepoInRemote",
  1757. "title": "Open Repository in Remote",
  1758. "category": "GitLens"
  1759. },
  1760. {
  1761. "command": "gitlens.openWorkingFile",
  1762. "title": "Open Working File",
  1763. "category": "GitLens",
  1764. "icon": {
  1765. "dark": "images/dark/icon-open-working-file.svg",
  1766. "light": "images/light/icon-open-working-file.svg"
  1767. }
  1768. },
  1769. {
  1770. "command": "gitlens.stashApply",
  1771. "title": "Apply Stashed Changes",
  1772. "category": "GitLens"
  1773. },
  1774. {
  1775. "command": "gitlens.stashDelete",
  1776. "title": "Delete Stashed Changes",
  1777. "category": "GitLens"
  1778. },
  1779. {
  1780. "command": "gitlens.stashSave",
  1781. "title": "Stash Changes",
  1782. "category": "GitLens",
  1783. "icon": {
  1784. "dark": "images/dark/icon-add.svg",
  1785. "light": "images/light/icon-add.svg"
  1786. }
  1787. },
  1788. {
  1789. "command": "gitlens.externalDiff",
  1790. "title": "Open Changes (with difftool)",
  1791. "category": "GitLens"
  1792. },
  1793. {
  1794. "command": "gitlens.externalDiffAll",
  1795. "title": "Open All Changes (with difftool)",
  1796. "category": "GitLens"
  1797. },
  1798. {
  1799. "command": "gitlens.resetSuppressedWarnings",
  1800. "title": "Reset Suppressed Warnings",
  1801. "category": "GitLens"
  1802. },
  1803. {
  1804. "command": "gitlens.explorers.exploreRepoRevision",
  1805. "title": "Explore the Repository from Here",
  1806. "category": "GitLens"
  1807. },
  1808. {
  1809. "command": "gitlens.explorers.openDirectoryDiff",
  1810. "title": "Open Directory Compare",
  1811. "category": "GitLens"
  1812. },
  1813. {
  1814. "command": "gitlens.explorers.openDirectoryDiffWithWorking",
  1815. "title": "Open Directory Compare with Working Tree",
  1816. "category": "GitLens"
  1817. },
  1818. {
  1819. "command": "gitlens.explorers.openChanges",
  1820. "title": "Open Changes",
  1821. "category": "GitLens"
  1822. },
  1823. {
  1824. "command": "gitlens.explorers.openChangesWithWorking",
  1825. "title": "Open Changes with Working File",
  1826. "category": "GitLens"
  1827. },
  1828. {
  1829. "command": "gitlens.explorers.openFile",
  1830. "title": "Open File",
  1831. "category": "GitLens",
  1832. "icon": {
  1833. "dark": "images/dark/icon-open-file.svg",
  1834. "light": "images/light/icon-open-file.svg"
  1835. }
  1836. },
  1837. {
  1838. "command": "gitlens.explorers.openFileRevision",
  1839. "title": "Open Revision",
  1840. "category": "GitLens"
  1841. },
  1842. {
  1843. "command": "gitlens.explorers.openFileRevisionInRemote",
  1844. "title": "Open Revision in Remote",
  1845. "category": "GitLens"
  1846. },
  1847. {
  1848. "command": "gitlens.explorers.openChangedFiles",
  1849. "title": "Open Files",
  1850. "category": "GitLens"
  1851. },
  1852. {
  1853. "command": "gitlens.explorers.openChangedFileChanges",
  1854. "title": "Open All Changes",
  1855. "category": "GitLens"
  1856. },
  1857. {
  1858. "command": "gitlens.explorers.openChangedFileChangesWithWorking",
  1859. "title": "Open All Changes with Working Tree",
  1860. "category": "GitLens"
  1861. },
  1862. {
  1863. "command": "gitlens.explorers.openChangedFileRevisions",
  1864. "title": "Open Revisions",
  1865. "category": "GitLens"
  1866. },
  1867. {
  1868. "command": "gitlens.explorers.applyChanges",
  1869. "title": "Apply Changes",
  1870. "category": "GitLens"
  1871. },
  1872. {
  1873. "command": "gitlens.explorers.closeRepository",
  1874. "title": "Close Repository",
  1875. "category": "GitLens"
  1876. },
  1877. {
  1878. "command": "gitlens.explorers.compareAncestryWithWorking",
  1879. "title": "Compare Ancestry with Working Tree",
  1880. "category": "GitLens"
  1881. },
  1882. {
  1883. "command": "gitlens.explorers.compareWithHead",
  1884. "title": "Compare with HEAD",
  1885. "category": "GitLens"
  1886. },
  1887. {
  1888. "command": "gitlens.explorers.compareWithRemote",
  1889. "title": "Compare with Remote",
  1890. "category": "GitLens"
  1891. },
  1892. {
  1893. "command": "gitlens.explorers.compareWithSelected",
  1894. "title": "Compare with Selected",
  1895. "category": "GitLens"
  1896. },
  1897. {
  1898. "command": "gitlens.explorers.compareWithWorking",
  1899. "title": "Compare with Working Tree",
  1900. "category": "GitLens"
  1901. },
  1902. {
  1903. "command": "gitlens.explorers.selectForCompare",
  1904. "title": "Select for Compare",
  1905. "category": "GitLens"
  1906. },
  1907. {
  1908. "command": "gitlens.explorers.terminalCheckoutBranch",
  1909. "title": "Checkout Branch (via Terminal)",
  1910. "category": "GitLens"
  1911. },
  1912. {
  1913. "command": "gitlens.explorers.terminalCreateBranch",
  1914. "title": "Create Branch (via Terminal)...",
  1915. "category": "GitLens"
  1916. },
  1917. {
  1918. "command": "gitlens.explorers.terminalDeleteBranch",
  1919. "title": "Delete Branch (via Terminal)",
  1920. "category": "GitLens"
  1921. },
  1922. {
  1923. "command": "gitlens.explorers.terminalMergeBranch",
  1924. "title": "Merge Branch (via Terminal)",
  1925. "category": "GitLens"
  1926. },
  1927. {
  1928. "command": "gitlens.explorers.terminalRebaseBranch",
  1929. "title": "Rebase (Interactive) Branch (via Terminal)",
  1930. "category": "GitLens"
  1931. },
  1932. {
  1933. "command": "gitlens.explorers.terminalRebaseBranchToRemote",
  1934. "title": "Rebase (Interactive) Branch to Remote (via Terminal)",
  1935. "category": "GitLens"
  1936. },
  1937. {
  1938. "command": "gitlens.explorers.terminalSquashBranchIntoCommit",
  1939. "title": "Squash Branch into Commit (via Terminal)",
  1940. "category": "GitLens"
  1941. },
  1942. {
  1943. "command": "gitlens.explorers.terminalCheckoutCommit",
  1944. "title": "Checkout Commit (via Terminal)",
  1945. "category": "GitLens"
  1946. },
  1947. {
  1948. "command": "gitlens.explorers.terminalCherryPickCommit",
  1949. "title": "Cherry Pick Commit (via Terminal)",
  1950. "category": "GitLens"
  1951. },
  1952. {
  1953. "command": "gitlens.explorers.terminalPushCommit",
  1954. "title": "Push to Commit (via Terminal)",
  1955. "category": "GitLens"
  1956. },
  1957. {
  1958. "command": "gitlens.explorers.terminalRebaseCommit",
  1959. "title": "Rebase to Commit (via Terminal)",
  1960. "category": "GitLens"
  1961. },
  1962. {
  1963. "command": "gitlens.explorers.terminalResetCommit",
  1964. "title": "Reset to Commit (via Terminal)",
  1965. "category": "GitLens"
  1966. },
  1967. {
  1968. "command": "gitlens.explorers.terminalRevertCommit",
  1969. "title": "Revert Commit (via Terminal)",
  1970. "category": "GitLens"
  1971. },
  1972. {
  1973. "command": "gitlens.explorers.terminalRemoveRemote",
  1974. "title": "Remove Remote (via Terminal)",
  1975. "category": "GitLens"
  1976. },
  1977. {
  1978. "command": "gitlens.explorers.terminalCreateTag",
  1979. "title": "Create Tag (via Terminal)...",
  1980. "category": "GitLens"
  1981. },
  1982. {
  1983. "command": "gitlens.explorers.terminalDeleteTag",
  1984. "title": "Delete Tag (via Terminal)",
  1985. "category": "GitLens"
  1986. },
  1987. {
  1988. "command": "gitlens.gitExplorer.undockHistory",
  1989. "title": "Undock File History from GitLens Explorer",
  1990. "category": "GitLens",
  1991. "icon": {
  1992. "dark": "images/dark/icon-undock.svg",
  1993. "light": "images/light/icon-undock.svg"
  1994. }
  1995. },
  1996. {
  1997. "command": "gitlens.gitExplorer.refresh",
  1998. "title": "Refresh",
  1999. "category": "GitLens",
  2000. "icon": {
  2001. "dark": "images/dark/icon-refresh.svg",
  2002. "light": "images/light/icon-refresh.svg"
  2003. }
  2004. },
  2005. {
  2006. "command": "gitlens.gitExplorer.refreshNode",
  2007. "title": "Refresh",
  2008. "category": "GitLens"
  2009. },
  2010. {
  2011. "command": "gitlens.gitExplorer.setFilesLayoutToAuto",
  2012. "title": "Automatic Layout",
  2013. "category": "GitLens"
  2014. },
  2015. {
  2016. "command": "gitlens.gitExplorer.setFilesLayoutToList",
  2017. "title": "List Layout",
  2018. "category": "GitLens"
  2019. },
  2020. {
  2021. "command": "gitlens.gitExplorer.setFilesLayoutToTree",
  2022. "title": "Tree Layout",
  2023. "category": "GitLens"
  2024. },
  2025. {
  2026. "command": "gitlens.gitExplorer.setAutoRefreshToOn",
  2027. "title": "Enable Automatic Refresh",
  2028. "category": "GitLens"
  2029. },
  2030. {
  2031. "command": "gitlens.gitExplorer.setAutoRefreshToOff",
  2032. "title": "Disable Automatic Refresh",
  2033. "category": "GitLens"
  2034. },
  2035. {
  2036. "command": "gitlens.gitExplorer.setRenameFollowingOn",
  2037. "title": "Follow Renames",
  2038. "category": "GitLens"
  2039. },
  2040. {
  2041. "command": "gitlens.gitExplorer.setRenameFollowingOff",
  2042. "title": "Don't Follow Renames",
  2043. "category": "GitLens"
  2044. },
  2045. {
  2046. "command": "gitlens.gitExplorer.switchToHistoryView",
  2047. "title": "Switch to File History View",
  2048. "category": "GitLens",
  2049. "icon": {
  2050. "dark": "images/dark/icon-history.svg",
  2051. "light": "images/light/icon-history.svg"
  2052. }
  2053. },
  2054. {
  2055. "command": "gitlens.gitExplorer.switchToRepositoryView",
  2056. "title": "Switch to Repository View",
  2057. "category": "GitLens",
  2058. "icon": {
  2059. "dark": "images/dark/icon-repo.svg",
  2060. "light": "images/light/icon-repo.svg"
  2061. }
  2062. },
  2063. {
  2064. "command": "gitlens.historyExplorer.close",
  2065. "title": "Close",
  2066. "category": "GitLens",
  2067. "icon": {
  2068. "dark": "images/dark/icon-close.svg",
  2069. "light": "images/light/icon-close.svg"
  2070. }
  2071. },
  2072. {
  2073. "command": "gitlens.historyExplorer.dock",
  2074. "title": "Dock File History to GitLens Explorer",
  2075. "category": "GitLens",
  2076. "icon": {
  2077. "dark": "images/dark/icon-dock.svg",
  2078. "light": "images/light/icon-dock.svg"
  2079. }
  2080. },
  2081. {
  2082. "command": "gitlens.historyExplorer.refresh",
  2083. "title": "Refresh",
  2084. "category": "GitLens",
  2085. "icon": {
  2086. "dark": "images/dark/icon-refresh.svg",
  2087. "light": "images/light/icon-refresh.svg"
  2088. }
  2089. },
  2090. {
  2091. "command": "gitlens.historyExplorer.refreshNode",
  2092. "title": "Refresh",
  2093. "category": "GitLens"
  2094. },
  2095. {
  2096. "command": "gitlens.historyExplorer.setRenameFollowingOn",
  2097. "title": "Follow Renames",
  2098. "category": "GitLens"
  2099. },
  2100. {
  2101. "command": "gitlens.historyExplorer.setRenameFollowingOff",
  2102. "title": "Don't Follow Renames",
  2103. "category": "GitLens"
  2104. },
  2105. {
  2106. "command": "gitlens.resultsExplorer.clearResultsNode",
  2107. "title": "Clear Results",
  2108. "category": "GitLens",
  2109. "icon": {
  2110. "dark": "images/dark/icon-close-small.svg",
  2111. "light": "images/light/icon-close-small.svg"
  2112. }
  2113. },
  2114. {
  2115. "command": "gitlens.resultsExplorer.close",
  2116. "title": "Close",
  2117. "category": "GitLens",
  2118. "icon": {
  2119. "dark": "images/dark/icon-close.svg",
  2120. "light": "images/light/icon-close.svg"
  2121. }
  2122. },
  2123. {
  2124. "command": "gitlens.resultsExplorer.refresh",
  2125. "title": "Refresh",
  2126. "category": "GitLens",
  2127. "icon": {
  2128. "dark": "images/dark/icon-refresh.svg",
  2129. "light": "images/light/icon-refresh.svg"
  2130. }
  2131. },
  2132. {
  2133. "command": "gitlens.resultsExplorer.refreshNode",
  2134. "title": "Refresh",
  2135. "category": "GitLens"
  2136. },
  2137. {
  2138. "command": "gitlens.resultsExplorer.setFilesLayoutToAuto",
  2139. "title": "Automatic Layout",
  2140. "category": "GitLens"
  2141. },
  2142. {
  2143. "command": "gitlens.resultsExplorer.setFilesLayoutToList",
  2144. "title": "List Layout",
  2145. "category": "GitLens"
  2146. },
  2147. {
  2148. "command": "gitlens.resultsExplorer.setFilesLayoutToTree",
  2149. "title": "Tree Layout",
  2150. "category": "GitLens"
  2151. },
  2152. {
  2153. "command": "gitlens.resultsExplorer.setKeepResultsToOn",
  2154. "title": "Keep Results",
  2155. "category": "GitLens",
  2156. "icon": {
  2157. "dark": "images/dark/icon-lock.svg",
  2158. "light": "images/light/icon-lock.svg"
  2159. }
  2160. },
  2161. {
  2162. "command": "gitlens.resultsExplorer.setKeepResultsToOff",
  2163. "title": "Keep Results",
  2164. "category": "GitLens",
  2165. "icon": {
  2166. "dark": "images/dark/icon-locked.svg",
  2167. "light": "images/light/icon-locked.svg"
  2168. }
  2169. },
  2170. {
  2171. "command": "gitlens.resultsExplorer.swapComparision",
  2172. "title": "Swap Comparision",
  2173. "category": "GitLens",
  2174. "icon": {
  2175. "dark": "images/dark/icon-swap.svg",
  2176. "light": "images/light/icon-swap.svg"
  2177. }
  2178. }
  2179. ],
  2180. "menus": {
  2181. "commandPalette": [
  2182. {
  2183. "command": "gitlens.showGitExplorer",
  2184. "when": "gitlens:enabled && gitlens:gitExplorer"
  2185. },
  2186. {
  2187. "command": "gitlens.showHistoryExplorer",
  2188. "when": "gitlens:enabled && gitlens:historyExplorer"
  2189. },
  2190. {
  2191. "command": "gitlens.showHistoryExplorer",
  2192. "when": "gitlens:enabled && !gitlens:historyExplorer && gitlens:gitExplorer"
  2193. },
  2194. {
  2195. "command": "gitlens.showResultsExplorer",
  2196. "when": "gitlens:enabled && gitlens:resultsExplorer"
  2197. },
  2198. {
  2199. "command": "gitlens.diffDirectory",
  2200. "when": "gitlens:enabled"
  2201. },
  2202. {
  2203. "command": "gitlens.diffHeadWithBranch",
  2204. "when": "gitlens:enabled"
  2205. },
  2206. {
  2207. "command": "gitlens.diffWorkingWithBranch",
  2208. "when": "gitlens:enabled"
  2209. },
  2210. {
  2211. "command": "gitlens.diffWithBranch",
  2212. "when": "gitlens:activeFileStatus =~ /tracked/"
  2213. },
  2214. {
  2215. "command": "gitlens.diffWithNext",
  2216. "when": "gitlens:activeFileStatus =~ /tracked/ && gitlens:activeFileStatus =~ /revision/"
  2217. },
  2218. {
  2219. "command": "gitlens.diffWithPrevious",
  2220. "when": "!isInDiffEditor && gitlens:activeFileStatus =~ /tracked/"
  2221. },
  2222. {
  2223. "command": "gitlens.diffWithPreviousInDiff",
  2224. "when": "isInDiffEditor && gitlens:activeFileStatus =~ /tracked/"
  2225. },
  2226. {
  2227. "command": "gitlens.diffLineWithPrevious",
  2228. "when": "gitlens:activeFileStatus =~ /blameable/"
  2229. },
  2230. {
  2231. "command": "gitlens.diffWithRevision",
  2232. "when": "gitlens:activeFileStatus =~ /tracked/"
  2233. },
  2234. {
  2235. "command": "gitlens.diffWithWorking",
  2236. "when": "gitlens:activeFileStatus =~ /tracked/"
  2237. },
  2238. {
  2239. "command": "gitlens.diffLineWithWorking",
  2240. "when": "gitlens:activeFileStatus =~ /blameable/"
  2241. },
  2242. {
  2243. "command": "gitlens.externalDiff",
  2244. "when": "gitlens:enabled"
  2245. },
  2246. {
  2247. "command": "gitlens.externalDiffAll",
  2248. "when": "gitlens:enabled"
  2249. },
  2250. {
  2251. "command": "gitlens.toggleFileBlame",
  2252. "when": "gitlens:activeFileStatus =~ /blameable/"
  2253. },
  2254. {
  2255. "command": "gitlens.clearFileAnnotations",
  2256. "when": "gitlens:activeFileStatus =~ /blameable/ && gitlens:annotationStatus == computed"
  2257. },
  2258. {
  2259. "command": "gitlens.computingFileAnnotations",
  2260. "when": "false"
  2261. },
  2262. {
  2263. "command": "gitlens.toggleFileHeatmap",
  2264. "when": "gitlens:activeFileStatus =~ /blameable/"
  2265. },
  2266. {
  2267. "command": "gitlens.toggleFileRecentChanges",
  2268. "when": "gitlens:activeFileStatus =~ /blameable/"
  2269. },
  2270. {
  2271. "command": "gitlens.toggleLineBlame",
  2272. "when": "gitlens:enabled"
  2273. },
  2274. {
  2275. "command": "gitlens.toggleCodeLens",
  2276. "when": "gitlens:enabled && gitlens:canToggleCodeLens"
  2277. },
  2278. {
  2279. "command": "gitlens.switchMode",
  2280. "when": "gitlens:enabled"
  2281. },
  2282. {
  2283. "command": "gitlens.toggleReviewMode",
  2284. "when": "gitlens:enabled"
  2285. },
  2286. {
  2287. "command": "gitlens.toggleZenMode",
  2288. "when": "gitlens:enabled"
  2289. },
  2290. {
  2291. "command": "gitlens.showCommitSearch",
  2292. "when": "gitlens:enabled"
  2293. },
  2294. {
  2295. "command": "gitlens.showLastQuickPick",
  2296. "when": "gitlens:enabled"
  2297. },
  2298. {
  2299. "command": "gitlens.showQuickCommitDetails",
  2300. "when": "gitlens:activeFileStatus =~ /blameable/"
  2301. },
  2302. {
  2303. "command": "gitlens.showQuickCommitFileDetails",
  2304. "when": "editorTextFocus && gitlens:activeFileStatus =~ /blameable/"
  2305. },
  2306. {
  2307. "command": "gitlens.showQuickFileHistory",
  2308. "when": "gitlens:activeFileStatus =~ /tracked/"
  2309. },
  2310. {
  2311. "command": "gitlens.showQuickBranchHistory",
  2312. "when": "gitlens:enabled"
  2313. },
  2314. {
  2315. "command": "gitlens.showQuickRepoHistory",
  2316. "when": "gitlens:enabled"
  2317. },
  2318. {
  2319. "command": "gitlens.showQuickRepoStatus",
  2320. "when": "gitlens:enabled"
  2321. },
  2322. {
  2323. "command": "gitlens.showQuickStashList",
  2324. "when": "gitlens:enabled"
  2325. },
  2326. {
  2327. "command": "gitlens.copyMessageToClipboard",
  2328. "when": "gitlens:activeFileStatus =~ /blameable/"
  2329. },
  2330. {
  2331. "command": "gitlens.copyRemoteFileUrlToClipboard",
  2332. "when": "gitlens:activeFileStatus =~ /tracked/ && gitlens:activeFileStatus =~ /remotes/"
  2333. },
  2334. {
  2335. "command": "gitlens.copyShaToClipboard",
  2336. "when": "gitlens:activeFileStatus =~ /blameable/"
  2337. },
  2338. {
  2339. "command": "gitlens.closeUnchangedFiles",
  2340. "when": "gitlens:enabled"
  2341. },
  2342. {
  2343. "command": "gitlens.openChangedFiles",
  2344. "when": "gitlens:enabled"
  2345. },
  2346. {
  2347. "command": "gitlens.openBranchesInRemote",
  2348. "when": "gitlens:hasRemotes"
  2349. },
  2350. {
  2351. "command": "gitlens.openBranchInRemote",
  2352. "when": "gitlens:hasRemotes"
  2353. },
  2354. {
  2355. "command": "gitlens.openCommitInRemote",
  2356. "when": "gitlens:activeFileStatus =~ /blameable/ && gitlens:activeFileStatus =~ /remotes/"
  2357. },
  2358. {
  2359. "command": "gitlens.openFileInRemote",
  2360. "when": "gitlens:activeFileStatus =~ /tracked/ && gitlens:activeFileStatus =~ /remotes/"
  2361. },
  2362. {
  2363. "command": "gitlens.openFileRevision",
  2364. "when": "gitlens:activeFileStatus =~ /tracked/"
  2365. },
  2366. {
  2367. "command": "gitlens.openRepoInRemote",
  2368. "when": "gitlens:hasRemotes"
  2369. },
  2370. {
  2371. "command": "gitlens.openWorkingFile",
  2372. "when": "gitlens:activeFileStatus =~ /revision/"
  2373. },
  2374. {
  2375. "command": "gitlens.stashApply",
  2376. "when": "gitlens:enabled"
  2377. },
  2378. {
  2379. "command": "gitlens.stashDelete",
  2380. "when": "false"
  2381. },
  2382. {
  2383. "command": "gitlens.stashSave",
  2384. "when": "gitlens:enabled"
  2385. },
  2386. {
  2387. "command": "gitlens.resetSuppressedWarnings",
  2388. "when": "gitlens:enabled"
  2389. },
  2390. {
  2391. "command": "gitlens.explorers.exploreRepoRevision",
  2392. "when": "false"
  2393. },
  2394. {
  2395. "command": "gitlens.explorers.openChanges",
  2396. "when": "false"
  2397. },
  2398. {
  2399. "command": "gitlens.explorers.openDirectoryDiff",
  2400. "when": "false"
  2401. },
  2402. {
  2403. "command": "gitlens.explorers.openDirectoryDiffWithWorking",
  2404. "when": "false"
  2405. },
  2406. {
  2407. "command": "gitlens.explorers.openChangesWithWorking",
  2408. "when": "false"
  2409. },
  2410. {
  2411. "command": "gitlens.explorers.openFile",
  2412. "when": "false"
  2413. },
  2414. {
  2415. "command": "gitlens.explorers.openFileRevision",
  2416. "when": "false"
  2417. },
  2418. {
  2419. "command": "gitlens.explorers.openFileRevisionInRemote",
  2420. "when": "false"
  2421. },
  2422. {
  2423. "command": "gitlens.explorers.openChangedFiles",
  2424. "when": "false"
  2425. },
  2426. {
  2427. "command": "gitlens.explorers.openChangedFileChanges",
  2428. "when": "false"
  2429. },
  2430. {
  2431. "command": "gitlens.explorers.openChangedFileChangesWithWorking",
  2432. "when": "false"
  2433. },
  2434. {
  2435. "command": "gitlens.explorers.openChangedFileRevisions",
  2436. "when": "false"
  2437. },
  2438. {
  2439. "command": "gitlens.explorers.applyChanges",
  2440. "when": "false"
  2441. },
  2442. {
  2443. "command": "gitlens.explorers.closeRepository",
  2444. "when": "false"
  2445. },
  2446. {
  2447. "command": "gitlens.explorers.compareAncestryWithWorking",
  2448. "when": "false"
  2449. },
  2450. {
  2451. "command": "gitlens.explorers.compareWithHead",
  2452. "when": "false"
  2453. },
  2454. {
  2455. "command": "gitlens.explorers.compareWithRemote",
  2456. "when": "false"
  2457. },
  2458. {
  2459. "command": "gitlens.explorers.compareWithSelected",
  2460. "when": "false"
  2461. },
  2462. {
  2463. "command": "gitlens.explorers.compareWithWorking",
  2464. "when": "false"
  2465. },
  2466. {
  2467. "command": "gitlens.explorers.selectForCompare",
  2468. "when": "false"
  2469. },
  2470. {
  2471. "command": "gitlens.explorers.terminalCheckoutBranch",
  2472. "when": "false"
  2473. },
  2474. {
  2475. "command": "gitlens.explorers.terminalCreateBranch",
  2476. "when": "false"
  2477. },
  2478. {
  2479. "command": "gitlens.explorers.terminalDeleteBranch",
  2480. "when": "false"
  2481. },
  2482. {
  2483. "command": "gitlens.explorers.terminalMergeBranch",
  2484. "when": "false"
  2485. },
  2486. {
  2487. "command": "gitlens.explorers.terminalRebaseBranch",
  2488. "when": "false"
  2489. },
  2490. {
  2491. "command": "gitlens.explorers.terminalRebaseBranchToRemote",
  2492. "when": "false"
  2493. },
  2494. {
  2495. "command": "gitlens.explorers.terminalSquashBranchIntoCommit",
  2496. "when": "false"
  2497. },
  2498. {
  2499. "command": "gitlens.explorers.terminalCheckoutCommit",
  2500. "when": "false"
  2501. },
  2502. {
  2503. "command": "gitlens.explorers.terminalCherryPickCommit",
  2504. "when": "false"
  2505. },
  2506. {
  2507. "command": "gitlens.explorers.terminalPushCommit",
  2508. "when": "false"
  2509. },
  2510. {
  2511. "command": "gitlens.explorers.terminalRebaseCommit",
  2512. "when": "false"
  2513. },
  2514. {
  2515. "command": "gitlens.explorers.terminalResetCommit",
  2516. "when": "false"
  2517. },
  2518. {
  2519. "command": "gitlens.explorers.terminalRevertCommit",
  2520. "when": "false"
  2521. },
  2522. {
  2523. "command": "gitlens.explorers.terminalRemoveRemote",
  2524. "when": "false"
  2525. },
  2526. {
  2527. "command": "gitlens.explorers.terminalCreateTag",
  2528. "when": "false"
  2529. },
  2530. {
  2531. "command": "gitlens.explorers.terminalDeleteTag",
  2532. "when": "false"
  2533. },
  2534. {
  2535. "command": "gitlens.gitExplorer.refresh",
  2536. "when": "false"
  2537. },
  2538. {
  2539. "command": "gitlens.gitExplorer.refreshNode",
  2540. "when": "false"
  2541. },
  2542. {
  2543. "command": "gitlens.gitExplorer.setFilesLayoutToAuto",
  2544. "when": "false"
  2545. },
  2546. {
  2547. "command": "gitlens.gitExplorer.setFilesLayoutToList",
  2548. "when": "false"
  2549. },
  2550. {
  2551. "command": "gitlens.gitExplorer.setFilesLayoutToTree",
  2552. "when": "false"
  2553. },
  2554. {
  2555. "command": "gitlens.gitExplorer.setAutoRefreshToOn",
  2556. "when": "false"
  2557. },
  2558. {
  2559. "command": "gitlens.gitExplorer.setAutoRefreshToOff",
  2560. "when": "false"
  2561. },
  2562. {
  2563. "command": "gitlens.gitExplorer.setRenameFollowingOn",
  2564. "when": "false"
  2565. },
  2566. {
  2567. "command": "gitlens.gitExplorer.setRenameFollowingOff",
  2568. "when": "false"
  2569. },
  2570. {
  2571. "command": "gitlens.gitExplorer.switchToHistoryView",
  2572. "when": "gitlens:enabled && !gitlens:historyExplorer && gitlens:gitExplorer:view == repository"
  2573. },
  2574. {
  2575. "command": "gitlens.gitExplorer.switchToRepositoryView",
  2576. "when": "gitlens:enabled && !gitlens:historyExplorer && gitlens:gitExplorer:view == history"
  2577. },
  2578. {
  2579. "command": "gitlens.gitExplorer.undockHistory",
  2580. "when": "gitlens:enabled && !gitlens:historyExplorer"
  2581. },
  2582. {
  2583. "command": "gitlens.historyExplorer.close",
  2584. "when": "false"
  2585. },
  2586. {
  2587. "command": "gitlens.historyExplorer.dock",
  2588. "when": "gitlens:enabled && gitlens:historyExplorer"
  2589. },
  2590. {
  2591. "command": "gitlens.historyExplorer.refresh",
  2592. "when": "false"
  2593. },
  2594. {
  2595. "command": "gitlens.historyExplorer.refreshNode",
  2596. "when": "false"
  2597. },
  2598. {
  2599. "command": "gitlens.historyExplorer.setRenameFollowingOn",
  2600. "when": "false"
  2601. },
  2602. {
  2603. "command": "gitlens.historyExplorer.setRenameFollowingOff",
  2604. "when": "false"
  2605. },
  2606. {
  2607. "command": "gitlens.resultsExplorer.clearResultsNode",
  2608. "when": "false"
  2609. },
  2610. {
  2611. "command": "gitlens.resultsExplorer.close",
  2612. "when": "false"
  2613. },
  2614. {
  2615. "command": "gitlens.resultsExplorer.refresh",
  2616. "when": "false"
  2617. },
  2618. {
  2619. "command": "gitlens.resultsExplorer.refreshNode",
  2620. "when": "false"
  2621. },
  2622. {
  2623. "command": "gitlens.resultsExplorer.setFilesLayoutToAuto",
  2624. "when": "false"
  2625. },
  2626. {
  2627. "command": "gitlens.resultsExplorer.setFilesLayoutToList",
  2628. "when": "false"
  2629. },
  2630. {
  2631. "command": "gitlens.resultsExplorer.setFilesLayoutToTree",
  2632. "when": "false"
  2633. },
  2634. {
  2635. "command": "gitlens.resultsExplorer.setKeepResultsToOn",
  2636. "when": "false"
  2637. },
  2638. {
  2639. "command": "gitlens.resultsExplorer.setKeepResultsToOff",
  2640. "when": "false"
  2641. },
  2642. {
  2643. "command": "gitlens.resultsExplorer.swapComparision",
  2644. "when": "false"
  2645. }
  2646. ],
  2647. "editor/context": [
  2648. {
  2649. "command": "gitlens.diffLineWithPrevious",
  2650. "when": "editorTextFocus && gitlens:activeFileStatus =~ /blameable/ && config.gitlens.menus.editor.compare",
  2651. "group": "1_gitlens@1"
  2652. },
  2653. {
  2654. "command": "gitlens.diffLineWithWorking",
  2655. "when": "editorTextFocus && gitlens:activeFileStatus =~ /blameable/ && config.gitlens.menus.editor.compare",
  2656. "group": "1_gitlens@2"
  2657. },
  2658. {
  2659. "command": "gitlens.openFileInRemote",
  2660. "when": "editorTextFocus && gitlens:activeFileStatus =~ /remotes/ && config.gitlens.menus.editor.remote",
  2661. "group": "1_gitlens_1@1"
  2662. },
  2663. {
  2664. "command": "gitlens.openCommitInRemote",
  2665. "when": "editorTextFocus && gitlens:activeFileStatus =~ /remotes/ && config.gitlens.menus.editor.remote",
  2666. "group": "1_gitlens_1@2"
  2667. },
  2668. {
  2669. "command": "gitlens.showQuickCommitFileDetails",
  2670. "when": "editorTextFocus && gitlens:activeFileStatus =~ /blameable/ && config.gitlens.menus.editor.details",
  2671. "group": "1_gitlens_1@3"
  2672. },
  2673. {
  2674. "command": "gitlens.showQuickFileHistory",
  2675. "when": "gitlens:activeFileStatus =~ /tracked/ && config.gitlens.menus.editor.history",
  2676. "group": "3_gitlens@1"
  2677. },
  2678. {
  2679. "command": "gitlens.toggleFileBlame",
  2680. "when": "editorTextFocus && gitlens:activeFileStatus =~ /blameable/ && config.gitlens.menus.editor.blame",
  2681. "group": "3_gitlens@2"
  2682. },
  2683. {
  2684. "command": "gitlens.copyShaToClipboard",
  2685. "when": "editorTextFocus && gitlens:activeFileStatus =~ /blameable/ && config.gitlens.menus.editor.clipboard",
  2686. "group": "9_gitlens@1"
  2687. },
  2688. {
  2689. "command": "gitlens.copyMessageToClipboard",
  2690. "when": "editorTextFocus && gitlens:activeFileStatus =~ /blameable/ && config.gitlens.menus.editor.clipboard",
  2691. "group": "9_gitlens@2"
  2692. },
  2693. {
  2694. "command": "gitlens.copyRemoteFileUrlToClipboard",
  2695. "when": "editorTextFocus && gitlens:activeFileStatus =~ /remotes/ && config.gitlens.menus.editor.clipboard",
  2696. "group": "9_gitlens@3"
  2697. }
  2698. ],
  2699. "editor/title": [
  2700. {
  2701. "command": "gitlens.diffWithWorking",
  2702. "when": "gitlens:activeFileStatus =~ /revision/ && resourceScheme != git",
  2703. "group": "navigation@0"
  2704. },
  2705. {
  2706. "command": "gitlens.openWorkingFile",
  2707. "when": "gitlens:activeFileStatus =~ /revision/ && resourceScheme != git",
  2708. "group": "navigation@0"
  2709. },
  2710. {
  2711. "command": "gitlens.openWorkingFile",
  2712. "when": "!gitlens:activeFileStatus =~ /revision/ && resourceScheme != git && isInDiffEditor",
  2713. "group": "navigation@0"
  2714. },
  2715. {
  2716. "command": "gitlens.openWorkingFile",
  2717. "when": "gitlens:activeFileStatus =~ /revision/ && resourceScheme == git && !isInDiffEditor",
  2718. "group": "navigation@0"
  2719. },
  2720. {
  2721. "command": "gitlens.diffWithPrevious",
  2722. "alt": "gitlens.diffWithRevision",
  2723. "when": "!isInDiffEditor && gitlens:activeFileStatus =~ /tracked/ && config.gitlens.menus.editorGroup.compare",
  2724. "group": "navigation@98"
  2725. },
  2726. {
  2727. "command": "gitlens.diffWithPreviousInDiff",
  2728. "alt": "gitlens.diffWithRevision",
  2729. "when": "isInDiffEditor && gitlens:activeFileStatus =~ /tracked/ && config.gitlens.menus.editorGroup.compare",
  2730. "group": "navigation@98"
  2731. },
  2732. {
  2733. "command": "gitlens.diffWithNext",
  2734. "when": "gitlens:activeFileStatus =~ /tracked/ && gitlens:activeFileStatus =~ /tracked/ && gitlens:activeFileStatus =~ /revision/ && config.gitlens.menus.editorGroup.compare",
  2735. "group": "navigation@99"
  2736. },
  2737. {
  2738. "command": "gitlens.toggleFileBlame",
  2739. "alt": "gitlens.toggleFileRecentChanges",
  2740. "when": "gitlens:activeFileStatus =~ /blameable/ && !gitlens:annotationStatus && config.gitlens.menus.editorGroup.blame",
  2741. "group": "navigation@100"
  2742. },
  2743. {
  2744. "command": "gitlens.computingFileAnnotations",
  2745. "when": "gitlens:activeFileStatus =~ /blameable/ && gitlens:annotationStatus == computing && config.gitlens.menus.editorGroup.blame",
  2746. "group": "navigation@100"
  2747. },
  2748. {
  2749. "command": "gitlens.clearFileAnnotations",
  2750. "when": "gitlens:activeFileStatus =~ /blameable/ && gitlens:annotationStatus == computed && config.gitlens.menus.editorGroup.blame",
  2751. "group": "navigation@100"
  2752. },
  2753. {
  2754. "command": "gitlens.openFileInRemote",
  2755. "when": "gitlens:enabled && gitlens:activeFileStatus =~ /remotes/ && config.gitlens.menus.editorGroup.remote",
  2756. "group": "4_gitlens"
  2757. },
  2758. {
  2759. "command": "gitlens.showQuickFileHistory",
  2760. "when": "editorFocus && gitlens:activeFileStatus =~ /tracked/ && config.gitlens.menus.editorGroup.history",
  2761. "group": "4_gitlens"
  2762. }
  2763. ],
  2764. "editor/title/context": [
  2765. {
  2766. "command": "gitlens.openFileInRemote",
  2767. "when": "gitlens:enabled && gitlens:activeFileStatus =~ /remotes/ && config.gitlens.menus.editorTab.remote",
  2768. "group": "2_files@100"
  2769. },
  2770. {
  2771. "command": "gitlens.diffWithPrevious",
  2772. "when": "gitlens:enabled && config.gitlens.menus.editorTab.compare",
  2773. "group": "1_gitlens_1@1"
  2774. },
  2775. {
  2776. "command": "gitlens.diffWithWorking",
  2777. "when": "gitlens:enabled && config.gitlens.menus.editorTab.compare",
  2778. "group": "1_gitlens_1@2"
  2779. },
  2780. {
  2781. "command": "gitlens.showQuickFileHistory",
  2782. "when": "gitlens:enabled && config.gitlens.menus.editorTab.history",
  2783. "group": "1_gitlens_2@1"
  2784. }
  2785. ],
  2786. "explorer/context": [
  2787. {
  2788. "command": "gitlens.openFileInRemote",
  2789. "when": "!explorerResourceIsRoot && !explorerResourceIsFolder && gitlens:enabled && gitlens:hasRemotes && config.gitlens.menus.explorer.remote",
  2790. "group": "navigation@100"
  2791. },
  2792. {
  2793. "command": "gitlens.showQuickFileHistory",
  2794. "when": "!explorerResourceIsRoot && !explorerResourceIsFolder && gitlens:enabled && config.gitlens.menus.explorer.history",
  2795. "group": "1_gitlens_1@1"
  2796. },
  2797. {
  2798. "command": "gitlens.diffWithPrevious",
  2799. "when": "!explorerResourceIsRoot && !explorerResourceIsFolder && gitlens:enabled && config.gitlens.menus.explorer.compare",
  2800. "group": "3_compare@1"
  2801. },
  2802. {
  2803. "command": "gitlens.copyRemoteFileUrlToClipboard",
  2804. "when": "!explorerResourceIsRoot && !explorerResourceIsFolder && gitlens:enabled && gitlens:hasRemotes && config.gitlens.menus.explorer.remote",
  2805. "group": "9_gitlens@1"
  2806. }
  2807. ],
  2808. "scm/resourceGroup/context": [
  2809. {
  2810. "command": "gitlens.openChangedFiles",
  2811. "when": "gitlens:enabled",
  2812. "group": "2_gitlens@1"
  2813. },
  2814. {
  2815. "command": "gitlens.closeUnchangedFiles",
  2816. "when": "gitlens:enabled",
  2817. "group": "2_gitlens@2"
  2818. },
  2819. {
  2820. "command": "gitlens.externalDiff",
  2821. "when": "gitlens:enabled",
  2822. "group": "2_gitlens@3"
  2823. },
  2824. {
  2825. "command": "gitlens.externalDiffAll",
  2826. "when": "gitlens:enabled",
  2827. "group": "2_gitlens@4"
  2828. },
  2829. {
  2830. "command": "gitlens.stashSave",
  2831. "when": "gitlens:enabled",
  2832. "group": "3_gitlens@1"
  2833. }
  2834. ],
  2835. "scm/resourceState/context": [
  2836. {
  2837. "command": "gitlens.openFileInRemote",
  2838. "when": "gitlens:enabled && gitlens:hasRemotes",
  2839. "group": "navigation"
  2840. },
  2841. {
  2842. "command": "gitlens.externalDiff",
  2843. "when": "gitlens:enabled",
  2844. "group": "navigation"
  2845. },
  2846. {
  2847. "command": "gitlens.diffWithRevision",
  2848. "when": "gitlens:enabled",
  2849. "group": "1_gitlens@1"
  2850. },
  2851. {
  2852. "command": "gitlens.diffWithBranch",
  2853. "when": "gitlens:enabled",
  2854. "group": "1_gitlens@2"
  2855. },
  2856. {
  2857. "command": "gitlens.showQuickFileHistory",
  2858. "when": "gitlens:enabled",
  2859. "group": "1_gitlens_1@1"
  2860. },
  2861. {
  2862. "command": "gitlens.stashSave",
  2863. "when": "gitlens:enabled",
  2864. "group": "2_gitlens@1"
  2865. },
  2866. {
  2867. "command": "gitlens.copyRemoteFileUrlToClipboard",
  2868. "when": "gitlens:enabled && gitlens:hasRemotes",
  2869. "group": "9_gitlens@1"
  2870. }
  2871. ],
  2872. "view/title": [
  2873. {
  2874. "command": "gitlens.showCommitSearch",
  2875. "when": "view =~ /^gitlens.gitExplorer:/",
  2876. "group": "navigation@1"
  2877. },
  2878. {
  2879. "command": "gitlens.gitExplorer.undockHistory",
  2880. "when": "view =~ /^gitlens.gitExplorer:/ && gitlens:gitExplorer:view == history && !gitlens:historyExplorer",
  2881. "group": "navigation@2"
  2882. },
  2883. {
  2884. "command": "gitlens.gitExplorer.switchToHistoryView",
  2885. "when": "view =~ /^gitlens.gitExplorer:/ && !gitlens:historyExplorer && gitlens:gitExplorer:view == repository",
  2886. "group": "navigation@3"
  2887. },
  2888. {
  2889. "command": "gitlens.gitExplorer.switchToRepositoryView",
  2890. "when": "view =~ /^gitlens.gitExplorer:/ && !gitlens:historyExplorer && gitlens:gitExplorer:view == history",
  2891. "group": "navigation@3"
  2892. },
  2893. {
  2894. "command": "gitlens.gitExplorer.refresh",
  2895. "when": "view =~ /^gitlens.gitExplorer:/",
  2896. "group": "navigation@8"
  2897. },
  2898. {
  2899. "command": "gitlens.gitExplorer.setFilesLayoutToAuto",
  2900. "when": "view =~ /^gitlens.gitExplorer:/ && gitlens:gitExplorer:view == repository",
  2901. "group": "1_gitlens"
  2902. },
  2903. {
  2904. "command": "gitlens.gitExplorer.setFilesLayoutToList",
  2905. "when": "view =~ /^gitlens.gitExplorer:/ && gitlens:gitExplorer:view == repository",
  2906. "group": "1_gitlens"
  2907. },
  2908. {
  2909. "command": "gitlens.gitExplorer.setFilesLayoutToTree",
  2910. "when": "view =~ /^gitlens.gitExplorer:/ && gitlens:gitExplorer:view == repository",
  2911. "group": "1_gitlens"
  2912. },
  2913. {
  2914. "command": "gitlens.gitExplorer.setAutoRefreshToOn",
  2915. "when": "view =~ /^gitlens.gitExplorer:/ && config.gitlens.gitExplorer.autoRefresh && !gitlens:gitExplorer:autoRefresh",
  2916. "group": "2_gitlens"
  2917. },
  2918. {
  2919. "command": "gitlens.gitExplorer.setAutoRefreshToOff",
  2920. "when": "view =~ /^gitlens.gitExplorer:/ && config.gitlens.gitExplorer.autoRefresh && gitlens:gitExplorer:autoRefresh",
  2921. "group": "2_gitlens"
  2922. },
  2923. {
  2924. "command": "gitlens.gitExplorer.setRenameFollowingOn",
  2925. "when": "view =~ /^gitlens.gitExplorer:/ && gitlens:gitExplorer:view == history && !config.gitlens.advanced.fileHistoryFollowsRenames",
  2926. "group": "2_gitlens_1"
  2927. },
  2928. {
  2929. "command": "gitlens.gitExplorer.setRenameFollowingOff",
  2930. "when": "view =~ /^gitlens.gitExplorer:/ && gitlens:gitExplorer:view == history && config.gitlens.advanced.fileHistoryFollowsRenames",
  2931. "group": "2_gitlens_1"
  2932. },
  2933. {
  2934. "command": "gitlens.historyExplorer.refresh",
  2935. "when": "view =~ /^gitlens.historyExplorer:/",
  2936. "group": "navigation@1"
  2937. },
  2938. {
  2939. "command": "gitlens.historyExplorer.dock",
  2940. "when": "view =~ /^gitlens.historyExplorer:/ && gitlens:gitExplorer",
  2941. "group": "navigation@9"
  2942. },
  2943. {
  2944. "command": "gitlens.historyExplorer.close",
  2945. "when": "view =~ /^gitlens.historyExplorer:/ && !gitlens:gitExplorer",
  2946. "group": "navigation@9"
  2947. },
  2948. {
  2949. "command": "gitlens.historyExplorer.setRenameFollowingOn",
  2950. "when": "view =~ /^gitlens.historyExplorer:/ && !config.gitlens.advanced.fileHistoryFollowsRenames",
  2951. "group": "1_gitlens"
  2952. },
  2953. {
  2954. "command": "gitlens.historyExplorer.setRenameFollowingOff",
  2955. "when": "view =~ /^gitlens.historyExplorer:/ && config.gitlens.advanced.fileHistoryFollowsRenames",
  2956. "group": "1_gitlens"
  2957. },
  2958. {
  2959. "command": "gitlens.showCommitSearch",
  2960. "when": "view =~ /^gitlens.resultsExplorer:/",
  2961. "group": "navigation@1"
  2962. },
  2963. {
  2964. "command": "gitlens.resultsExplorer.setKeepResultsToOn",
  2965. "when": "view =~ /^gitlens.resultsExplorer:/ && !gitlens:resultsExplorer:keepResults",
  2966. "group": "navigation@2"
  2967. },
  2968. {
  2969. "command": "gitlens.resultsExplorer.setKeepResultsToOff",
  2970. "when": "view =~ /^gitlens.resultsExplorer:/ && gitlens:resultsExplorer:keepResults",
  2971. "group": "navigation@2"
  2972. },
  2973. {
  2974. "command": "gitlens.resultsExplorer.refresh",
  2975. "when": "view =~ /^gitlens.resultsExplorer:/",
  2976. "group": "navigation@3"
  2977. },
  2978. {
  2979. "command": "gitlens.resultsExplorer.close",
  2980. "when": "view =~ /^gitlens.resultsExplorer:/",
  2981. "group": "navigation@9"
  2982. },
  2983. {
  2984. "command": "gitlens.resultsExplorer.setFilesLayoutToAuto",
  2985. "when": "view =~ /^gitlens.resultsExplorer:/",
  2986. "group": "1_gitlens"
  2987. },
  2988. {
  2989. "command": "gitlens.resultsExplorer.setFilesLayoutToList",
  2990. "when": "view =~ /^gitlens.resultsExplorer:/",
  2991. "group": "1_gitlens"
  2992. },
  2993. {
  2994. "command": "gitlens.resultsExplorer.setFilesLayoutToTree",
  2995. "when": "view =~ /^gitlens.resultsExplorer:/",
  2996. "group": "1_gitlens"
  2997. }
  2998. ],
  2999. "view/item/context": [
  3000. {
  3001. "command": "gitlens.openBranchesInRemote",
  3002. "when": "viewItem == gitlens:branches:remotes",
  3003. "group": "1_gitlens@1"
  3004. },
  3005. {
  3006. "command": "gitlens.openBranchInRemote",
  3007. "when": "viewItem =~ /gitlens:(branch\\b(.*?:tracking|:remote))/",
  3008. "group": "1_gitlens@1"
  3009. },
  3010. {
  3011. "command": "gitlens.explorers.compareWithRemote",
  3012. "when": "viewItem =~ /gitlens:(branch\\b.*?:tracking)/",
  3013. "group": "7_gitlens@1"
  3014. },
  3015. {
  3016. "command": "gitlens.explorers.compareWithHead",
  3017. "when": "viewItem =~ /gitlens:(branch(?!:current)|commit|stash|tag)\\b/",
  3018. "group": "7_gitlens@2"
  3019. },
  3020. {
  3021. "command": "gitlens.explorers.compareWithWorking",
  3022. "when": "viewItem =~ /gitlens:(branch(?!:current)|commit|stash|tag)\\b/",
  3023. "group": "7_gitlens@3"
  3024. },
  3025. {
  3026. "command": "gitlens.explorers.compareAncestryWithWorking",
  3027. "when": "viewItem =~ /gitlens:branch(?!:current)\\b/",
  3028. "group": "7_gitlens@4"
  3029. },
  3030. {
  3031. "command": "gitlens.explorers.compareWithSelected",
  3032. "when": "viewItem =~ /gitlens:(branch|commit|stash|tag|file:)\\b/ && gitlens:explorers:canCompare",
  3033. "group": "7_gitlens_@1"
  3034. },
  3035. {
  3036. "command": "gitlens.explorers.selectForCompare",
  3037. "when": "viewItem =~ /gitlens:(branch|commit|stash|tag|file:)\\b/",
  3038. "group": "7_gitlens_@2"
  3039. },
  3040. {
  3041. "command": "gitlens.explorers.openDirectoryDiffWithWorking",
  3042. "when": "viewItem =~ /gitlens:(branch|tag)\\b/",
  3043. "group": "7_gitlens_more@2"
  3044. },
  3045. {
  3046. "command": "gitlens.explorers.terminalCheckoutBranch",
  3047. "when": "viewItem =~ /gitlens:(branch\\b(?!:current))/",
  3048. "group": "8_gitlens@1"
  3049. },
  3050. {
  3051. "command": "gitlens.explorers.terminalRebaseBranchToRemote",
  3052. "when": "viewItem =~ /gitlens:(branch:current:tracking|status:upstream)\\b/",
  3053. "group": "8_gitlens@1"
  3054. },
  3055. {
  3056. "command": "gitlens.explorers.terminalMergeBranch",
  3057. "when": "viewItem =~ /gitlens:(branch\\b(?!:current))/",
  3058. "group": "8_gitlens@2"
  3059. },
  3060. {
  3061. "command": "gitlens.explorers.terminalRebaseBranch",
  3062. "when": "viewItem =~ /gitlens:(branch\\b(?!:current))/",
  3063. "group": "8_gitlens@3"
  3064. },
  3065. {
  3066. "command": "gitlens.explorers.terminalSquashBranchIntoCommit",
  3067. "when": "viewItem =~ /gitlens:(branch\\b(?!:current))/",
  3068. "group": "8_gitlens@4"
  3069. },
  3070. {
  3071. "command": "gitlens.explorers.terminalCreateBranch",
  3072. "when": "viewItem =~ /gitlens:(branch|commit|status:upstream|tag)\\b/",
  3073. "group": "8_gitlens@5"
  3074. },
  3075. {
  3076. "command": "gitlens.explorers.terminalDeleteBranch",
  3077. "when": "viewItem =~ /gitlens:(branch\\b(?!:current))/",
  3078. "group": "8_gitlens@6"
  3079. },
  3080. {
  3081. "command": "gitlens.explorers.terminalCreateTag",
  3082. "when": "viewItem =~ /gitlens:(branch|commit|status:upstream)\\b/",
  3083. "group": "8_gitlens@7"
  3084. },
  3085. {
  3086. "command": "gitlens.openCommitInRemote",
  3087. "when": "viewItem =~ /gitlens:commit\\b/ && gitlens:hasRemotes",
  3088. "group": "1_gitlens@1"
  3089. },
  3090. {
  3091. "command": "gitlens.explorers.openChangedFileChanges",
  3092. "when": "viewItem =~ /gitlens:(commit|stash)\\b/",
  3093. "group": "2_gitlens@1"
  3094. },
  3095. {
  3096. "command": "gitlens.explorers.openChangedFileChangesWithWorking",
  3097. "when": "viewItem =~ /gitlens:(commit|stash)\\b/",
  3098. "group": "2_gitlens@2"
  3099. },
  3100. {
  3101. "command": "gitlens.explorers.openChangedFiles",
  3102. "when": "viewItem =~ /gitlens:(commit|stash)\\b/",
  3103. "group": "3_gitlens@1"
  3104. },
  3105. {
  3106. "command": "gitlens.explorers.openChangedFileRevisions",
  3107. "when": "viewItem =~ /gitlens:(commit|stash)\\b/",
  3108. "group": "3_gitlens@2"
  3109. },
  3110. {
  3111. "command": "gitlens.copyShaToClipboard",
  3112. "when": "viewItem =~ /gitlens:(file:)?commit\\b/",
  3113. "group": "5_gitlens@1"
  3114. },
  3115. {
  3116. "command": "gitlens.copyMessageToClipboard",
  3117. "when": "viewItem =~ /gitlens:(commit|stash|file:commit)\\b/",
  3118. "group": "5_gitlens@2"
  3119. },
  3120. {
  3121. "command": "gitlens.showQuickCommitDetails",
  3122. "when": "viewItem =~ /gitlens:commit\\b/",
  3123. "group": "5_gitlens_1@1"
  3124. },
  3125. {
  3126. "command": "gitlens.explorers.terminalCherryPickCommit",
  3127. "when": "viewItem == gitlens:commit",
  3128. "group": "8_gitlens@1"
  3129. },
  3130. {
  3131. "command": "gitlens.explorers.terminalPushCommit",
  3132. "when": "viewItem == gitlens:commit:current",
  3133. "group": "8_gitlens@2"
  3134. },
  3135. {
  3136. "command": "gitlens.explorers.terminalRevertCommit",
  3137. "when": "viewItem == gitlens:commit:current",
  3138. "group": "8_gitlens@3"
  3139. },
  3140. {
  3141. "command": "gitlens.explorers.terminalCheckoutCommit",
  3142. "when": "viewItem =~ /gitlens:commit\\b/",
  3143. "group": "8_gitlens@4"
  3144. },
  3145. {
  3146. "command": "gitlens.explorers.terminalRebaseCommit",
  3147. "when": "viewItem =~ /gitlens:commit\\b/",
  3148. "group": "8_gitlens@5"
  3149. },
  3150. {
  3151. "command": "gitlens.explorers.terminalResetCommit",
  3152. "when": "viewItem =~ /gitlens:commit\\b/",
  3153. "group": "8_gitlens@6"
  3154. },
  3155. {
  3156. "command": "gitlens.explorers.openFile",
  3157. "when": "viewItem =~ /gitlens:file\\b/",
  3158. "group": "inline"
  3159. },
  3160. {
  3161. "command": "gitlens.explorers.openChanges",
  3162. "when": "viewItem =~ /gitlens:file\\b/",
  3163. "group": "2_gitlens@1"
  3164. },
  3165. {
  3166. "command": "gitlens.explorers.openChangesWithWorking",
  3167. "when": "viewItem =~ /gitlens:file\\b/",
  3168. "group": "2_gitlens@2"
  3169. },
  3170. {
  3171. "command": "gitlens.explorers.openFile",
  3172. "when": "viewItem =~ /gitlens:(file|history-file|status:file)\\b/",
  3173. "group": "3_gitlens@1"
  3174. },
  3175. {
  3176. "command": "gitlens.explorers.openFileRevision",
  3177. "when": "viewItem =~ /gitlens:file\\b/",
  3178. "group": "3_gitlens@2"
  3179. },
  3180. {
  3181. "command": "gitlens.openFileInRemote",
  3182. "when": "viewItem =~ /gitlens:file\\b/ && gitlens:hasRemotes",
  3183. "group": "4_gitlens@1"
  3184. },
  3185. {
  3186. "command": "gitlens.copyRemoteFileUrlToClipboard",
  3187. "when": "viewItem =~ /gitlens:file\\b/ && gitlens:hasRemotes",
  3188. "group": "5_gitlens@3"
  3189. },
  3190. {
  3191. "command": "gitlens.explorers.openFileRevisionInRemote",
  3192. "when": "viewItem == gitlens:file:commit && gitlens:hasRemotes",
  3193. "group": "4_gitlens@2"
  3194. },
  3195. {
  3196. "command": "gitlens.openFileInRemote",
  3197. "when": "viewItem =~ /gitlens:(history-file|status:file)\\b/ && gitlens:hasRemotes",
  3198. "group": "3_gitlens@2"
  3199. },
  3200. {
  3201. "command": "gitlens.copyRemoteFileUrlToClipboard",
  3202. "when": "viewItem =~ /gitlens:(history-file|status:file)\\b/ && gitlens:hasRemotes",
  3203. "group": "5_gitlens@3"
  3204. },
  3205. {
  3206. "command": "gitlens.showQuickFileHistory",
  3207. "when": "viewItem =~ /gitlens:file\\b/ && gitlens:gitExplorer:view == repository",
  3208. "group": "8_gitlens@1"
  3209. },
  3210. {
  3211. "command": "gitlens.showQuickCommitFileDetails",
  3212. "when": "viewItem =~ /gitlens:file\\b(?!:stash)/",
  3213. "group": "8_gitlens@2"
  3214. },
  3215. {
  3216. "command": "gitlens.explorers.applyChanges",
  3217. "when": "viewItem =~ /gitlens:file:(commit|status)\\b/",
  3218. "group": "5_gitlens_1@1"
  3219. },
  3220. {
  3221. "command": "gitlens.explorers.applyChanges",
  3222. "when": "viewItem == gitlens:file:stash",
  3223. "group": "1_gitlens@1"
  3224. },
  3225. {
  3226. "command": "gitlens.openRepoInRemote",
  3227. "when": "viewItem == gitlens:status && gitlens:hasRemotes",
  3228. "group": "1_gitlens@1"
  3229. },
  3230. {
  3231. "command": "gitlens.explorers.closeRepository",
  3232. "when": "viewItem == gitlens:status",
  3233. "group": "8_gitlens@1"
  3234. },
  3235. {
  3236. "command": "gitlens.openBranchesInRemote",
  3237. "when": "viewItem == gitlens:remote",
  3238. "group": "1_gitlens@1"
  3239. },
  3240. {
  3241. "command": "gitlens.openRepoInRemote",
  3242. "when": "viewItem == gitlens:remote",
  3243. "group": "1_gitlens@2"
  3244. },
  3245. {
  3246. "command": "gitlens.explorers.terminalRemoveRemote",
  3247. "when": "viewItem == gitlens:remote",
  3248. "group": "8_gitlens@1"
  3249. },
  3250. {
  3251. "command": "gitlens.explorers.exploreRepoRevision",
  3252. "when": "viewItem =~ /gitlens:(branch|commit|file:(commit|status)|stash|tag)\\b/",
  3253. "group": "7_gitlens_more@1"
  3254. },
  3255. {
  3256. "command": "gitlens.openRepoInRemote",
  3257. "when": "viewItem == gitlens:repository && gitlens:hasRemotes",
  3258. "group": "1_gitlens@1"
  3259. },
  3260. {
  3261. "command": "gitlens.explorers.closeRepository",
  3262. "when": "viewItem == gitlens:repository",
  3263. "group": "8_gitlens@1"
  3264. },
  3265. {
  3266. "command": "gitlens.resultsExplorer.swapComparision",
  3267. "when": "viewItem == gitlens:results:comparison",
  3268. "group": "inline@1"
  3269. },
  3270. {
  3271. "command": "gitlens.resultsExplorer.clearResultsNode",
  3272. "when": "viewItem =~ /gitlens:results\\b(?!:(commits|files))/",
  3273. "group": "inline@2"
  3274. },
  3275. {
  3276. "command": "gitlens.resultsExplorer.clearResultsNode",
  3277. "when": "viewItem =~ /gitlens:results\\b(?!:(commits|files))/",
  3278. "group": "1_gitlens@1"
  3279. },
  3280. {
  3281. "command": "gitlens.resultsExplorer.swapComparision",
  3282. "when": "viewItem == gitlens:results:comparison",
  3283. "group": "1_gitlens@2"
  3284. },
  3285. {
  3286. "command": "gitlens.explorers.openDirectoryDiff",
  3287. "when": "viewItem == gitlens:results:comparison",
  3288. "group": "7_gitlens@1"
  3289. },
  3290. {
  3291. "command": "gitlens.stashSave",
  3292. "when": "viewItem == gitlens:stashes",
  3293. "group": "1_gitlens@1"
  3294. },
  3295. {
  3296. "command": "gitlens.stashApply",
  3297. "when": "viewItem == gitlens:stash",
  3298. "group": "1_gitlens@1"
  3299. },
  3300. {
  3301. "command": "gitlens.stashDelete",
  3302. "when": "viewItem == gitlens:stash",
  3303. "group": "1_gitlens@2"
  3304. },
  3305. {
  3306. "command": "gitlens.explorers.terminalDeleteTag",
  3307. "when": "viewItem == gitlens:tag",
  3308. "group": "8_gitlens"
  3309. },
  3310. {
  3311. "command": "gitlens.gitExplorer.refreshNode",
  3312. "when": "view =~ /^gitlens.gitExplorer:/ && viewItem =~ /gitlens:(?!file\\b)/",
  3313. "group": "9_gitlens@1"
  3314. },
  3315. {
  3316. "command": "gitlens.resultsExplorer.refreshNode",
  3317. "when": "view =~ /^gitlens.resultsExplorer:/ && viewItem =~ /gitlens:(?!file\\b)/",
  3318. "group": "9_gitlens@1"
  3319. },
  3320. {
  3321. "command": "gitlens.historyExplorer.refreshNode",
  3322. "when": "view =~ /^gitlens.historyExplorer:/ && viewItem =~ /gitlens:(?!file\\b)/",
  3323. "group": "9_gitlens@1"
  3324. }
  3325. ]
  3326. },
  3327. "keybindings": [
  3328. {
  3329. "command": "gitlens.key.left",
  3330. "key": "alt+left",
  3331. "when": "gitlens:key:left"
  3332. },
  3333. {
  3334. "command": "gitlens.key.right",
  3335. "key": "alt+right",
  3336. "when": "gitlens:key:right"
  3337. },
  3338. {
  3339. "command": "gitlens.key.,",
  3340. "key": "alt+,",
  3341. "when": "gitlens:key:,"
  3342. },
  3343. {
  3344. "command": "gitlens.key..",
  3345. "key": "alt+.",
  3346. "when": "gitlens:key:."
  3347. },
  3348. {
  3349. "command": "gitlens.key.escape",
  3350. "key": "escape",
  3351. "when": "gitlens:key:escape && editorTextFocus && !findWidgetVisible && !renameInputVisible && !suggestWidgetVisible && !isInEmbeddedEditor"
  3352. },
  3353. {
  3354. "command": "gitlens.toggleFileBlame",
  3355. "key": "alt+b",
  3356. "when": "gitlens:keymap == alternate && editorTextFocus && gitlens:activeFileStatus =~ /blameable/"
  3357. },
  3358. {
  3359. "command": "gitlens.toggleCodeLens",
  3360. "key": "shift+alt+b",
  3361. "when": "gitlens:keymap == alternate && editorTextFocus && gitlens:enabled && gitlens:canToggleCodeLens"
  3362. },
  3363. {
  3364. "command": "gitlens.showLastQuickPick",
  3365. "key": "alt+-",
  3366. "when": "gitlens:keymap == alternate && gitlens:enabled"
  3367. },
  3368. {
  3369. "command": "gitlens.showCommitSearch",
  3370. "key": "alt+/",
  3371. "when": "gitlens:keymap == alternate && gitlens:enabled"
  3372. },
  3373. {
  3374. "command": "gitlens.showQuickFileHistory",
  3375. "key": "alt+h",
  3376. "when": "gitlens:keymap == alternate && gitlens:enabled"
  3377. },
  3378. {
  3379. "command": "gitlens.showQuickRepoHistory",
  3380. "key": "shift+alt+h",
  3381. "when": "gitlens:keymap == alternate && gitlens:enabled"
  3382. },
  3383. {
  3384. "command": "gitlens.showQuickRepoStatus",
  3385. "key": "alt+s",
  3386. "when": "gitlens:keymap == alternate && gitlens:enabled"
  3387. },
  3388. {
  3389. "command": "gitlens.showQuickCommitFileDetails",
  3390. "key": "alt+c",
  3391. "when": "gitlens:keymap == alternate && editorTextFocus && gitlens:enabled"
  3392. },
  3393. {
  3394. "command": "gitlens.diffWithNext",
  3395. "key": "alt+.",
  3396. "when": "gitlens:keymap == alternate && editorTextFocus && gitlens:activeFileStatus =~ /tracked/"
  3397. },
  3398. {
  3399. "command": "gitlens.diffLineWithPrevious",
  3400. "key": "shift+alt+,",
  3401. "when": "gitlens:keymap == alternate && editorTextFocus && gitlens:activeFileStatus =~ /tracked/"
  3402. },
  3403. {
  3404. "command": "gitlens.diffWithPrevious",
  3405. "key": "alt+,",
  3406. "when": "gitlens:keymap == alternate && editorTextFocus && !isInDiffEditor && gitlens:activeFileStatus =~ /tracked/"
  3407. },
  3408. {
  3409. "command": "gitlens.diffWithPreviousInDiff",
  3410. "key": "alt+,",
  3411. "when": "gitlens:keymap == alternate && isInDiffEditor && gitlens:activeFileStatus =~ /tracked/"
  3412. },
  3413. {
  3414. "command": "gitlens.diffLineWithWorking",
  3415. "key": "alt+w",
  3416. "when": "gitlens:keymap == alternate && editorTextFocus && gitlens:activeFileStatus =~ /tracked/"
  3417. },
  3418. {
  3419. "command": "gitlens.diffWithWorking",
  3420. "key": "shift+alt+w",
  3421. "when": "gitlens:keymap == alternate && editorTextFocus && gitlens:activeFileStatus =~ /tracked/"
  3422. },
  3423. {
  3424. "command": "gitlens.toggleFileBlame",
  3425. "key": "ctrl+shift+g b",
  3426. "mac": "cmd+alt+g b",
  3427. "when": "gitlens:keymap == chorded && editorTextFocus && gitlens:activeFileStatus =~ /blameable/"
  3428. },
  3429. {
  3430. "command": "gitlens.toggleCodeLens",
  3431. "key": "ctrl+shift+g shift+b",
  3432. "mac": "cmd+alt+g shift+b",
  3433. "when": "gitlens:keymap == chorded && editorTextFocus && gitlens:enabled && gitlens:canToggleCodeLens"
  3434. },
  3435. {
  3436. "command": "gitlens.showLastQuickPick",
  3437. "key": "ctrl+shift+g -",
  3438. "mac": "cmd+alt+g -",
  3439. "when": "gitlens:keymap == chorded && gitlens:enabled"
  3440. },
  3441. {
  3442. "command": "gitlens.showCommitSearch",
  3443. "key": "ctrl+shift+g /",
  3444. "mac": "cmd+alt+g /",
  3445. "when": "gitlens:keymap == chorded && gitlens:enabled"
  3446. },
  3447. {
  3448. "command": "gitlens.showQuickFileHistory",
  3449. "key": "ctrl+shift+g h",
  3450. "mac": "cmd+alt+g h",
  3451. "when": "gitlens:keymap == chorded && gitlens:enabled"
  3452. },
  3453. {
  3454. "command": "gitlens.showQuickRepoHistory",
  3455. "key": "ctrl+shift+g shift+h",
  3456. "mac": "cmd+alt+g shift+h",
  3457. "when": "gitlens:keymap == chorded && gitlens:enabled"
  3458. },
  3459. {
  3460. "command": "gitlens.showQuickRepoStatus",
  3461. "key": "ctrl+shift+g s",
  3462. "mac": "cmd+alt+g s",
  3463. "when": "gitlens:keymap == chorded && gitlens:enabled"
  3464. },
  3465. {
  3466. "command": "gitlens.showQuickCommitFileDetails",
  3467. "key": "ctrl+shift+g c",
  3468. "mac": "cmd+alt+g c",
  3469. "when": "gitlens:keymap == chorded && editorTextFocus && gitlens:enabled"
  3470. },
  3471. {
  3472. "command": "gitlens.diffWithNext",
  3473. "key": "ctrl+shift+g .",
  3474. "mac": "cmd+alt+g .",
  3475. "when": "gitlens:keymap == chorded && editorTextFocus && gitlens:activeFileStatus =~ /tracked/"
  3476. },
  3477. {
  3478. "command": "gitlens.diffLineWithPrevious",
  3479. "key": "ctrl+shift+g shift+,",
  3480. "mac": "cmd+alt+g shift+,",
  3481. "when": "gitlens:keymap == chorded && editorTextFocus && gitlens:activeFileStatus =~ /tracked/"
  3482. },
  3483. {
  3484. "command": "gitlens.diffWithPrevious",
  3485. "key": "ctrl+shift+g ,",
  3486. "mac": "cmd+alt+g ,",
  3487. "when": "gitlens:keymap == chorded && editorTextFocus && !isInDiffEditor && gitlens:activeFileStatus =~ /tracked/"
  3488. },
  3489. {
  3490. "command": "gitlens.diffWithPreviousInDiff",
  3491. "key": "ctrl+shift+g ,",
  3492. "mac": "cmd+alt+g ,",
  3493. "when": "gitlens:keymap == chorded && isInDiffEditor && gitlens:activeFileStatus =~ /tracked/"
  3494. },
  3495. {
  3496. "command": "gitlens.diffLineWithWorking",
  3497. "key": "ctrl+shift+g w",
  3498. "mac": "cmd+alt+g w",
  3499. "when": "gitlens:keymap == chorded && editorTextFocus && gitlens:activeFileStatus =~ /tracked/"
  3500. },
  3501. {
  3502. "command": "gitlens.diffWithWorking",
  3503. "key": "ctrl+shift+g shift+w",
  3504. "mac": "cmd+alt+g shift+w",
  3505. "when": "gitlens:keymap == chorded && editorTextFocus && gitlens:activeFileStatus =~ /tracked/"
  3506. },
  3507. {
  3508. "command": "workbench.view.scm",
  3509. "key": "ctrl+shift+g g",
  3510. "mac": "ctrl+shift+g",
  3511. "when": "gitlens:keymap == chorded && gitlens:enabled"
  3512. }
  3513. ],
  3514. "viewsContainers": {
  3515. "activitybar": [
  3516. {
  3517. "id": "gitlens",
  3518. "title": "GitLens",
  3519. "icon": "images/gitlens-activitybar.svg"
  3520. }
  3521. ]
  3522. },
  3523. "views": {
  3524. "gitlens": [
  3525. {
  3526. "id": "gitlens.gitExplorer:gitlens",
  3527. "name": "Explorer",
  3528. "when": "gitlens:enabled && gitlens:gitExplorer == gitlens"
  3529. },
  3530. {
  3531. "id": "gitlens.historyExplorer:gitlens",
  3532. "name": "File History",
  3533. "when": "gitlens:enabled && gitlens:historyExplorer == gitlens"
  3534. },
  3535. {
  3536. "id": "gitlens.resultsExplorer:gitlens",
  3537. "name": "Results",
  3538. "when": "gitlens:enabled && gitlens:resultsExplorer == gitlens"
  3539. }
  3540. ],
  3541. "explorer": [
  3542. {
  3543. "id": "gitlens.gitExplorer:explorer",
  3544. "name": "GitLens",
  3545. "when": "gitlens:enabled && gitlens:gitExplorer == explorer"
  3546. },
  3547. {
  3548. "id": "gitlens.historyExplorer:explorer",
  3549. "name": "GitLens File History",
  3550. "when": "gitlens:enabled && gitlens:historyExplorer == explorer"
  3551. },
  3552. {
  3553. "id": "gitlens.resultsExplorer:explorer",
  3554. "name": "GitLens Results",
  3555. "when": "gitlens:enabled && gitlens:resultsExplorer == explorer"
  3556. }
  3557. ],
  3558. "scm": [
  3559. {
  3560. "id": "gitlens.gitExplorer:scm",
  3561. "name": "GitLens",
  3562. "when": "gitlens:enabled && gitlens:gitExplorer == scm"
  3563. },
  3564. {
  3565. "id": "gitlens.historyExplorer:scm",
  3566. "name": "GitLens File History",
  3567. "when": "gitlens:enabled && gitlens:historyExplorer == scm"
  3568. },
  3569. {
  3570. "id": "gitlens.resultsExplorer:scm",
  3571. "name": "GitLens Results",
  3572. "when": "gitlens:enabled && gitlens:resultsExplorer == scm"
  3573. }
  3574. ]
  3575. }
  3576. },
  3577. "scripts": {
  3578. "build": "webpack --env.development",
  3579. "bundle": "webpack --env.production",
  3580. "clean": "git clean -Xdf",
  3581. "lint": "tslint --project tsconfig.json && tslint --project ui.tsconfig.json",
  3582. "pack": "vsce package",
  3583. "pretty": "prettier --config .prettierrc --loglevel warn --write \"./**/*.{ts,md,json}\" && tslint --project tsconfig.json --fix && tslint --project ui.tsconfig.json --fix",
  3584. "pub": "vsce publish",
  3585. "rebuild": "npm run reset && npm run build",
  3586. "reset": "npm run clean && npm install --no-save",
  3587. "watch": "webpack --watch --env.development",
  3588. "ui:optimize": "webpack --config-name ui --env.optimizeImages",
  3589. "ui:watch": "webpack --watch --config-name ui --env.development",
  3590. "postinstall": "node ./node_modules/vscode/bin/install",
  3591. "vscode:prepublish": "npm run reset && npm run bundle"
  3592. },
  3593. "dependencies": {
  3594. "clipboardy": "1.2.3",
  3595. "date-fns": "1.29.0",
  3596. "iconv-lite": "0.4.24",
  3597. "lodash.debounce": "4.0.8",
  3598. "lodash.once": "4.1.1",
  3599. "tslib": "1.9.3"
  3600. },
  3601. "devDependencies": {
  3602. "@types/clipboardy": "1.1.0",
  3603. "@types/node": "8.10.29",
  3604. "clean-webpack-plugin": "0.1.19",
  3605. "css-loader": "1.0.0",
  3606. "html-webpack-inline-source-plugin": "0.0.10",
  3607. "html-webpack-plugin": "3.2.0",
  3608. "husky": "0.14.3",
  3609. "imagemin-webpack-plugin": "2.2.0",
  3610. "mini-css-extract-plugin": "0.4.2",
  3611. "node-sass": "4.9.3",
  3612. "prettier": "1.14.2",
  3613. "prettier-tslint": "0.4.0",
  3614. "sass-loader": "7.1.0",
  3615. "size-plugin": "1.0.1",
  3616. "style-loader": "0.23.0",
  3617. "tslint": "5.11.0",
  3618. "tslint-loader": "3.6.0",
  3619. "tslint-prettiest": "0.0.1",
  3620. "ts-loader": "5.0.0",
  3621. "typescript": "3.0.3",
  3622. "vscode": "1.1.21",
  3623. "webpack": "4.17.2",
  3624. "webpack-cli": "3.1.0",
  3625. "webpack-deep-scope-plugin": "1.5.3",
  3626. "webpack-node-externals": "1.7.2"
  3627. }
  3628. }