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.

238 lines
11 KiB

пре 8 година
пре 8 година
пре 8 година
пре 8 година
пре 8 година
пре 8 година
пре 8 година
пре 8 година
пре 8 година
пре 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.5",
  4. "author": {
  5. "name": "Eric Amodio",
  6. "email": "eamodio@gmail.com"
  7. },
  8. "publisher": "eamodio",
  9. "engines": {
  10. "vscode": "^1.6.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.showHistory",
  102. "gitlens.diffWithPrevious",
  103. "git.viewFileHistory"
  104. ],
  105. "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"
  106. },
  107. "gitlens.codeLens.authors.enabled": {
  108. "type": "boolean",
  109. "default": true,
  110. "description": "Specifies whether the authors CodeLens is shown"
  111. },
  112. "gitlens.codeLens.authors.command": {
  113. "type": "string",
  114. "default": "gitlens.toggleBlame",
  115. "enum": [
  116. "gitlens.toggleBlame",
  117. "gitlens.showBlameHistory",
  118. "gitlens.showHistory",
  119. "gitlens.diffWithPrevious",
  120. "git.viewFileHistory"
  121. ],
  122. "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"
  123. },
  124. "gitlens.statusBar.enabled": {
  125. "type": "boolean",
  126. "default": true,
  127. "description": "Specifies whether blame information is shown in the status bar"
  128. },
  129. "gitlens.statusBar.command": {
  130. "type": "string",
  131. "default": "gitlens.toggleBlame",
  132. "enum": [
  133. "gitlens.toggleBlame",
  134. "gitlens.showBlameHistory",
  135. "gitlens.showHistory",
  136. "gitlens.diffWithPrevious",
  137. "gitlens.toggleCodeLens",
  138. "git.viewFileHistory"
  139. ],
  140. "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"
  141. },
  142. "gitlens.advanced.caching.enabled": {
  143. "type": "boolean",
  144. "default": true,
  145. "description": "Specifies whether git blame output will be cached"
  146. }
  147. }
  148. },
  149. "commands": [{
  150. "command": "gitlens.diffWithPrevious",
  151. "title": "Open Diff with Previous Commit",
  152. "category": "GitLens"
  153. }, {
  154. "command": "gitlens.diffWithWorking",
  155. "title": "Open Diff with Working Tree",
  156. "category": "GitLens"
  157. }, {
  158. "command": "gitlens.showBlame",
  159. "title": "Show Git Blame Annotations",
  160. "category": "GitLens"
  161. }, {
  162. "command": "gitlens.toggleBlame",
  163. "title": "Toggle Git Blame Annotations",
  164. "category": "GitLens"
  165. }, {
  166. "command": "gitlens.toggleCodeLens",
  167. "title": "Toggle Git CodeLens",
  168. "category": "GitLens"
  169. }, {
  170. "command": "gitlens.showBlameHistory",
  171. "title": "Open Git Blame History",
  172. "category": "GitLens"
  173. }, {
  174. "command": "gitlens.showHistory",
  175. "title": "Open Git History",
  176. "category": "GitLens"
  177. }],
  178. "menus": {
  179. "editor/title": [{
  180. "when": "editorTextFocus",
  181. "command": "gitlens.toggleBlame",
  182. "group": "gitlens"
  183. }],
  184. "editor/context": [{
  185. "when": "editorTextFocus",
  186. "command": "gitlens.diffWithWorking",
  187. "group": "gitlens@1.0"
  188. }, {
  189. "when": "editorTextFocus",
  190. "command": "gitlens.diffWithPrevious",
  191. "group": "gitlens@1.1"
  192. }, {
  193. "when": "editorTextFocus",
  194. "command": "gitlens.toggleBlame",
  195. "group": "gitlens-blame@1.2"
  196. }]
  197. },
  198. "keybindings": [{
  199. "command": "gitlens.toggleBlame",
  200. "key": "alt+b",
  201. "mac": "alt+b",
  202. "when": "editorTextFocus"
  203. }, {
  204. "command": "gitlens.toggleCodeLens",
  205. "key": "alt+shift+b",
  206. "mac": "alt+shift+b",
  207. "when": "editorTextFocus"
  208. }]
  209. },
  210. "activationEvents": [
  211. "*"
  212. ],
  213. "dependencies": {
  214. "ignore": "^3.2.0",
  215. "lodash.debounce": "^4.0.8",
  216. "lodash.escaperegexp": "^4.1.2",
  217. "lodash.isequal": "^4.4.0",
  218. "moment": "^2.15.2",
  219. "spawn-rx": "^2.0.3",
  220. "tmp": "^0.0.30"
  221. },
  222. "devDependencies": {
  223. "mocha": "^3.1.2",
  224. "tslint": "^3.15.1",
  225. "typescript": "^2.0.6",
  226. "vscode": "^1.0.3",
  227. "@types/node": "^6.0.46",
  228. "@types/mocha": "^2.2.32",
  229. "@types/tmp": "^0.0.31"
  230. },
  231. "scripts": {
  232. "compile": "tsc -watch -p ./",
  233. "lint": "tslint --project tslint.json",
  234. "pack": "git clean -xdf && npm install && vsce package",
  235. "postinstall": "node ./node_modules/vscode/bin/install",
  236. "pub": "git clean -xdf --exclude=node_modules/ && npm install && vsce publish",
  237. "vscode:prepublish": "tsc -p ./"
  238. }
  239. }