Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

3053 rader
137 KiB

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