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

885 lines
38 KiB

7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
  1. {
  2. "name": "gitlens",
  3. "version": "3.4.0",
  4. "author": {
  5. "name": "Eric Amodio",
  6. "email": "eamodio@gmail.com"
  7. },
  8. "publisher": "eamodio",
  9. "engines": {
  10. "vscode": "^1.9.0"
  11. },
  12. "license": "SEE LICENSE IN LICENSE",
  13. "displayName": "GitLens",
  14. "description": "Supercharge Visual Studio Code's Git capabilities \u2014 Visualize code authorship at a glance via inline blame annotations and CodeLens, seamlessly navigate and explore the history of a file or branch, gain valuable insights via powerful comparision commands, and so much more",
  15. "badges": [
  16. {
  17. "url": "https://badges.gitter.im/vscode-gitlens/Lobby.svg",
  18. "href": "https://gitter.im/vscode-gitlens/Lobby",
  19. "description": "Chat at https://gitter.im/vscode-gitlens/Lobby"
  20. }
  21. ],
  22. "categories": [
  23. "Other"
  24. ],
  25. "galleryBanner": {
  26. "color": "#56098c",
  27. "theme": "dark"
  28. },
  29. "icon": "images/gitlens-icon.svg",
  30. "preview": false,
  31. "homepage": "https://github.com/eamodio/vscode-gitlens/blob/master/README.md",
  32. "bugs": {
  33. "url": "https://github.com/eamodio/vscode-gitlens/issues"
  34. },
  35. "repository": {
  36. "type": "git",
  37. "url": "https://github.com/eamodio/vscode-gitlens.git"
  38. },
  39. "main": "./out/src/extension",
  40. "contributes": {
  41. "configuration": {
  42. "type": "object",
  43. "title": "GitLens configuration",
  44. "properties": {
  45. "gitlens.blame.annotation.style": {
  46. "type": "string",
  47. "default": "expanded",
  48. "enum": [
  49. "compact",
  50. "expanded",
  51. "trailing"
  52. ],
  53. "description": "Specifies the style of the blame annotations. `compact` - groups annotations to limit the repetition and also adds author and date when possible. `expanded` - shows an annotation before every line. `trailing` - shows an annotation after every line"
  54. },
  55. "gitlens.blame.annotation.highlight": {
  56. "type": "string",
  57. "default": "both",
  58. "enum": [
  59. "none",
  60. "gutter",
  61. "line",
  62. "both"
  63. ],
  64. "description": "Specifies whether and how to highlight blame annotations. `none` - no highlight. `gutter` - adds a gutter icon. `line` - adds a full-line highlight. `both` - adds both `gutter` and `line` highlights"
  65. },
  66. "gitlens.blame.annotation.sha": {
  67. "type": "boolean",
  68. "default": true,
  69. "description": "Specifies whether the commit id (sha) will be shown in the blame annotations. Applies only to the `expanded` & `trailing` annotation styles"
  70. },
  71. "gitlens.blame.annotation.author": {
  72. "type": "boolean",
  73. "default": true,
  74. "description": "Specifies whether the committer will be shown in the blame annotations. Applies only to the `expanded` & `trailing` annotation styles"
  75. },
  76. "gitlens.blame.annotation.date": {
  77. "type": "string",
  78. "default": "off",
  79. "enum": [
  80. "off",
  81. "relative",
  82. "absolute"
  83. ],
  84. "description": "Specifies whether and how the commit date will be shown in the blame annotations. `off` - no date. `relative` - relative date (e.g. 1 day ago). `absolute` - date format specified by `gitlens.blame.annotation.dateFormat`. Applies only to the `expanded` & `trailing` annotation styles"
  85. },
  86. "gitlens.blame.annotation.dateFormat": {
  87. "type": "string",
  88. "default": null,
  89. "description": "Specifies the date format of how absolute dates will be shown in the blame annotations. See https://momentjs.com/docs/#/displaying/format/ for valid formats"
  90. },
  91. "gitlens.blame.annotation.message": {
  92. "type": "boolean",
  93. "default": false,
  94. "description": "Specifies whether the commit message will be shown in the blame annotations. Applies only to the `expanded` & `trailing` annotation styles"
  95. },
  96. "gitlens.blame.annotation.activeLine": {
  97. "type": "string",
  98. "default": "both",
  99. "enum": [
  100. "off",
  101. "inline",
  102. "hover",
  103. "both"
  104. ],
  105. "description": "Specifies whether and how to show blame annotations on the active line. `off` - no annotation. `inline` - adds a trailing annotation to the active line. `hover` - adds hover annotation to the active line. `both` - adds both `inline` and `hover` annotations"
  106. },
  107. "gitlens.blame.annotation.activeLineDarkColor": {
  108. "type": "string",
  109. "default": "rgba(153, 153, 153, 0.35)",
  110. "description": "Specifies the color of the active line blame annotation to use with a dark theme. Must be a valid css color"
  111. },
  112. "gitlens.blame.annotation.activeLineLightColor": {
  113. "type": "string",
  114. "default": "rgba(153, 153, 153, 0.35)",
  115. "description": "Specifies the color of the active line blame annotation to use with a light theme. Must be a valid css color"
  116. },
  117. "gitlens.codeLens.visibility": {
  118. "type": "string",
  119. "default": "auto",
  120. "enum": [
  121. "auto",
  122. "ondemand",
  123. "off"
  124. ],
  125. "description": "Specifies when CodeLens will be shown in the active document. `auto` - always shown. `ondemand` - never shown, unless toggled via the `gitlens.toggleCodeLens` command. `off` - never shown"
  126. },
  127. "gitlens.codeLens.location": {
  128. "type": "string",
  129. "default": "document+containers",
  130. "enum": [
  131. "all",
  132. "document+containers",
  133. "document",
  134. "custom"
  135. ],
  136. "description": "Specifies where CodeLens will be rendered in the active document. `all` - render at the top of the document, on container-like (classes, modules, etc), and on member-like (methods, functions, properties, etc) lines. `document+containers` - render at the top of the document and on container-like lines. `document` - only render at the top of the document. `custom` - rendering controlled by `gitlens.codeLens.locationCustomSymbols`"
  137. },
  138. "gitlens.codeLens.locationCustomSymbols": {
  139. "type": "array",
  140. "description": "Specifies the set of document symbols to render active document CodeLens on. Must be a member of `SymbolKind`"
  141. },
  142. "gitlens.codeLens.languageLocations": {
  143. "type": "array",
  144. "default": [
  145. {
  146. "language": "css",
  147. "location": "document"
  148. },
  149. {
  150. "language": "html",
  151. "location": "document"
  152. },
  153. {
  154. "language": "json",
  155. "location": "document"
  156. },
  157. {
  158. "language": "less",
  159. "location": "document"
  160. },
  161. {
  162. "language": "scss",
  163. "location": "document"
  164. },
  165. {
  166. "language": "vue",
  167. "location": "document"
  168. }
  169. ],
  170. "items": {
  171. "type": "object",
  172. "required": [
  173. "language",
  174. "location"
  175. ],
  176. "properties": {
  177. "language": {
  178. "type": "string",
  179. "description": "Specifies the language to which this CodeLens override applies"
  180. },
  181. "location": {
  182. "type": "string",
  183. "default": "document+containers",
  184. "enum": [
  185. "all",
  186. "document+containers",
  187. "document",
  188. "custom",
  189. "none"
  190. ],
  191. "description": "Specifies where CodeLens will be rendered in the active document for the specified language. `all` - render at the top of the document, on container-like (classes, modules, etc), and on member-like (methods, functions, properties, etc) lines. `document+containers` - render at the top of the document and on container-like lines. `document` - only render at the top of the document. `custom` - rendering controlled by `customSymbols`"
  192. },
  193. "customSymbols": {
  194. "type": "string",
  195. "description": "Specifies the set of document symbols to render active document CodeLens on. Must be a member of `SymbolKind`"
  196. }
  197. }
  198. },
  199. "uniqueItems": true,
  200. "enum": [
  201. "all",
  202. "document+containers",
  203. "document",
  204. "custom"
  205. ],
  206. "description": "Specifies where CodeLens will be rendered in the active document for the specified languages"
  207. },
  208. "gitlens.codeLens.recentChange.enabled": {
  209. "type": "boolean",
  210. "default": true,
  211. "description": "Specifies whether the recent change CodeLens is shown"
  212. },
  213. "gitlens.codeLens.recentChange.command": {
  214. "type": "string",
  215. "default": "gitlens.showQuickCommitFileDetails",
  216. "enum": [
  217. "gitlens.toggleBlame",
  218. "gitlens.showBlameHistory",
  219. "gitlens.showFileHistory",
  220. "gitlens.diffWithPrevious",
  221. "gitlens.showQuickCommitDetails",
  222. "gitlens.showQuickCommitFileDetails",
  223. "gitlens.showQuickFileHistory",
  224. "gitlens.showQuickRepoHistory"
  225. ],
  226. "description": "Specifies the command executed when the recent change CodeLens is clicked. `gitlens.toggleBlame` - toggles blame annotations. `gitlens.showBlameHistory` - opens the blame history explorer. `gitlens.showFileHistory` - opens the file history explorer. `gitlens.diffWithPrevious` - compares the current committed file with the previous commit. `gitlens.showQuickCommitDetails` - shows a commit details quick pick. `gitlens.showQuickCommitFileDetails` - shows a commit file details quick pick. `gitlens.showQuickFileHistory` - shows a file history quick pick. `gitlens.showQuickRepoHistory` - shows a branch history quick pick"
  227. },
  228. "gitlens.codeLens.authors.enabled": {
  229. "type": "boolean",
  230. "default": true,
  231. "description": "Specifies whether the authors CodeLens is shown"
  232. },
  233. "gitlens.codeLens.authors.command": {
  234. "type": "string",
  235. "default": "gitlens.toggleBlame",
  236. "enum": [
  237. "gitlens.toggleBlame",
  238. "gitlens.showBlameHistory",
  239. "gitlens.showFileHistory",
  240. "gitlens.diffWithPrevious",
  241. "gitlens.showQuickCommitDetails",
  242. "gitlens.showQuickCommitFileDetails",
  243. "gitlens.showQuickFileHistory",
  244. "gitlens.showQuickRepoHistory"
  245. ],
  246. "description": "Specifies the command executed when the authors CodeLens is clicked. `gitlens.toggleBlame` - toggles blame annotations. `gitlens.showBlameHistory` - opens the blame history explorer. `gitlens.showFileHistory` - opens the file history explorer. `gitlens.diffWithPrevious` - compares the current committed file with the previous commit. `gitlens.showQuickCommitDetails` - shows a commit details quick pick. `gitlens.showQuickCommitFileDetails` - shows a commit file details quick pick. `gitlens.showQuickFileHistory` - shows a file history quick pick. `gitlens.showQuickRepoHistory` - shows a branch history quick pick"
  247. },
  248. "gitlens.menus.diff.enabled": {
  249. "type": "boolean",
  250. "default": true,
  251. "description": "Specifies whether diff commands will be added to the context menus"
  252. },
  253. "gitlens.statusBar.enabled": {
  254. "type": "boolean",
  255. "default": true,
  256. "description": "Specifies whether blame information is shown in the status bar"
  257. },
  258. "gitlens.statusBar.command": {
  259. "type": "string",
  260. "default": "gitlens.showQuickCommitDetails",
  261. "enum": [
  262. "gitlens.toggleBlame",
  263. "gitlens.showBlameHistory",
  264. "gitlens.showFileHistory",
  265. "gitlens.diffWithPrevious",
  266. "gitlens.toggleCodeLens",
  267. "gitlens.showQuickCommitDetails",
  268. "gitlens.showQuickCommitFileDetails",
  269. "gitlens.showQuickFileHistory",
  270. "gitlens.showQuickRepoHistory"
  271. ],
  272. "description": "Specifies the command executed when the blame status bar item is clicked. `gitlens.toggleBlame` - toggles blame annotations. `gitlens.showBlameHistory` - opens the blame history explorer. `gitlens.showFileHistory` - opens the file history explorer. `gitlens.diffWithPrevious` - compares the current committed file with the previous commit. `gitlens.toggleCodeLens` - toggles Git CodeLens. `gitlens.showQuickCommitDetails` - shows a commit details quick pick. `gitlens.showQuickCommitFileDetails` - shows a commit file details quick pick. `gitlens.showQuickFileHistory` - shows a file history quick pick. `gitlens.showQuickRepoHistory` - shows a branch history quick pick"
  273. },
  274. "gitlens.statusBar.date": {
  275. "type": "string",
  276. "default": "relative",
  277. "enum": [
  278. "off",
  279. "relative",
  280. "absolute"
  281. ],
  282. "description": "Specifies whether and how the commit date will be shown in the blame status bar. `off` - no date. `relative` - relative date (e.g. 1 day ago). `absolute` - date format specified by `gitlens.statusBar.dateFormat`"
  283. },
  284. "gitlens.statusBar.dateFormat": {
  285. "type": "string",
  286. "default": null,
  287. "description": "Specifies the date format of how absolute dates will be shown in the blame status bar. See https://momentjs.com/docs/#/displaying/format/ for valid formats"
  288. },
  289. "gitlens.advanced.caching.enabled": {
  290. "type": "boolean",
  291. "default": true,
  292. "description": "Specifies whether git blame output will be cached"
  293. },
  294. "gitlens.advanced.caching.statusBar.maxLines": {
  295. "type": "number",
  296. "default": 0,
  297. "description": "Specifies whether status bar git blame output will be cached for larger documents"
  298. },
  299. "gitlens.advanced.debug": {
  300. "type": "boolean",
  301. "default": false,
  302. "description": "Specifies debug mode"
  303. },
  304. "gitlens.advanced.codeLens.debug": {
  305. "type": "boolean",
  306. "default": false,
  307. "description": "Specifies whether or not to show debug information in CodeLens"
  308. },
  309. "gitlens.advanced.git": {
  310. "type": "string",
  311. "default": null,
  312. "description": "Specifies a git path to use"
  313. },
  314. "gitlens.advanced.gitignore.enabled": {
  315. "type": "boolean",
  316. "default": true,
  317. "description": "Specifies whether or not to parse the root .gitignore file for better performance (i.e. avoids blaming excluded files)"
  318. },
  319. "gitlens.advanced.maxQuickHistory": {
  320. "type": "number",
  321. "default": 200,
  322. "description": "Specifies the maximum number of QuickPick history entries to show"
  323. },
  324. "gitlens.advanced.output.level": {
  325. "type": "string",
  326. "default": "silent",
  327. "enum": [
  328. "silent",
  329. "errors",
  330. "verbose"
  331. ],
  332. "description": "Specifies how much (if any) output will be sent to the GitLens output channel"
  333. },
  334. "gitlens.advanced.quickPick.closeOnFocusOut": {
  335. "type": "boolean",
  336. "default": true,
  337. "description": "Specifies whether or not to close the QuickPick menu when focus is lost"
  338. },
  339. "gitlens.advanced.toggleWhitespace.enabled": {
  340. "type": "boolean",
  341. "default": false,
  342. "description": "Specifies whether or not to toggle whitespace off then showing blame annotations (*may* be required by certain fonts/themes)"
  343. },
  344. "gitlens.insiders": {
  345. "type": "boolean",
  346. "default": false,
  347. "description": "Specifies whether or not to enable new experimental features (expect there to be issues)"
  348. }
  349. }
  350. },
  351. "commands": [
  352. {
  353. "command": "gitlens.diffDirectory",
  354. "title": "Directory Compare",
  355. "category": "GitLens"
  356. },
  357. {
  358. "command": "gitlens.diffWithBranch",
  359. "title": "Compare File with...",
  360. "category": "GitLens"
  361. },
  362. {
  363. "command": "gitlens.diffWithNext",
  364. "title": "Compare File with Next Commit",
  365. "category": "GitLens"
  366. },
  367. {
  368. "command": "gitlens.diffWithPrevious",
  369. "title": "Compare File with Previous Commit",
  370. "category": "GitLens"
  371. },
  372. {
  373. "command": "gitlens.diffLineWithPrevious",
  374. "title": "Compare Line with Previous Commit",
  375. "category": "GitLens"
  376. },
  377. {
  378. "command": "gitlens.diffWithWorking",
  379. "title": "Compare File with Working Tree",
  380. "category": "GitLens"
  381. },
  382. {
  383. "command": "gitlens.diffLineWithWorking",
  384. "title": "Compare Line with Working Tree",
  385. "category": "GitLens"
  386. },
  387. {
  388. "command": "gitlens.showBlame",
  389. "title": "Show Blame Annotations",
  390. "category": "GitLens"
  391. },
  392. {
  393. "command": "gitlens.toggleBlame",
  394. "title": "Toggle Blame Annotations",
  395. "category": "GitLens",
  396. "icon": {
  397. "dark": "images/git-icon-dark.svg",
  398. "light": "images/git-icon-light.svg"
  399. }
  400. },
  401. {
  402. "command": "gitlens.toggleCodeLens",
  403. "title": "Toggle Git CodeLens",
  404. "category": "GitLens"
  405. },
  406. {
  407. "command": "gitlens.showBlameHistory",
  408. "title": "Open Blame History Explorer",
  409. "category": "GitLens"
  410. },
  411. {
  412. "command": "gitlens.showCommitSearch",
  413. "title": "Search Commits",
  414. "category": "GitLens"
  415. },
  416. {
  417. "command": "gitlens.showFileHistory",
  418. "title": "Open File History Explorer",
  419. "category": "GitLens"
  420. },
  421. {
  422. "command": "gitlens.showLastQuickPick",
  423. "title": "Show Last Opened Quick Pick",
  424. "category": "GitLens"
  425. },
  426. {
  427. "command": "gitlens.showQuickCommitDetails",
  428. "title": "Show Commit Details",
  429. "category": "GitLens"
  430. },
  431. {
  432. "command": "gitlens.showQuickCommitFileDetails",
  433. "title": "Show Line Commit Details",
  434. "category": "GitLens"
  435. },
  436. {
  437. "command": "gitlens.showQuickFileHistory",
  438. "title": "Show File History",
  439. "category": "GitLens"
  440. },
  441. {
  442. "command": "gitlens.showQuickBranchHistory",
  443. "title": "Show Branch History",
  444. "category": "GitLens"
  445. },
  446. {
  447. "command": "gitlens.showQuickRepoHistory",
  448. "title": "Show Current Branch History",
  449. "category": "GitLens"
  450. },
  451. {
  452. "command": "gitlens.showQuickRepoStatus",
  453. "title": "Show Repository Status",
  454. "category": "GitLens"
  455. },
  456. {
  457. "command": "gitlens.showQuickStashList",
  458. "title": "Show Stashed Changes",
  459. "category": "GitLens"
  460. },
  461. {
  462. "command": "gitlens.copyShaToClipboard",
  463. "title": "Copy Commit ID to Clipboard",
  464. "category": "GitLens"
  465. },
  466. {
  467. "command": "gitlens.copyMessageToClipboard",
  468. "title": "Copy Commit Message to Clipboard",
  469. "category": "GitLens"
  470. },
  471. {
  472. "command": "gitlens.closeUnchangedFiles",
  473. "title": "Close Unchanged Files",
  474. "category": "GitLens"
  475. },
  476. {
  477. "command": "gitlens.openChangedFiles",
  478. "title": "Open Changed Files",
  479. "category": "GitLens"
  480. },
  481. {
  482. "command": "gitlens.openCommitInRemote",
  483. "title": "Open Line Commit in Remote",
  484. "category": "GitLens"
  485. },
  486. {
  487. "command": "gitlens.openFileInRemote",
  488. "title": "Open File in Remote",
  489. "category": "GitLens"
  490. },
  491. {
  492. "command": "gitlens.stashApply",
  493. "title": "Apply Stashed Changes",
  494. "category": "GitLens"
  495. },
  496. {
  497. "command": "gitlens.stashSave",
  498. "title": "Stash Changes",
  499. "category": "GitLens"
  500. }
  501. ],
  502. "menus": {
  503. "commandPalette": [
  504. {
  505. "command": "gitlens.diffDirectory",
  506. "when": "gitlens:enabled"
  507. },
  508. {
  509. "command": "gitlens.diffWithBranch",
  510. "when": "gitlens:isTracked"
  511. },
  512. {
  513. "command": "gitlens.diffWithNext",
  514. "when": "gitlens:isTracked"
  515. },
  516. {
  517. "command": "gitlens.diffWithPrevious",
  518. "when": "gitlens:isTracked"
  519. },
  520. {
  521. "command": "gitlens.diffLineWithPrevious",
  522. "when": "gitlens:isBlameable"
  523. },
  524. {
  525. "command": "gitlens.diffWithWorking",
  526. "when": "gitlens:isTracked"
  527. },
  528. {
  529. "command": "gitlens.diffLineWithWorking",
  530. "when": "gitlens:isBlameable"
  531. },
  532. {
  533. "command": "gitlens.showBlame",
  534. "when": "gitlens:isBlameable"
  535. },
  536. {
  537. "command": "gitlens.toggleBlame",
  538. "when": "gitlens:isBlameable"
  539. },
  540. {
  541. "command": "gitlens.toggleCodeLens",
  542. "when": "gitlens:isTracked && gitlens:canToggleCodeLens"
  543. },
  544. {
  545. "command": "gitlens.showBlameHistory",
  546. "when": "gitlens:isBlameable"
  547. },
  548. {
  549. "command": "gitlens.showFileHistory",
  550. "when": "gitlens:isTracked"
  551. },
  552. {
  553. "command": "gitlens.showLastQuickPick",
  554. "when": "gitlens:enabled"
  555. },
  556. {
  557. "command": "gitlens.showQuickCommitDetails",
  558. "when": "gitlens:isBlameable"
  559. },
  560. {
  561. "command": "gitlens.showQuickCommitFileDetails",
  562. "when": "gitlens:isBlameable"
  563. },
  564. {
  565. "command": "gitlens.showQuickFileHistory",
  566. "when": "gitlens:isTracked"
  567. },
  568. {
  569. "command": "gitlens.showQuickBranchHistory",
  570. "when": "gitlens:enabled"
  571. },
  572. {
  573. "command": "gitlens.showQuickRepoHistory",
  574. "when": "gitlens:enabled"
  575. },
  576. {
  577. "command": "gitlens.showQuickRepoStatus",
  578. "when": "gitlens:enabled"
  579. },
  580. {
  581. "command": "gitlens.showQuickStashList",
  582. "when": "gitlens:enabled"
  583. },
  584. {
  585. "command": "gitlens.copyShaToClipboard",
  586. "when": "gitlens:isBlameable"
  587. },
  588. {
  589. "command": "gitlens.copyMessageToClipboard",
  590. "when": "gitlens:isBlameable"
  591. },
  592. {
  593. "command": "gitlens.closeUnchangedFiles",
  594. "when": "gitlens:enabled"
  595. },
  596. {
  597. "command": "gitlens.openChangedFiles",
  598. "when": "gitlens:enabled"
  599. },
  600. {
  601. "command": "gitlens.openCommitInRemote",
  602. "when": "gitlens:isBlameable && gitlens:hasRemotes"
  603. },
  604. {
  605. "command": "gitlens.openFileInRemote",
  606. "when": "gitlens:isTracked && gitlens:hasRemotes"
  607. },
  608. {
  609. "command": "gitlens.stashApply",
  610. "when": "gitlens:enabled && config.gitlens.insiders"
  611. },
  612. {
  613. "command": "gitlens.stashSave",
  614. "when": "gitlens:enabled && config.gitlens.insiders"
  615. }
  616. ],
  617. "explorer/context": [
  618. {
  619. "command": "gitlens.diffWithPrevious",
  620. "when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
  621. "group": "1_gitlens@1"
  622. },
  623. {
  624. "command": "gitlens.diffWithWorking",
  625. "when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
  626. "group": "1_gitlens@2"
  627. },
  628. {
  629. "command": "gitlens.showQuickFileHistory",
  630. "when": "gitlens:enabled",
  631. "group": "1_gitlens_1@1"
  632. },
  633. {
  634. "command": "gitlens.openFileInRemote",
  635. "when": "gitlens:enabled",
  636. "group": "1_gitlens_1@2"
  637. }
  638. ],
  639. "editor/title": [
  640. {
  641. "command": "gitlens.toggleBlame",
  642. "when": "gitlens:isBlameable",
  643. "group": "navigation@100"
  644. },
  645. {
  646. "command": "gitlens.diffWithPrevious",
  647. "when": "editorTextFocus && gitlens:isTracked && config.gitlens.menus.diff.enabled",
  648. "group": "2_gitlens"
  649. },
  650. {
  651. "command": "gitlens.diffWithWorking",
  652. "when": "editorTextFocus && gitlens:isTracked && config.gitlens.menus.diff.enabled",
  653. "group": "2_gitlens"
  654. },
  655. {
  656. "command": "gitlens.showQuickFileHistory",
  657. "when": "editorFocus && gitlens:isTracked",
  658. "group": "2_gitlens_1"
  659. },
  660. {
  661. "command": "gitlens.showQuickRepoHistory",
  662. "when": "!editorFocus && gitlens:enabled",
  663. "group": "2_gitlens_1"
  664. },
  665. {
  666. "command": "gitlens.showQuickRepoStatus",
  667. "when": "gitlens:enabled",
  668. "group": "2_gitlens_1"
  669. }
  670. ],
  671. "editor/title/context": [
  672. {
  673. "command": "gitlens.diffWithPrevious",
  674. "when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
  675. "group": "1_gitlens@1"
  676. },
  677. {
  678. "command": "gitlens.diffWithWorking",
  679. "when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
  680. "group": "1_gitlens@2"
  681. },
  682. {
  683. "command": "gitlens.showQuickFileHistory",
  684. "when": "gitlens:enabled",
  685. "group": "1_gitlens_1@1"
  686. },
  687. {
  688. "command": "gitlens.toggleBlame",
  689. "when": "gitlens:enabled",
  690. "group": "1_gitlens_1@2"
  691. },
  692. {
  693. "command": "gitlens.openFileInRemote",
  694. "when": "gitlens:enabled",
  695. "group": "1_gitlens_1@3"
  696. }
  697. ],
  698. "editor/context": [
  699. {
  700. "command": "gitlens.diffLineWithPrevious",
  701. "when": "editorTextFocus && gitlens:isBlameable && config.gitlens.menus.diff.enabled",
  702. "group": "1_gitlens@1"
  703. },
  704. {
  705. "command": "gitlens.diffLineWithWorking",
  706. "when": "editorTextFocus && gitlens:isBlameable && config.gitlens.menus.diff.enabled",
  707. "group": "1_gitlens@2"
  708. },
  709. {
  710. "command": "gitlens.showQuickCommitFileDetails",
  711. "when": "editorTextFocus && gitlens:isBlameable",
  712. "group": "1_gitlens@3"
  713. },
  714. {
  715. "command": "gitlens.diffWithPrevious",
  716. "when": "editorTextFocus && gitlens:isTracked && config.gitlens.menus.diff.enabled",
  717. "group": "1_gitlens_1@1"
  718. },
  719. {
  720. "command": "gitlens.diffWithWorking",
  721. "when": "editorTextFocus && gitlens:isTracked && config.gitlens.menus.diff.enabled",
  722. "group": "1_gitlens_1@2"
  723. },
  724. {
  725. "command": "gitlens.showQuickFileHistory",
  726. "when": "gitlens:isTracked",
  727. "group": "2_gitlens@1"
  728. },
  729. {
  730. "command": "gitlens.toggleBlame",
  731. "when": "editorTextFocus && gitlens:isBlameable",
  732. "group": "2_gitlens@2"
  733. },
  734. {
  735. "command": "gitlens.openFileInRemote",
  736. "when": "editorTextFocus && gitlens:isTracked && gitlens:hasRemotes",
  737. "group": "2_gitlens@3"
  738. },
  739. {
  740. "command": "gitlens.copyShaToClipboard",
  741. "when": "editorTextFocus && gitlens:isBlameable",
  742. "group": "9_gitlens@1"
  743. },
  744. {
  745. "command": "gitlens.copyMessageToClipboard",
  746. "when": "editorTextFocus && gitlens:isBlameable",
  747. "group": "9_gitlens@2"
  748. }
  749. ]
  750. },
  751. "keybindings": [
  752. {
  753. "command": "gitlens.key.left",
  754. "key": "alt+left",
  755. "when": "gitlens:key:left"
  756. },
  757. {
  758. "command": "gitlens.key.right",
  759. "key": "alt+right",
  760. "when": "gitlens:key:right"
  761. },
  762. {
  763. "command": "gitlens.key.,",
  764. "key": "alt+,",
  765. "when": "gitlens:key:,"
  766. },
  767. {
  768. "command": "gitlens.key..",
  769. "key": "alt+.",
  770. "when": "gitlens:key:."
  771. },
  772. {
  773. "command": "gitlens.toggleBlame",
  774. "key": "alt+b",
  775. "mac": "alt+b",
  776. "when": "editorTextFocus && gitlens:isTracked"
  777. },
  778. {
  779. "command": "gitlens.toggleCodeLens",
  780. "key": "shift+alt+b",
  781. "mac": "shift+alt+b",
  782. "when": "editorTextFocus && gitlens:isTracked && gitlens:canToggleCodeLens"
  783. },
  784. {
  785. "command": "gitlens.showLastQuickPick",
  786. "key": "alt+-",
  787. "mac": "alt+-",
  788. "when": "gitlens:enabled"
  789. },
  790. {
  791. "command": "gitlens.showCommitSearch",
  792. "key": "alt+f",
  793. "mac": "alt+f",
  794. "when": "gitlens:enabled"
  795. },
  796. {
  797. "command": "gitlens.showQuickFileHistory",
  798. "key": "alt+h",
  799. "mac": "alt+h",
  800. "when": "gitlens:enabled"
  801. },
  802. {
  803. "command": "gitlens.showQuickRepoHistory",
  804. "key": "shift+alt+h",
  805. "mac": "shift+alt+h",
  806. "when": "gitlens:enabled"
  807. },
  808. {
  809. "command": "gitlens.showQuickRepoStatus",
  810. "key": "alt+s",
  811. "mac": "alt+s",
  812. "when": "gitlens:enabled"
  813. },
  814. {
  815. "command": "gitlens.showQuickCommitFileDetails",
  816. "key": "alt+c",
  817. "mac": "alt+c",
  818. "when": "editorTextFocus && gitlens:enabled"
  819. },
  820. {
  821. "command": "gitlens.diffWithNext",
  822. "key": "alt+.",
  823. "mac": "alt+.",
  824. "when": "editorTextFocus && gitlens:isTracked"
  825. },
  826. {
  827. "command": "gitlens.diffLineWithPrevious",
  828. "key": "shift+alt+,",
  829. "mac": "shift+alt+,",
  830. "when": "editorTextFocus && gitlens:isTracked"
  831. },
  832. {
  833. "command": "gitlens.diffWithPrevious",
  834. "key": "alt+,",
  835. "mac": "alt+,",
  836. "when": "editorTextFocus && gitlens:isTracked"
  837. },
  838. {
  839. "command": "gitlens.diffLineWithWorking",
  840. "key": "alt+w",
  841. "mac": "alt+w",
  842. "when": "editorTextFocus && gitlens:isTracked"
  843. },
  844. {
  845. "command": "gitlens.diffWithWorking",
  846. "key": "shift+alt+w",
  847. "mac": "shift+alt+w",
  848. "when": "editorTextFocus && gitlens:isTracked"
  849. }
  850. ]
  851. },
  852. "activationEvents": [
  853. "*"
  854. ],
  855. "scripts": {
  856. "compile": "tsc -watch -p ./",
  857. "lint": "tslint --project tslint.json",
  858. "pack": "git clean -xdf && npm install && vsce package",
  859. "postinstall": "node ./node_modules/vscode/bin/install",
  860. "pub": "git clean -xdf --exclude=node_modules/ && npm install && vsce publish",
  861. "vscode:prepublish": "tsc -p ./"
  862. },
  863. "dependencies": {
  864. "applicationinsights": "^0.19.0",
  865. "copy-paste": "^1.3.0",
  866. "ignore": "^3.2.7",
  867. "lodash.debounce": "^4.0.8",
  868. "lodash.escaperegexp": "^4.1.2",
  869. "lodash.isequal": "^4.5.0",
  870. "lodash.once": "^4.1.1",
  871. "moment": "^2.18.1",
  872. "spawn-rx": "^2.0.10",
  873. "tmp": "^0.0.31"
  874. },
  875. "devDependencies": {
  876. "@types/applicationinsights": "^0.15.33",
  877. "@types/copy-paste": "^1.1.30",
  878. "@types/mocha": "^2.2.40",
  879. "@types/node": "^7.0.12",
  880. "@types/tmp": "^0.0.32",
  881. "mocha": "^3.2.0",
  882. "tslint": "^4.5.1",
  883. "typescript": "^2.3.0",
  884. "vscode": "^1.1.0"
  885. }
  886. }