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.

211 line
8.9 KiB

  1. {
  2. "name": "gitlens",
  3. "version": "0.3.0",
  4. "author": {
  5. "name": "Eric Amodio",
  6. "email": "eamodio@gmail.com"
  7. },
  8. "publisher": "eamodio",
  9. "engines": {
  10. "vscode": "^1.3.0"
  11. },
  12. "license": "SEE LICENSE IN LICENSE",
  13. "displayName": "GitLens",
  14. "description": "Provides Git information (most recent commit, # of authors) in CodeLens, on-demand inline blame annotations, a blame explorer, and commands to compare changes w/ the working tree or previous versions",
  15. "categories": [
  16. "Other"
  17. ],
  18. "keywords": [
  19. "git", "blame", "gitblame", "codelens", "annotation"
  20. ],
  21. "galleryBanner": {
  22. "color": "#f0efe7",
  23. "theme": "light"
  24. },
  25. "icon": "images/gitlens-icon.png",
  26. "preview": false,
  27. "homepage": "https://github.com/eamodio/vscode-gitlens/blob/master/README.md",
  28. "bugs": {
  29. "url": "https://github.com/eamodio/vscode-gitlens/issues"
  30. },
  31. "repository": {
  32. "type": "git",
  33. "url": "https://github.com/eamodio/vscode-gitlens.git"
  34. },
  35. "main": "./out/src/extension",
  36. "contributes": {
  37. "configuration": {
  38. "type": "object",
  39. "title": "GitLens configuration",
  40. "properties": {
  41. "gitlens.blame.annotation.style": {
  42. "type": "string",
  43. "default": "expanded",
  44. "enum": [
  45. "compact",
  46. "expanded"
  47. ],
  48. "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 on every line"
  49. },
  50. "gitlens.blame.annotation.sha": {
  51. "type": "boolean",
  52. "default": true,
  53. "description": "Specifies whether the commit sha will be shown in the blame annotations. Applies only to the `expanded` annotation style"
  54. },
  55. "gitlens.blame.annotation.author": {
  56. "type": "boolean",
  57. "default": true,
  58. "description": "Specifies whether the committer will be shown in the blame annotations. Applies only to the `expanded` annotation style"
  59. },
  60. "gitlens.blame.annotation.date": {
  61. "type": "boolean",
  62. "default": false,
  63. "description": "Specifies whether the commit date will be shown in the blame annotations. Applies only to the `expanded` annotation style"
  64. },
  65. "gitlens.blame.annotation.useCodeActions": {
  66. "type": "boolean",
  67. "default": false,
  68. "description": "Specifies whether code actions (Diff with Working, Diff with Previous) will be provided for the selected line, when annotating. Not required as context menu options are always provided"
  69. },
  70. "gitlens.codeLens.visibility": {
  71. "type": "string",
  72. "default": "auto",
  73. "enum": [
  74. "auto",
  75. "ondemand",
  76. "off"
  77. ],
  78. "description": "Specifies when CodeLens will be triggered in the active document. `auto` - automatically. `ondemand` - only when requested. `off` - disables all active document CodeLens"
  79. },
  80. "gitlens.codeLens.location": {
  81. "type": "string",
  82. "default": "document+containers",
  83. "enum": [
  84. "all",
  85. "document+containers",
  86. "document",
  87. "custom"
  88. ],
  89. "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`"
  90. },
  91. "gitlens.codeLens.locationCustomSymbols": {
  92. "type": "array",
  93. "description": "Specifies the set of document symbols to render active document CodeLens on. Must be a member of `SymbolKind`"
  94. },
  95. "gitlens.codeLens.recentChange.enabled": {
  96. "type": "boolean",
  97. "default": true,
  98. "description": "Specifies whether the recent change CodeLens is shown"
  99. },
  100. "gitlens.codeLens.recentChange.command": {
  101. "type": "string",
  102. "default": "blame.explorer",
  103. "enum": [
  104. "blame.annotate",
  105. "blame.explorer",
  106. "git.history"
  107. ],
  108. "description": "Specifies the command executed when the recent change CodeLens is clicked. `blame.annotate` - toggles blame annotations. `blame.explorer` - opens the blame explorer. `git.history` - opens a file history picker, which requires the Git History (git log) extension"
  109. },
  110. "gitlens.codeLens.authors.enabled": {
  111. "type": "boolean",
  112. "default": true,
  113. "description": "Specifies whether the authors CodeLens is shown"
  114. },
  115. "gitlens.codeLens.authors.command": {
  116. "type": "string",
  117. "default": "blame.annotate",
  118. "enum": [
  119. "blame.annotate",
  120. "blame.explorer",
  121. "git.history"
  122. ],
  123. "description": "Specifies the command executed when the authors CodeLens is clicked. `blame.annotate` - toggles blame annotations. `blame.explorer` - opens the blame explorer. `git.history` - opens a file history picker, which requires the Git History (git log) extension"
  124. },
  125. "gitlens.advanced.caching.enabled": {
  126. "type": "boolean",
  127. "default": true,
  128. "description": "Specifies whether git blame output will be cached"
  129. }
  130. }
  131. },
  132. "commands": [{
  133. "command": "gitlens.diffWithPrevious",
  134. "title": "Git: Open Diff with Previous Commit",
  135. "category": "GitLens"
  136. },
  137. {
  138. "command": "gitlens.diffWithWorking",
  139. "title": "Git: Open Diff with Working Tree",
  140. "category": "GitLens"
  141. },
  142. {
  143. "command": "gitlens.showBlame",
  144. "title": "Git: Show Blame",
  145. "category": "GitLens"
  146. },
  147. {
  148. "command": "gitlens.toggleBlame",
  149. "title": "Git: Toggle Blame",
  150. "category": "GitLens"
  151. },
  152. {
  153. "command": "gitlens.toggleCodeLens",
  154. "title": "Git: Toggle CodeLens",
  155. "category": "GitLens"
  156. }],
  157. "menus": {
  158. "editor/title": [{
  159. "when": "editorTextFocus",
  160. "command": "gitlens.toggleBlame",
  161. "group": "gitlens"
  162. }],
  163. "editor/context": [
  164. {
  165. "when": "editorTextFocus",
  166. "command": "gitlens.diffWithWorking",
  167. "group": "gitlens@1.0"
  168. },
  169. {
  170. "when": "editorTextFocus",
  171. "command": "gitlens.diffWithPrevious",
  172. "group": "gitlens@1.1"
  173. },
  174. {
  175. "when": "editorTextFocus",
  176. "command": "gitlens.toggleBlame",
  177. "group": "gitlens-blame@1.2"
  178. }]
  179. },
  180. "keybindings": [{
  181. "command": "gitlens.toggleBlame",
  182. "key": "alt+b",
  183. "mac": "alt+b",
  184. "when": "editorTextFocus"
  185. },
  186. {
  187. "command": "gitlens.toggleCodeLens",
  188. "key": "alt+shift+b",
  189. "mac": "alt+shift+b",
  190. "when": "editorTextFocus"
  191. }]
  192. },
  193. "activationEvents": [
  194. "*"
  195. ],
  196. "dependencies": {
  197. "ignore": "^3.1.5",
  198. "lodash": "^4.15.0",
  199. "moment": "^2.15.0",
  200. "spawn-rx": "^2.0.1",
  201. "tmp": "^0.0.29"
  202. },
  203. "devDependencies": {
  204. "typescript": "^2.0.2",
  205. "vscode": "^0.11.17"
  206. },
  207. "scripts": {
  208. "vscode:prepublish": "node ./node_modules/vscode/bin/compile && tsc",
  209. "compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
  210. "postinstall": "node ./node_modules/vscode/bin/install"
  211. }
  212. }