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.

429 line
19 KiB

8 年之前
8 年之前
  1. {
  2. "name": "gitlens",
  3. "version": "1.4.1",
  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 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.png",
  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. ],
  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. "gitlens.showQuickFileHistory"
  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. `gitlens.showQuickFileHistory` - shows a file history picker"
  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. "gitlens.showQuickFileHistory"
  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. `gitlens.showQuickFileHistory` - shows a file history picker"
  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.showQuickFileHistory",
  194. "enum": [
  195. "gitlens.toggleBlame",
  196. "gitlens.showBlameHistory",
  197. "gitlens.showFileHistory",
  198. "gitlens.diffWithPrevious",
  199. "gitlens.toggleCodeLens",
  200. "gitlens.showQuickFileHistory"
  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. `gitlens.showQuickFileHistory` - shows a file history picker"
  203. },
  204. "gitlens.menus.diff.enabled": {
  205. "type": "boolean",
  206. "default": true,
  207. "description": "Specifies whether diff commands will be added to the context menus"
  208. },
  209. "gitlens.advanced.caching.enabled": {
  210. "type": "boolean",
  211. "default": true,
  212. "description": "Specifies whether git blame output will be cached"
  213. },
  214. "gitlens.advanced.caching.statusBar.maxLines": {
  215. "type": "number",
  216. "default": 0,
  217. "description": "Specifies whether status bar git blame output will be cached for larger documents"
  218. },
  219. "gitlens.advanced.debug": {
  220. "type": "boolean",
  221. "default": false,
  222. "description": "Specifies debug mode"
  223. },
  224. "gitlens.advanced.git": {
  225. "type": "string",
  226. "default": null,
  227. "description": "Specifies a git path to use"
  228. },
  229. "gitlens.advanced.gitignore.enabled": {
  230. "type": "boolean",
  231. "default": true,
  232. "description": "Specifies whether or not to parse the root .gitignore file for better performance (i.e. avoids blaming excluded files)"
  233. },
  234. "gitlens.advanced.maxQuickHistory": {
  235. "type": "number",
  236. "default": 200,
  237. "description": "Specifies the maximum number of QuickPick history entries to show"
  238. },
  239. "gitlens.advanced.output.level": {
  240. "type": "string",
  241. "default": "silent",
  242. "enum": [
  243. "silent",
  244. "errors",
  245. "verbose"
  246. ],
  247. "description": "Specifies how much (if any) output will be sent to the GitLens output channel"
  248. }
  249. }
  250. },
  251. "commands": [
  252. {
  253. "command": "gitlens.diffWithPrevious",
  254. "title": "Diff Commit with Previous",
  255. "category": "GitLens"
  256. },
  257. {
  258. "command": "gitlens.diffLineWithPrevious",
  259. "title": "Diff Commit (line) with Previous",
  260. "category": "GitLens"
  261. },
  262. {
  263. "command": "gitlens.diffWithWorking",
  264. "title": "Diff Commit with Working Tree",
  265. "category": "GitLens"
  266. },
  267. {
  268. "command": "gitlens.diffLineWithWorking",
  269. "title": "Diff Commit (line) with Working Tree",
  270. "category": "GitLens"
  271. },
  272. {
  273. "command": "gitlens.showBlame",
  274. "title": "Show Blame Annotations",
  275. "category": "GitLens"
  276. },
  277. {
  278. "command": "gitlens.toggleBlame",
  279. "title": "Toggle Blame Annotations",
  280. "category": "GitLens"
  281. },
  282. {
  283. "command": "gitlens.toggleCodeLens",
  284. "title": "Toggle Git CodeLens",
  285. "category": "GitLens"
  286. },
  287. {
  288. "command": "gitlens.showBlameHistory",
  289. "title": "Open Blame History Explorer",
  290. "category": "GitLens"
  291. },
  292. {
  293. "command": "gitlens.showFileHistory",
  294. "title": "Open File History Explorer",
  295. "category": "GitLens"
  296. },
  297. {
  298. "command": "gitlens.showQuickFileHistory",
  299. "title": "Show File History",
  300. "category": "GitLens"
  301. },
  302. {
  303. "command": "gitlens.showQuickRepoHistory",
  304. "title": "Show Repository History",
  305. "category": "GitLens"
  306. }
  307. ],
  308. "menus": {
  309. "explorer/context": [
  310. {
  311. "command": "gitlens.diffWithWorking",
  312. "when": "config.gitlens.menus.diff.enabled && config.git.enabled",
  313. "group": "2_gitlens-file"
  314. },
  315. {
  316. "command": "gitlens.diffWithPrevious",
  317. "when": "config.gitlens.menus.diff.enabled && config.git.enabled",
  318. "group": "2_gitlens-file"
  319. },
  320. {
  321. "command": "gitlens.showQuickFileHistory",
  322. "when": "config.git.enabled",
  323. "group": "3_gitlens-file"
  324. }
  325. ],
  326. "editor/title": [
  327. {
  328. "command": "gitlens.diffWithWorking",
  329. "when": "config.gitlens.menus.diff.enabled && config.git.enabled",
  330. "group": "2_gitlens"
  331. },
  332. {
  333. "command": "gitlens.diffWithPrevious",
  334. "when": "config.gitlens.menus.diff.enabled && config.git.enabled",
  335. "group": "2_gitlens"
  336. },
  337. {
  338. "command": "gitlens.showQuickFileHistory",
  339. "when": "editorTextFocus && config.git.enabled",
  340. "group": "3_gitlens"
  341. },
  342. {
  343. "command": "gitlens.toggleBlame",
  344. "when": "editorTextFocus && config.git.enabled",
  345. "group": "3_gitlens"
  346. }
  347. ],
  348. "editor/context": [
  349. {
  350. "command": "gitlens.diffWithWorking",
  351. "alt": "gitlens.diffLineWithWorking",
  352. "when": "editorTextFocus && config.gitlens.menus.diff.enabled && config.git.enabled",
  353. "group": "2_gitlens@1.0"
  354. },
  355. {
  356. "command": "gitlens.diffWithPrevious",
  357. "alt": "gitlens.diffLineWithPrevious",
  358. "when": "editorTextFocus && config.gitlens.menus.diff.enabled && config.git.enabled",
  359. "group": "2_gitlens@1.1"
  360. },
  361. {
  362. "command": "gitlens.showQuickFileHistory",
  363. "alt": "gitlens.showFileHistory",
  364. "when": "config.git.enabled",
  365. "group": "3_gitlens"
  366. },
  367. {
  368. "command": "gitlens.toggleBlame",
  369. "when": "editorTextFocus && config.git.enabled",
  370. "group": "3_gitlens"
  371. }
  372. ]
  373. },
  374. "keybindings": [
  375. {
  376. "command": "gitlens.toggleBlame",
  377. "key": "alt+b",
  378. "mac": "alt+b",
  379. "when": "editorTextFocus"
  380. },
  381. {
  382. "command": "gitlens.showQuickFileHistory",
  383. "key": "alt+h",
  384. "mac": "alt+h",
  385. "when": "editorTextFocus"
  386. },
  387. {
  388. "command": "gitlens.showQuickRepoHistory",
  389. "key": "shift+alt+h",
  390. "mac": "shift+alt+h"
  391. },
  392. {
  393. "command": "gitlens.toggleCodeLens",
  394. "key": "alt+shift+b",
  395. "mac": "alt+shift+b",
  396. "when": "editorTextFocus"
  397. }
  398. ]
  399. },
  400. "activationEvents": [
  401. "*"
  402. ],
  403. "scripts": {
  404. "compile": "tsc -watch -p ./",
  405. "lint": "tslint --project tslint.json",
  406. "pack": "git clean -xdf && npm install && vsce package",
  407. "postinstall": "node ./node_modules/vscode/bin/install",
  408. "pub": "git clean -xdf --exclude=node_modules/ && npm install && vsce publish",
  409. "vscode:prepublish": "tsc -p ./"
  410. },
  411. "dependencies": {
  412. "ignore": "^3.2.0",
  413. "lodash.debounce": "^4.0.8",
  414. "lodash.escaperegexp": "^4.1.2",
  415. "lodash.isequal": "^4.4.0",
  416. "lodash.once": "^4.1.1",
  417. "moment": "^2.17.1",
  418. "spawn-rx": "^2.0.7",
  419. "tmp": "^0.0.31"
  420. },
  421. "devDependencies": {
  422. "@types/node": "^6.0.55",
  423. "@types/mocha": "^2.2.35",
  424. "@types/tmp": "^0.0.32",
  425. "mocha": "^3.2.0",
  426. "tslint": "^4.2.0",
  427. "typescript": "^2.1.4",
  428. "vscode": "^1.0.3"
  429. }
  430. }