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.

884 lines
39 KiB

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