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.

896 line
39 KiB

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