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.

383 lines
17 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. {
  2. "name": "gitlens",
  3. "version": "0.9.0",
  4. "author": {
  5. "name": "Eric Amodio",
  6. "email": "eamodio@gmail.com"
  7. },
  8. "publisher": "eamodio",
  9. "engines": {
  10. "vscode": "^1.7.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",
  20. "blame",
  21. "history",
  22. "codelens",
  23. "annotation"
  24. ],
  25. "galleryBanner": {
  26. "color": "#56098c",
  27. "theme": "dark"
  28. },
  29. "icon": "images/gitlens-icon.png",
  30. "preview": true,
  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. ],
  52. "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"
  53. },
  54. "gitlens.blame.annotation.sha": {
  55. "type": "boolean",
  56. "default": true,
  57. "description": "Specifies whether the commit sha will be shown in the blame annotations. Applies only to the `expanded` annotation style"
  58. },
  59. "gitlens.blame.annotation.author": {
  60. "type": "boolean",
  61. "default": true,
  62. "description": "Specifies whether the committer will be shown in the blame annotations. Applies only to the `expanded` annotation style"
  63. },
  64. "gitlens.blame.annotation.date": {
  65. "type": "boolean",
  66. "default": false,
  67. "description": "Specifies whether the commit date will be shown in the blame annotations. Applies only to the `expanded` annotation style"
  68. },
  69. "gitlens.codeLens.visibility": {
  70. "type": "string",
  71. "default": "auto",
  72. "enum": [
  73. "auto",
  74. "ondemand",
  75. "off"
  76. ],
  77. "description": "Specifies when CodeLens will be triggered in the active document. `auto` - automatically. `ondemand` - only when requested. `off` - disables all active document CodeLens"
  78. },
  79. "gitlens.codeLens.location": {
  80. "type": "string",
  81. "default": "document+containers",
  82. "enum": [
  83. "all",
  84. "document+containers",
  85. "document",
  86. "custom"
  87. ],
  88. "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`"
  89. },
  90. "gitlens.codeLens.locationCustomSymbols": {
  91. "type": "array",
  92. "description": "Specifies the set of document symbols to render active document CodeLens on. Must be a member of `SymbolKind`"
  93. },
  94. "gitlens.codeLens.languageLocations": {
  95. "type": "array",
  96. "default": [
  97. {
  98. "language": "json",
  99. "location": "document"
  100. },
  101. {
  102. "language": "css",
  103. "location": "document"
  104. },
  105. {
  106. "language": "scss",
  107. "location": "document"
  108. },
  109. {
  110. "language": "less",
  111. "location": "document"
  112. }
  113. ],
  114. "items": {
  115. "type": "object",
  116. "required": [
  117. "language",
  118. "location"
  119. ],
  120. "properties": {
  121. "language": {
  122. "type": "string",
  123. "description": "Specifies the language to which this CodeLens override applies"
  124. },
  125. "location": {
  126. "type": "string",
  127. "default": "document+containers",
  128. "enum": [
  129. "all",
  130. "document+containers",
  131. "document",
  132. "custom",
  133. "none"
  134. ],
  135. "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`"
  136. },
  137. "customSymbols": {
  138. "type": "string",
  139. "description": "Specifies the set of document symbols to render active document CodeLens on. Must be a member of `SymbolKind`"
  140. }
  141. }
  142. },
  143. "uniqueItems": true,
  144. "enum": [
  145. "all",
  146. "document+containers",
  147. "document",
  148. "custom"
  149. ],
  150. "description": "Specifies where CodeLens will be rendered in the active document for the specified languages"
  151. },
  152. "gitlens.codeLens.recentChange.enabled": {
  153. "type": "boolean",
  154. "default": true,
  155. "description": "Specifies whether the recent change CodeLens is shown"
  156. },
  157. "gitlens.codeLens.recentChange.command": {
  158. "type": "string",
  159. "default": "gitlens.showFileHistory",
  160. "enum": [
  161. "gitlens.toggleBlame",
  162. "gitlens.showBlameHistory",
  163. "gitlens.showFileHistory",
  164. "gitlens.diffWithPrevious",
  165. "git.viewFileHistory"
  166. ],
  167. "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 checked-in file with the previous commit. `git.viewFileHistory` - opens a file history picker, which requires the Git History (git log) extension"
  168. },
  169. "gitlens.codeLens.authors.enabled": {
  170. "type": "boolean",
  171. "default": true,
  172. "description": "Specifies whether the authors CodeLens is shown"
  173. },
  174. "gitlens.codeLens.authors.command": {
  175. "type": "string",
  176. "default": "gitlens.toggleBlame",
  177. "enum": [
  178. "gitlens.toggleBlame",
  179. "gitlens.showBlameHistory",
  180. "gitlens.showFileHistory",
  181. "gitlens.diffWithPrevious",
  182. "git.viewFileHistory"
  183. ],
  184. "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 checked-in file with the previous commit. `git.viewFileHistory` - opens a file history picker, which requires the Git History (git log) extension"
  185. },
  186. "gitlens.statusBar.enabled": {
  187. "type": "boolean",
  188. "default": true,
  189. "description": "Specifies whether blame information is shown in the status bar"
  190. },
  191. "gitlens.statusBar.command": {
  192. "type": "string",
  193. "default": "gitlens.toggleBlame",
  194. "enum": [
  195. "gitlens.toggleBlame",
  196. "gitlens.showBlameHistory",
  197. "gitlens.showFileHistory",
  198. "gitlens.diffWithPrevious",
  199. "gitlens.toggleCodeLens",
  200. "git.viewFileHistory"
  201. ],
  202. "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 checked-in file with the previous commit. `git.viewFileHistory` - opens a file history picker, which requires the Git History (git log) extension"
  203. },
  204. "gitlens.menus.fileDiff.enabled": {
  205. "type": "boolean",
  206. "default": true,
  207. "description": "Specifies whether file-based diff commands will be added to the context menus"
  208. },
  209. "gitlens.menus.lineDiff.enabled": {
  210. "type": "boolean",
  211. "default": false,
  212. "description": "Specifies whether line-based diff commands will be added to the context menus"
  213. },
  214. "gitlens.advanced.caching.enabled": {
  215. "type": "boolean",
  216. "default": true,
  217. "description": "Specifies whether git blame output will be cached"
  218. },
  219. "gitlens.advanced.caching.statusBar.maxLines": {
  220. "type": "number",
  221. "default": 0,
  222. "description": "Specifies whether status bar git blame output will be cached for larger documents"
  223. },
  224. "gitlens.advanced.debug": {
  225. "type": "boolean",
  226. "default": false,
  227. "description": "Specifies debug mode"
  228. },
  229. "gitlens.advanced.git": {
  230. "type": "string",
  231. "default": null,
  232. "description": "Specifies a git path to use"
  233. },
  234. "gitlens.advanced.output.level": {
  235. "type": "string",
  236. "default": "silent",
  237. "enum": [
  238. "silent",
  239. "errors",
  240. "verbose"
  241. ],
  242. "description": "Specifies whether how much (if any) output will be sent to the GitLens output channel"
  243. }
  244. }
  245. },
  246. "commands": [
  247. {
  248. "command": "gitlens.diffWithPrevious",
  249. "title": "Diff with Previous Commit",
  250. "category": "GitLens"
  251. },
  252. {
  253. "command": "gitlens.diffLineWithPrevious",
  254. "title": "Diff with Previous Commit (line)",
  255. "category": "GitLens"
  256. },
  257. {
  258. "command": "gitlens.diffWithWorking",
  259. "title": "Diff with Working Tree",
  260. "category": "GitLens"
  261. },
  262. {
  263. "command": "gitlens.diffLineWithWorking",
  264. "title": "Diff with Working Tree (line)",
  265. "category": "GitLens"
  266. },
  267. {
  268. "command": "gitlens.showBlame",
  269. "title": "Show Git Blame Annotations",
  270. "category": "GitLens"
  271. },
  272. {
  273. "command": "gitlens.toggleBlame",
  274. "title": "Toggle Git Blame Annotations",
  275. "category": "GitLens"
  276. },
  277. {
  278. "command": "gitlens.toggleCodeLens",
  279. "title": "Toggle Git CodeLens",
  280. "category": "GitLens"
  281. },
  282. {
  283. "command": "gitlens.showBlameHistory",
  284. "title": "Open Git Blame History",
  285. "category": "GitLens"
  286. },
  287. {
  288. "command": "gitlens.showFileHistory",
  289. "title": "Open Git File History",
  290. "category": "GitLens"
  291. }
  292. ],
  293. "menus": {
  294. "explorer/context": [
  295. {
  296. "command": "gitlens.diffWithPrevious",
  297. "alt": "gitlens.diffWithWorking",
  298. "when": "config.gitlens.menus.fileDiff.enabled && config.git.enabled",
  299. "group": "2_gitlens-file"
  300. }
  301. ],
  302. "editor/title": [
  303. {
  304. "command": "gitlens.toggleBlame",
  305. "when": "editorTextFocus && config.git.enabled",
  306. "group": "2_gitlens-blame"
  307. }
  308. ],
  309. "editor/context": [
  310. {
  311. "command": "gitlens.diffLineWithWorking",
  312. "when": "editorTextFocus && config.gitlens.menus.lineDiff.enabled && config.git.enabled",
  313. "group": "3_gitlens-line@1.0"
  314. },
  315. {
  316. "command": "gitlens.diffLineWithPrevious",
  317. "when": "editorTextFocus && config.gitlens.menus.lineDiff.enabled && config.git.enabled",
  318. "group": "3_gitlens-line@1.1"
  319. },
  320. {
  321. "command": "gitlens.diffWithWorking",
  322. "alt": "gitlens.diffLineWithWorking",
  323. "when": "editorTextFocus && config.gitlens.menus.fileDiff.enabled && config.git.enabled",
  324. "group": "3_gitlens-file@1.0"
  325. },
  326. {
  327. "command": "gitlens.diffWithPrevious",
  328. "alt": "gitlens.diffLineWithPrevious",
  329. "when": "editorTextFocus && config.gitlens.menus.fileDiff.enabled && config.git.enabled",
  330. "group": "3_gitlens-file@1.1"
  331. },
  332. {
  333. "command": "gitlens.toggleBlame",
  334. "when": "editorTextFocus && config.git.enabled",
  335. "group": "2_gitlens-blame"
  336. }
  337. ]
  338. },
  339. "keybindings": [
  340. {
  341. "command": "gitlens.toggleBlame",
  342. "key": "alt+b",
  343. "mac": "alt+b",
  344. "when": "editorTextFocus"
  345. },
  346. {
  347. "command": "gitlens.toggleCodeLens",
  348. "key": "alt+shift+b",
  349. "mac": "alt+shift+b",
  350. "when": "editorTextFocus"
  351. }
  352. ]
  353. },
  354. "activationEvents": [
  355. "*"
  356. ],
  357. "dependencies": {
  358. "ignore": "^3.2.0",
  359. "lodash.debounce": "^4.0.8",
  360. "lodash.escaperegexp": "^4.1.2",
  361. "lodash.isequal": "^4.4.0",
  362. "lodash.once": "^4.1.1",
  363. "moment": "^2.16.0",
  364. "spawn-rx": "^2.0.6",
  365. "tmp": "^0.0.30"
  366. },
  367. "devDependencies": {
  368. "mocha": "^3.1.2",
  369. "tslint": "^3.15.1",
  370. "typescript": "^2.0.9",
  371. "vscode": "^1.0.3",
  372. "@types/node": "^6.0.46",
  373. "@types/mocha": "^2.2.32",
  374. "@types/tmp": "^0.0.31"
  375. },
  376. "scripts": {
  377. "compile": "tsc -watch -p ./",
  378. "lint": "tslint --project tslint.json",
  379. "pack": "git clean -xdf && npm install && vsce package",
  380. "postinstall": "node ./node_modules/vscode/bin/install",
  381. "pub": "git clean -xdf --exclude=node_modules/ && npm install && vsce publish",
  382. "vscode:prepublish": "tsc -p ./"
  383. }
  384. }