No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

484 líneas
22 KiB

hace 7 años
hace 8 años
hace 8 años
  1. {
  2. "name": "gitlens",
  3. "version": "2.0.1",
  4. "author": {
  5. "name": "Eric Amodio",
  6. "email": "eamodio@gmail.com"
  7. },
  8. "publisher": "eamodio",
  9. "engines": {
  10. "vscode": "^1.9.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. "trailing"
  52. ],
  53. "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 before every line. `trailing` - shows an annotation after every line"
  54. },
  55. "gitlens.blame.annotation.sha": {
  56. "type": "boolean",
  57. "default": true,
  58. "description": "Specifies whether the commit sha will be shown in the blame annotations. Applies only to the `expanded` & `trailing` annotation styles"
  59. },
  60. "gitlens.blame.annotation.author": {
  61. "type": "boolean",
  62. "default": true,
  63. "description": "Specifies whether the committer will be shown in the blame annotations. Applies only to the `expanded` & `trailing` annotation styles"
  64. },
  65. "gitlens.blame.annotation.date": {
  66. "type": "string",
  67. "default": "off",
  68. "enum": [
  69. "off",
  70. "relative",
  71. "absolute"
  72. ],
  73. "description": "Specifies whether and how the commit date will be shown in the blame annotations. Applies only to the `expanded` & `trailing` annotation styles"
  74. },
  75. "gitlens.blame.annotation.message": {
  76. "type": "boolean",
  77. "default": false,
  78. "description": "Specifies whether the commit message will be shown in the blame annotations. Applies only to the `expanded` & `trailing` annotation styles"
  79. },
  80. "gitlens.blame.annotation.activeLine": {
  81. "type": "string",
  82. "default": "both",
  83. "enum": [
  84. "off",
  85. "inline",
  86. "hover",
  87. "both"
  88. ],
  89. "description": "Specifies whether and how to show blame annotations on the active line. `off` - no annotation. `inline` - adds a trailing annotation to the active line. `hover` - adds hover annotation to the active line. `both` - adds both `inline` and `hover` annotations"
  90. },
  91. "gitlens.blame.annotation.characters.ellipse": {
  92. "type": "string",
  93. "default": "\\2026",
  94. "description": "Specifies the ellipse character to use in blame annotations"
  95. },
  96. "gitlens.blame.annotation.characters.indent": {
  97. "type": "string",
  98. "default": "\\2759",
  99. "description": "Specifies the indent character to use in `compact` blame annotations"
  100. },
  101. "gitlens.blame.annotation.characters.padding": {
  102. "type": "string",
  103. "default": "\\00a0",
  104. "description": "Specifies the padding character (typically a non-breaking space) to use in blame annotations"
  105. },
  106. "gitlens.blame.annotation.characters.separator": {
  107. "type": "string",
  108. "default": "\\2022",
  109. "description": "Specifies the separator character to use in blame annotations"
  110. },
  111. "gitlens.codeLens.visibility": {
  112. "type": "string",
  113. "default": "auto",
  114. "enum": [
  115. "auto",
  116. "ondemand",
  117. "off"
  118. ],
  119. "description": "Specifies when CodeLens will be triggered in the active document. `auto` - automatically. `ondemand` - only when requested. `off` - disables all active document CodeLens"
  120. },
  121. "gitlens.codeLens.location": {
  122. "type": "string",
  123. "default": "document+containers",
  124. "enum": [
  125. "all",
  126. "document+containers",
  127. "document",
  128. "custom"
  129. ],
  130. "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`"
  131. },
  132. "gitlens.codeLens.locationCustomSymbols": {
  133. "type": "array",
  134. "description": "Specifies the set of document symbols to render active document CodeLens on. Must be a member of `SymbolKind`"
  135. },
  136. "gitlens.codeLens.languageLocations": {
  137. "type": "array",
  138. "default": [
  139. {
  140. "language": "json",
  141. "location": "document"
  142. },
  143. {
  144. "language": "css",
  145. "location": "document"
  146. },
  147. {
  148. "language": "scss",
  149. "location": "document"
  150. },
  151. {
  152. "language": "less",
  153. "location": "document"
  154. }
  155. ],
  156. "items": {
  157. "type": "object",
  158. "required": [
  159. "language",
  160. "location"
  161. ],
  162. "properties": {
  163. "language": {
  164. "type": "string",
  165. "description": "Specifies the language to which this CodeLens override applies"
  166. },
  167. "location": {
  168. "type": "string",
  169. "default": "document+containers",
  170. "enum": [
  171. "all",
  172. "document+containers",
  173. "document",
  174. "custom",
  175. "none"
  176. ],
  177. "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`"
  178. },
  179. "customSymbols": {
  180. "type": "string",
  181. "description": "Specifies the set of document symbols to render active document CodeLens on. Must be a member of `SymbolKind`"
  182. }
  183. }
  184. },
  185. "uniqueItems": true,
  186. "enum": [
  187. "all",
  188. "document+containers",
  189. "document",
  190. "custom"
  191. ],
  192. "description": "Specifies where CodeLens will be rendered in the active document for the specified languages"
  193. },
  194. "gitlens.codeLens.recentChange.enabled": {
  195. "type": "boolean",
  196. "default": true,
  197. "description": "Specifies whether the recent change CodeLens is shown"
  198. },
  199. "gitlens.codeLens.recentChange.command": {
  200. "type": "string",
  201. "default": "gitlens.showFileHistory",
  202. "enum": [
  203. "gitlens.toggleBlame",
  204. "gitlens.showBlameHistory",
  205. "gitlens.showFileHistory",
  206. "gitlens.diffWithPrevious",
  207. "gitlens.showQuickFileHistory"
  208. ],
  209. "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"
  210. },
  211. "gitlens.codeLens.authors.enabled": {
  212. "type": "boolean",
  213. "default": true,
  214. "description": "Specifies whether the authors CodeLens is shown"
  215. },
  216. "gitlens.codeLens.authors.command": {
  217. "type": "string",
  218. "default": "gitlens.toggleBlame",
  219. "enum": [
  220. "gitlens.toggleBlame",
  221. "gitlens.showBlameHistory",
  222. "gitlens.showFileHistory",
  223. "gitlens.diffWithPrevious",
  224. "gitlens.showQuickFileHistory"
  225. ],
  226. "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"
  227. },
  228. "gitlens.menus.diff.enabled": {
  229. "type": "boolean",
  230. "default": true,
  231. "description": "Specifies whether diff commands will be added to the context menus"
  232. },
  233. "gitlens.statusBar.enabled": {
  234. "type": "boolean",
  235. "default": true,
  236. "description": "Specifies whether blame information is shown in the status bar"
  237. },
  238. "gitlens.statusBar.command": {
  239. "type": "string",
  240. "default": "gitlens.showQuickFileHistory",
  241. "enum": [
  242. "gitlens.toggleBlame",
  243. "gitlens.showBlameHistory",
  244. "gitlens.showFileHistory",
  245. "gitlens.diffWithPrevious",
  246. "gitlens.toggleCodeLens",
  247. "gitlens.showQuickFileHistory"
  248. ],
  249. "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"
  250. },
  251. "gitlens.advanced.caching.enabled": {
  252. "type": "boolean",
  253. "default": true,
  254. "description": "Specifies whether git blame output will be cached"
  255. },
  256. "gitlens.advanced.caching.statusBar.maxLines": {
  257. "type": "number",
  258. "default": 0,
  259. "description": "Specifies whether status bar git blame output will be cached for larger documents"
  260. },
  261. "gitlens.advanced.debug": {
  262. "type": "boolean",
  263. "default": false,
  264. "description": "Specifies debug mode"
  265. },
  266. "gitlens.advanced.git": {
  267. "type": "string",
  268. "default": null,
  269. "description": "Specifies a git path to use"
  270. },
  271. "gitlens.advanced.gitignore.enabled": {
  272. "type": "boolean",
  273. "default": true,
  274. "description": "Specifies whether or not to parse the root .gitignore file for better performance (i.e. avoids blaming excluded files)"
  275. },
  276. "gitlens.advanced.maxQuickHistory": {
  277. "type": "number",
  278. "default": 200,
  279. "description": "Specifies the maximum number of QuickPick history entries to show"
  280. },
  281. "gitlens.advanced.output.level": {
  282. "type": "string",
  283. "default": "silent",
  284. "enum": [
  285. "silent",
  286. "errors",
  287. "verbose"
  288. ],
  289. "description": "Specifies how much (if any) output will be sent to the GitLens output channel"
  290. },
  291. "gitlens.advanced.toggleWhitespace.enabled": {
  292. "type": "boolean",
  293. "default": false,
  294. "description": "Specifies whether or not to toggle whitespace off then showing blame annotations (*may* be required by certain fonts/themes)"
  295. }
  296. }
  297. },
  298. "commands": [
  299. {
  300. "command": "gitlens.diffWithPrevious",
  301. "title": "Diff Commit with Previous",
  302. "category": "GitLens"
  303. },
  304. {
  305. "command": "gitlens.diffLineWithPrevious",
  306. "title": "Diff Commit (line) with Previous",
  307. "category": "GitLens"
  308. },
  309. {
  310. "command": "gitlens.diffWithWorking",
  311. "title": "Diff Commit with Working Tree",
  312. "category": "GitLens"
  313. },
  314. {
  315. "command": "gitlens.diffLineWithWorking",
  316. "title": "Diff Commit (line) with Working Tree",
  317. "category": "GitLens"
  318. },
  319. {
  320. "command": "gitlens.showBlame",
  321. "title": "Show Blame Annotations",
  322. "category": "GitLens"
  323. },
  324. {
  325. "command": "gitlens.toggleBlame",
  326. "title": "Toggle Blame Annotations",
  327. "category": "GitLens"
  328. },
  329. {
  330. "command": "gitlens.toggleCodeLens",
  331. "title": "Toggle Git CodeLens",
  332. "category": "GitLens"
  333. },
  334. {
  335. "command": "gitlens.showBlameHistory",
  336. "title": "Open Blame History Explorer",
  337. "category": "GitLens"
  338. },
  339. {
  340. "command": "gitlens.showFileHistory",
  341. "title": "Open File History Explorer",
  342. "category": "GitLens"
  343. },
  344. {
  345. "command": "gitlens.showQuickFileHistory",
  346. "title": "Show File History",
  347. "category": "GitLens"
  348. },
  349. {
  350. "command": "gitlens.showQuickRepoHistory",
  351. "title": "Show Repository History",
  352. "category": "GitLens"
  353. }
  354. ],
  355. "menus": {
  356. "explorer/context": [
  357. {
  358. "command": "gitlens.diffWithWorking",
  359. "when": "config.gitlens.menus.diff.enabled && config.git.enabled",
  360. "group": "2_gitlens-file"
  361. },
  362. {
  363. "command": "gitlens.diffWithPrevious",
  364. "when": "config.gitlens.menus.diff.enabled && config.git.enabled",
  365. "group": "2_gitlens-file"
  366. },
  367. {
  368. "command": "gitlens.showQuickFileHistory",
  369. "when": "config.git.enabled",
  370. "group": "3_gitlens-file"
  371. }
  372. ],
  373. "editor/title": [
  374. {
  375. "command": "gitlens.diffWithWorking",
  376. "when": "config.gitlens.menus.diff.enabled && config.git.enabled",
  377. "group": "2_gitlens"
  378. },
  379. {
  380. "command": "gitlens.diffWithPrevious",
  381. "when": "config.gitlens.menus.diff.enabled && config.git.enabled",
  382. "group": "2_gitlens"
  383. },
  384. {
  385. "command": "gitlens.showQuickFileHistory",
  386. "when": "editorTextFocus && config.git.enabled",
  387. "group": "3_gitlens"
  388. },
  389. {
  390. "command": "gitlens.toggleBlame",
  391. "when": "editorTextFocus && config.git.enabled",
  392. "group": "3_gitlens"
  393. }
  394. ],
  395. "editor/context": [
  396. {
  397. "command": "gitlens.diffLineWithWorking",
  398. "when": "editorTextFocus && config.gitlens.menus.diff.enabled && config.git.enabled",
  399. "group": "2_gitlens@1.0"
  400. },
  401. {
  402. "command": "gitlens.diffLineWithPrevious",
  403. "when": "editorTextFocus && config.gitlens.menus.diff.enabled && config.git.enabled",
  404. "group": "2_gitlens@1.1"
  405. },
  406. {
  407. "command": "gitlens.diffWithWorking",
  408. "when": "editorTextFocus && config.gitlens.menus.diff.enabled && config.git.enabled",
  409. "group": "3_gitlens@1.0"
  410. },
  411. {
  412. "command": "gitlens.diffWithPrevious",
  413. "when": "editorTextFocus && config.gitlens.menus.diff.enabled && config.git.enabled",
  414. "group": "3_gitlens@1.1"
  415. },
  416. {
  417. "command": "gitlens.showQuickFileHistory",
  418. "alt": "gitlens.showFileHistory",
  419. "when": "config.git.enabled",
  420. "group": "4_gitlens"
  421. },
  422. {
  423. "command": "gitlens.toggleBlame",
  424. "when": "editorTextFocus && config.git.enabled",
  425. "group": "4_gitlens"
  426. }
  427. ]
  428. },
  429. "keybindings": [
  430. {
  431. "command": "gitlens.toggleBlame",
  432. "key": "alt+b",
  433. "mac": "alt+b",
  434. "when": "editorTextFocus"
  435. },
  436. {
  437. "command": "gitlens.showQuickFileHistory",
  438. "key": "alt+h",
  439. "mac": "alt+h",
  440. "when": "editorTextFocus"
  441. },
  442. {
  443. "command": "gitlens.showQuickRepoHistory",
  444. "key": "shift+alt+h",
  445. "mac": "shift+alt+h"
  446. },
  447. {
  448. "command": "gitlens.toggleCodeLens",
  449. "key": "alt+shift+b",
  450. "mac": "alt+shift+b",
  451. "when": "editorTextFocus"
  452. }
  453. ]
  454. },
  455. "activationEvents": [
  456. "*"
  457. ],
  458. "scripts": {
  459. "compile": "tsc -watch -p ./",
  460. "lint": "tslint --project tslint.json",
  461. "pack": "git clean -xdf && npm install && vsce package",
  462. "postinstall": "node ./node_modules/vscode/bin/install",
  463. "pub": "git clean -xdf --exclude=node_modules/ && npm install && vsce publish",
  464. "vscode:prepublish": "tsc -p ./"
  465. },
  466. "dependencies": {
  467. "ignore": "^3.2.0",
  468. "lodash.debounce": "^4.0.8",
  469. "lodash.escaperegexp": "^4.1.2",
  470. "lodash.isequal": "^4.5.0",
  471. "lodash.once": "^4.1.1",
  472. "moment": "^2.17.1",
  473. "spawn-rx": "^2.0.8",
  474. "tmp": "^0.0.31"
  475. },
  476. "devDependencies": {
  477. "@types/node": "^7.0.5",
  478. "@types/mocha": "^2.2.39",
  479. "@types/tmp": "^0.0.32",
  480. "mocha": "^3.2.0",
  481. "tslint": "^4.4.2",
  482. "typescript": "^2.1.5",
  483. "vscode": "^1.0.3"
  484. }
  485. }