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.

552 lines
24 KiB

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