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.

536 lines
24 KiB

7 years ago
8 years ago
  1. {
  2. "name": "gitlens",
  3. "version": "2.0.2",
  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.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. "icon": {
  329. "dark": "images/git-icon-dark.svg",
  330. "light": "images/git-icon-light.svg"
  331. }
  332. },
  333. {
  334. "command": "gitlens.toggleCodeLens",
  335. "title": "Toggle Git CodeLens",
  336. "category": "GitLens"
  337. },
  338. {
  339. "command": "gitlens.showBlameHistory",
  340. "title": "Open Blame History Explorer",
  341. "category": "GitLens"
  342. },
  343. {
  344. "command": "gitlens.showFileHistory",
  345. "title": "Open File History Explorer",
  346. "category": "GitLens"
  347. },
  348. {
  349. "command": "gitlens.showQuickCommitDetails",
  350. "title": "Show Commit Details",
  351. "category": "GitLens"
  352. },
  353. {
  354. "command": "gitlens.showQuickFileHistory",
  355. "title": "Show File History",
  356. "category": "GitLens"
  357. },
  358. {
  359. "command": "gitlens.showQuickRepoHistory",
  360. "title": "Show Repository History",
  361. "category": "GitLens"
  362. },
  363. {
  364. "command": "gitlens.copyShaToClipboard",
  365. "title": "Copy Commit Sha to Clipboard",
  366. "category": "GitLens"
  367. }
  368. ],
  369. "menus": {
  370. "explorer/context": [
  371. {
  372. "command": "gitlens.showQuickFileHistory",
  373. "when": "config.git.enabled",
  374. "group": "gitlens"
  375. },
  376. {
  377. "command": "gitlens.diffWithPrevious",
  378. "when": "config.gitlens.menus.diff.enabled && config.git.enabled",
  379. "group": "gitlens_diff"
  380. },
  381. {
  382. "command": "gitlens.diffWithWorking",
  383. "when": "config.gitlens.menus.diff.enabled && config.git.enabled",
  384. "group": "gitlens_diff"
  385. }
  386. ],
  387. "editor/title": [
  388. {
  389. "command": "gitlens.toggleBlame",
  390. "when": "config.git.enabled",
  391. "group": "navigation@100"
  392. },
  393. {
  394. "command": "gitlens.showQuickFileHistory",
  395. "when": "config.git.enabled",
  396. "group": "1_gitlens"
  397. },
  398. {
  399. "command": "gitlens.diffWithPrevious",
  400. "when": "config.gitlens.menus.diff.enabled && config.git.enabled",
  401. "group": "1_gitlens_diff"
  402. },
  403. {
  404. "command": "gitlens.diffWithWorking",
  405. "when": "config.gitlens.menus.diff.enabled && config.git.enabled",
  406. "group": "1_gitlens_diff"
  407. }
  408. ],
  409. "editor/title/context": [
  410. {
  411. "command": "gitlens.toggleBlame",
  412. "when": "config.git.enabled",
  413. "group": "gitlens@1"
  414. },
  415. {
  416. "command": "gitlens.showQuickFileHistory",
  417. "when": "config.git.enabled",
  418. "group": "gitlens@2"
  419. }
  420. ],
  421. "editor/context": [
  422. {
  423. "command": "gitlens.diffLineWithPrevious",
  424. "when": "editorTextFocus && config.gitlens.menus.diff.enabled && config.git.enabled",
  425. "group": "1_gitlens@1"
  426. },
  427. {
  428. "command": "gitlens.diffLineWithWorking",
  429. "when": "editorTextFocus && config.gitlens.menus.diff.enabled && config.git.enabled",
  430. "group": "1_gitlens@2"
  431. },
  432. {
  433. "command": "gitlens.toggleBlame",
  434. "when": "editorTextFocus && config.git.enabled",
  435. "group": "2_gitlens@1"
  436. },
  437. {
  438. "command": "gitlens.showQuickFileHistory",
  439. "alt": "gitlens.showFileHistory",
  440. "when": "config.git.enabled",
  441. "group": "2_gitlens@2"
  442. },
  443. {
  444. "command": "gitlens.copyShaToClipboard",
  445. "when": "editorTextFocus && config.git.enabled",
  446. "group": "9_gitlens@1"
  447. }
  448. ]
  449. },
  450. "keybindings": [
  451. {
  452. "command": "gitlens.toggleBlame",
  453. "key": "alt+b",
  454. "mac": "alt+b",
  455. "when": "editorTextFocus"
  456. },
  457. {
  458. "command": "gitlens.toggleCodeLens",
  459. "key": "alt+shift+b",
  460. "mac": "alt+shift+b",
  461. "when": "editorTextFocus"
  462. },
  463. {
  464. "command": "gitlens.showQuickFileHistory",
  465. "key": "alt+h",
  466. "mac": "alt+h",
  467. "when": "editorTextFocus"
  468. },
  469. {
  470. "command": "gitlens.showQuickRepoHistory",
  471. "key": "shift+alt+h",
  472. "mac": "shift+alt+h"
  473. },
  474. {
  475. "command": "gitlens.showQuickCommitDetails",
  476. "key": "alt+c",
  477. "mac": "alt+c"
  478. },
  479. {
  480. "command": "gitlens.diffLineWithPrevious",
  481. "key": "alt+p",
  482. "mac": "alt+p",
  483. "when": "editorTextFocus"
  484. },
  485. {
  486. "command": "gitlens.diffWithPrevious",
  487. "key": "shift+alt+p",
  488. "mac": "shift+alt+p",
  489. "when": "editorTextFocus"
  490. },
  491. {
  492. "command": "gitlens.diffLineWithWorking",
  493. "key": "alt+w",
  494. "mac": "alt+w",
  495. "when": "editorTextFocus"
  496. },
  497. {
  498. "command": "gitlens.diffWithWorking",
  499. "key": "shift+alt+w",
  500. "mac": "shift+alt+w",
  501. "when": "editorTextFocus"
  502. }
  503. ]
  504. },
  505. "activationEvents": [
  506. "*"
  507. ],
  508. "scripts": {
  509. "compile": "tsc -watch -p ./",
  510. "lint": "tslint --project tslint.json",
  511. "pack": "git clean -xdf && npm install && vsce package",
  512. "postinstall": "node ./node_modules/vscode/bin/install",
  513. "pub": "git clean -xdf --exclude=node_modules/ && npm install && vsce publish",
  514. "vscode:prepublish": "tsc -p ./"
  515. },
  516. "dependencies": {
  517. "copy-paste": "^1.3.0",
  518. "ignore": "^3.2.2",
  519. "lodash.debounce": "^4.0.8",
  520. "lodash.escaperegexp": "^4.1.2",
  521. "lodash.isequal": "^4.5.0",
  522. "lodash.once": "^4.1.1",
  523. "moment": "^2.17.1",
  524. "spawn-rx": "^2.0.8",
  525. "tmp": "^0.0.31"
  526. },
  527. "devDependencies": {
  528. "@types/copy-paste": "^1.1.30",
  529. "@types/node": "^7.0.5",
  530. "@types/mocha": "^2.2.39",
  531. "@types/tmp": "^0.0.32",
  532. "mocha": "^3.2.0",
  533. "tslint": "^4.4.2",
  534. "typescript": "^2.1.6",
  535. "vscode": "^1.0.3"
  536. }
  537. }