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.

235 lines
10 KiB

преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
  1. {
  2. "name": "gitlens",
  3. "version": "0.5.2",
  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.codeLens.visibility": {
  66. "type": "string",
  67. "default": "auto",
  68. "enum": [
  69. "auto",
  70. "ondemand",
  71. "off"
  72. ],
  73. "description": "Specifies when CodeLens will be triggered in the active document. `auto` - automatically. `ondemand` - only when requested. `off` - disables all active document CodeLens"
  74. },
  75. "gitlens.codeLens.location": {
  76. "type": "string",
  77. "default": "document+containers",
  78. "enum": [
  79. "all",
  80. "document+containers",
  81. "document",
  82. "custom"
  83. ],
  84. "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`"
  85. },
  86. "gitlens.codeLens.locationCustomSymbols": {
  87. "type": "array",
  88. "description": "Specifies the set of document symbols to render active document CodeLens on. Must be a member of `SymbolKind`"
  89. },
  90. "gitlens.codeLens.recentChange.enabled": {
  91. "type": "boolean",
  92. "default": true,
  93. "description": "Specifies whether the recent change CodeLens is shown"
  94. },
  95. "gitlens.codeLens.recentChange.command": {
  96. "type": "string",
  97. "default": "gitlens.showBlameHistory",
  98. "enum": [
  99. "gitlens.toggleBlame",
  100. "gitlens.showBlameHistory",
  101. "gitlens.diffWithPrevious",
  102. "git.viewFileHistory"
  103. ],
  104. "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.diffWithPrevious` - compares the current checked-in file with the previous commit. `git.viewFileHistory` - opens a file history picker, which requires the Git History (git log) extension"
  105. },
  106. "gitlens.codeLens.authors.enabled": {
  107. "type": "boolean",
  108. "default": true,
  109. "description": "Specifies whether the authors CodeLens is shown"
  110. },
  111. "gitlens.codeLens.authors.command": {
  112. "type": "string",
  113. "default": "gitlens.toggleBlame",
  114. "enum": [
  115. "gitlens.toggleBlame",
  116. "gitlens.showBlameHistory",
  117. "gitlens.diffWithPrevious",
  118. "git.viewFileHistory"
  119. ],
  120. "description": "Specifies the command executed when the authors CodeLens is clicked. `gitlens.toggleBlame` - toggles blame annotations. `gitlens.showBlameHistory` - opens the blame history explorer. `gitlens.diffWithPrevious` - compares the current checked-in file with the previous commit. `git.viewFileHistory` - opens a file history picker, which requires the Git History (git log) extension"
  121. },
  122. "gitlens.statusBar.enabled": {
  123. "type": "boolean",
  124. "default": true,
  125. "description": "Specifies whether blame information is shown in the status bar"
  126. },
  127. "gitlens.statusBar.command": {
  128. "type": "string",
  129. "default": "gitlens.toggleBlame",
  130. "enum": [
  131. "gitlens.toggleBlame",
  132. "gitlens.showBlameHistory",
  133. "gitlens.diffWithPrevious",
  134. "gitlens.toggleCodeLens",
  135. "git.viewFileHistory"
  136. ],
  137. "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.diffWithPrevious` - compares the current checked-in file with the previous commit. `git.viewFileHistory` - opens a file history picker, which requires the Git History (git log) extension"
  138. },
  139. "gitlens.advanced.caching.enabled": {
  140. "type": "boolean",
  141. "default": true,
  142. "description": "Specifies whether git blame output will be cached"
  143. }
  144. }
  145. },
  146. "commands": [{
  147. "command": "gitlens.diffWithPrevious",
  148. "title": "Open Diff with Previous Commit",
  149. "category": "GitLens"
  150. },
  151. {
  152. "command": "gitlens.diffWithWorking",
  153. "title": "Open Diff with Working Tree",
  154. "category": "GitLens"
  155. },
  156. {
  157. "command": "gitlens.showBlame",
  158. "title": "Show Git Blame Annotations",
  159. "category": "GitLens"
  160. },
  161. {
  162. "command": "gitlens.toggleBlame",
  163. "title": "Toggle Git Blame Annotations",
  164. "category": "GitLens"
  165. },
  166. {
  167. "command": "gitlens.toggleCodeLens",
  168. "title": "Toggle Git CodeLens",
  169. "category": "GitLens"
  170. },
  171. {
  172. "command": "gitlens.showBlameHistory",
  173. "title": "Open Git Blame History",
  174. "category": "GitLens"
  175. }],
  176. "menus": {
  177. "editor/title": [{
  178. "when": "editorTextFocus",
  179. "command": "gitlens.toggleBlame",
  180. "group": "gitlens"
  181. }],
  182. "editor/context": [
  183. {
  184. "when": "editorTextFocus",
  185. "command": "gitlens.diffWithWorking",
  186. "group": "gitlens@1.0"
  187. },
  188. {
  189. "when": "editorTextFocus",
  190. "command": "gitlens.diffWithPrevious",
  191. "group": "gitlens@1.1"
  192. },
  193. {
  194. "when": "editorTextFocus",
  195. "command": "gitlens.toggleBlame",
  196. "group": "gitlens-blame@1.2"
  197. }]
  198. },
  199. "keybindings": [{
  200. "command": "gitlens.toggleBlame",
  201. "key": "alt+b",
  202. "mac": "alt+b",
  203. "when": "editorTextFocus"
  204. },
  205. {
  206. "command": "gitlens.toggleCodeLens",
  207. "key": "alt+shift+b",
  208. "mac": "alt+shift+b",
  209. "when": "editorTextFocus"
  210. }]
  211. },
  212. "activationEvents": [
  213. "*"
  214. ],
  215. "dependencies": {
  216. "ignore": "^3.1.5",
  217. "lodash.debounce": "^4.0.8",
  218. "lodash.escaperegexp": "^4.1.2",
  219. "lodash.isequal": "^4.4.0",
  220. "lodash": "^4.16.0",
  221. "moment": "^2.15.0",
  222. "spawn-rx": "^2.0.1",
  223. "tmp": "^0.0.29"
  224. },
  225. "devDependencies": {
  226. "typescript": "^2.0.2",
  227. "vscode": "^0.11.17"
  228. },
  229. "scripts": {
  230. "vscode:prepublish": "node ./node_modules/vscode/bin/compile && tsc",
  231. "compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
  232. "postinstall": "node ./node_modules/vscode/bin/install",
  233. "pack": "git clean -xdf && npm install && vsce package",
  234. "pub": "git clean -xdf --exclude=node_modules/ && npm install && vsce publish"
  235. }
  236. }