Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

4460 Zeilen
197 KiB

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