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.

643 lines
28 KiB

7 years ago
8 years ago
  1. {
  2. "name": "gitlens",
  3. "version": "2.5.6",
  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": "\u2026",
  105. "description": "Specifies the ellipse character to use in blame annotations"
  106. },
  107. "gitlens.blame.annotation.characters.indent": {
  108. "type": "string",
  109. "default": "\u2759",
  110. "description": "Specifies the indent character to use in `compact` blame annotations"
  111. },
  112. "gitlens.blame.annotation.characters.padding": {
  113. "type": "string",
  114. "default": "\u00a0",
  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": "\u2022",
  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.showQuickCommitDetails",
  213. "enum": [
  214. "gitlens.toggleBlame",
  215. "gitlens.showBlameHistory",
  216. "gitlens.showFileHistory",
  217. "gitlens.diffWithPrevious",
  218. "gitlens.showQuickCommitDetails",
  219. "gitlens.showQuickFileHistory",
  220. "gitlens.showQuickRepoHistory"
  221. ],
  222. "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.showQuickCommitDetails` - shows a commit details quick pick. `gitlens.showQuickFileHistory` - shows a file history quick pick. `gitlens.showQuickFileHistory` - shows a repository history quick pick"
  223. },
  224. "gitlens.codeLens.authors.enabled": {
  225. "type": "boolean",
  226. "default": true,
  227. "description": "Specifies whether the authors CodeLens is shown"
  228. },
  229. "gitlens.codeLens.authors.command": {
  230. "type": "string",
  231. "default": "gitlens.toggleBlame",
  232. "enum": [
  233. "gitlens.toggleBlame",
  234. "gitlens.showBlameHistory",
  235. "gitlens.showFileHistory",
  236. "gitlens.diffWithPrevious",
  237. "gitlens.showQuickCommitDetails",
  238. "gitlens.showQuickFileHistory",
  239. "gitlens.showQuickRepoHistory"
  240. ],
  241. "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.showQuickCommitDetails` - shows a commit details quick pick. `gitlens.showQuickFileHistory` - shows a file history quick pick. `gitlens.showQuickFileHistory` - shows a repository history quick pick"
  242. },
  243. "gitlens.menus.diff.enabled": {
  244. "type": "boolean",
  245. "default": true,
  246. "description": "Specifies whether diff commands will be added to the context menus"
  247. },
  248. "gitlens.statusBar.enabled": {
  249. "type": "boolean",
  250. "default": true,
  251. "description": "Specifies whether blame information is shown in the status bar"
  252. },
  253. "gitlens.statusBar.command": {
  254. "type": "string",
  255. "default": "gitlens.showQuickCommitDetails",
  256. "enum": [
  257. "gitlens.toggleBlame",
  258. "gitlens.showBlameHistory",
  259. "gitlens.showFileHistory",
  260. "gitlens.diffWithPrevious",
  261. "gitlens.toggleCodeLens",
  262. "gitlens.showQuickCommitDetails",
  263. "gitlens.showQuickFileHistory",
  264. "gitlens.showQuickRepoHistory"
  265. ],
  266. "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.showQuickCommitDetails` - shows a commit details quick pick. `gitlens.showQuickFileHistory` - shows a file history quick pick. `gitlens.showQuickFileHistory` - shows a repository history quick pick"
  267. },
  268. "gitlens.advanced.caching.enabled": {
  269. "type": "boolean",
  270. "default": true,
  271. "description": "Specifies whether git blame output will be cached"
  272. },
  273. "gitlens.advanced.caching.statusBar.maxLines": {
  274. "type": "number",
  275. "default": 0,
  276. "description": "Specifies whether status bar git blame output will be cached for larger documents"
  277. },
  278. "gitlens.advanced.debug": {
  279. "type": "boolean",
  280. "default": false,
  281. "description": "Specifies debug mode"
  282. },
  283. "gitlens.advanced.git": {
  284. "type": "string",
  285. "default": null,
  286. "description": "Specifies a git path to use"
  287. },
  288. "gitlens.advanced.gitignore.enabled": {
  289. "type": "boolean",
  290. "default": true,
  291. "description": "Specifies whether or not to parse the root .gitignore file for better performance (i.e. avoids blaming excluded files)"
  292. },
  293. "gitlens.advanced.maxQuickHistory": {
  294. "type": "number",
  295. "default": 200,
  296. "description": "Specifies the maximum number of QuickPick history entries to show"
  297. },
  298. "gitlens.advanced.output.level": {
  299. "type": "string",
  300. "default": "silent",
  301. "enum": [
  302. "silent",
  303. "errors",
  304. "verbose"
  305. ],
  306. "description": "Specifies how much (if any) output will be sent to the GitLens output channel"
  307. },
  308. "gitlens.advanced.quickPick.closeOnFocusOut": {
  309. "type": "boolean",
  310. "default": true,
  311. "description": "Specifies whether or not to close the QuickPick menu when focus is lost"
  312. },
  313. "gitlens.advanced.toggleWhitespace.enabled": {
  314. "type": "boolean",
  315. "default": false,
  316. "description": "Specifies whether or not to toggle whitespace off then showing blame annotations (*may* be required by certain fonts/themes)"
  317. }
  318. }
  319. },
  320. "commands": [
  321. {
  322. "command": "gitlens.diffWithPrevious",
  323. "title": "Compare with Previous Commit",
  324. "category": "GitLens"
  325. },
  326. {
  327. "command": "gitlens.diffLineWithPrevious",
  328. "title": "Compare Line with Previous Commit",
  329. "category": "GitLens"
  330. },
  331. {
  332. "command": "gitlens.diffWithWorking",
  333. "title": "Compare with Working Tree",
  334. "category": "GitLens"
  335. },
  336. {
  337. "command": "gitlens.diffLineWithWorking",
  338. "title": "Compare Line with Working Tree",
  339. "category": "GitLens"
  340. },
  341. {
  342. "command": "gitlens.showBlame",
  343. "title": "Show Blame Annotations",
  344. "category": "GitLens"
  345. },
  346. {
  347. "command": "gitlens.toggleBlame",
  348. "title": "Toggle Blame Annotations",
  349. "category": "GitLens",
  350. "icon": {
  351. "dark": "images/git-icon-dark.svg",
  352. "light": "images/git-icon-light.svg"
  353. }
  354. },
  355. {
  356. "command": "gitlens.toggleCodeLens",
  357. "title": "Toggle Git CodeLens",
  358. "category": "GitLens"
  359. },
  360. {
  361. "command": "gitlens.showBlameHistory",
  362. "title": "Open Blame History Explorer",
  363. "category": "GitLens"
  364. },
  365. {
  366. "command": "gitlens.showFileHistory",
  367. "title": "Open File History Explorer",
  368. "category": "GitLens"
  369. },
  370. {
  371. "command": "gitlens.showQuickCommitDetails",
  372. "title": "Show Commit Details",
  373. "category": "GitLens"
  374. },
  375. {
  376. "command": "gitlens.showQuickFileHistory",
  377. "title": "Show File History",
  378. "category": "GitLens"
  379. },
  380. {
  381. "command": "gitlens.showQuickRepoHistory",
  382. "title": "Show Repository History",
  383. "category": "GitLens"
  384. },
  385. {
  386. "command": "gitlens.copyShaToClipboard",
  387. "title": "Copy Commit Sha to Clipboard",
  388. "category": "GitLens"
  389. },
  390. {
  391. "command": "gitlens.copyMessageToClipboard",
  392. "title": "Copy Commit Message to Clipboard",
  393. "category": "GitLens"
  394. }
  395. ],
  396. "menus": {
  397. "commandPalette": [
  398. {
  399. "command": "gitlens.diffWithPrevious",
  400. "when": "gitlens:enabled"
  401. },
  402. {
  403. "command": "gitlens.diffLineWithPrevious",
  404. "when": "gitlens:enabled"
  405. },
  406. {
  407. "command": "gitlens.diffWithWorking",
  408. "when": "gitlens:enabled"
  409. },
  410. {
  411. "command": "gitlens.diffLineWithWorking",
  412. "when": "gitlens:enabled"
  413. },
  414. {
  415. "command": "gitlens.showBlame",
  416. "when": "gitlens:enabled"
  417. },
  418. {
  419. "command": "gitlens.toggleBlame",
  420. "when": "gitlens:enabled"
  421. },
  422. {
  423. "command": "gitlens.toggleCodeLens",
  424. "when": "gitlens:enabled"
  425. },
  426. {
  427. "command": "gitlens.showBlameHistory",
  428. "when": "gitlens:enabled"
  429. },
  430. {
  431. "command": "gitlens.showFileHistory",
  432. "when": "gitlens:enabled"
  433. },
  434. {
  435. "command": "gitlens.showQuickCommitDetails",
  436. "when": "gitlens:enabled"
  437. },
  438. {
  439. "command": "gitlens.showQuickFileHistory",
  440. "when": "gitlens:enabled"
  441. },
  442. {
  443. "command": "gitlens.showQuickRepoHistory",
  444. "when": "gitlens:enabled"
  445. },
  446. {
  447. "command": "gitlens.copyShaToClipboard",
  448. "when": "gitlens:enabled"
  449. },
  450. {
  451. "command": "gitlens.copyMessageToClipboard",
  452. "when": "gitlens:enabled"
  453. }
  454. ],
  455. "explorer/context": [
  456. {
  457. "command": "gitlens.showQuickFileHistory",
  458. "when": "gitlens:enabled",
  459. "group": "gitlens"
  460. },
  461. {
  462. "command": "gitlens.diffWithPrevious",
  463. "when": "config.gitlens.menus.diff.enabled && gitlens:enabled",
  464. "group": "gitlens_diff"
  465. },
  466. {
  467. "command": "gitlens.diffWithWorking",
  468. "when": "config.gitlens.menus.diff.enabled && gitlens:enabled",
  469. "group": "gitlens_diff"
  470. }
  471. ],
  472. "editor/title": [
  473. {
  474. "command": "gitlens.toggleBlame",
  475. "when": "gitlens:enabled",
  476. "group": "navigation@100"
  477. },
  478. {
  479. "command": "gitlens.showQuickFileHistory",
  480. "when": "gitlens:enabled",
  481. "group": "1_gitlens"
  482. },
  483. {
  484. "command": "gitlens.diffWithPrevious",
  485. "when": "config.gitlens.menus.diff.enabled && gitlens:enabled",
  486. "group": "1_gitlens_diff"
  487. },
  488. {
  489. "command": "gitlens.diffWithWorking",
  490. "when": "config.gitlens.menus.diff.enabled && gitlens:enabled",
  491. "group": "1_gitlens_diff"
  492. }
  493. ],
  494. "editor/title/context": [
  495. {
  496. "command": "gitlens.toggleBlame",
  497. "when": "gitlens:enabled",
  498. "group": "gitlens@1"
  499. },
  500. {
  501. "command": "gitlens.showQuickFileHistory",
  502. "when": "gitlens:enabled",
  503. "group": "gitlens@2"
  504. }
  505. ],
  506. "editor/context": [
  507. {
  508. "command": "gitlens.diffLineWithPrevious",
  509. "when": "editorTextFocus && config.gitlens.menus.diff.enabled && gitlens:enabled",
  510. "group": "1_gitlens@1"
  511. },
  512. {
  513. "command": "gitlens.diffLineWithWorking",
  514. "when": "editorTextFocus && config.gitlens.menus.diff.enabled && gitlens:enabled",
  515. "group": "1_gitlens@2"
  516. },
  517. {
  518. "command": "gitlens.showQuickCommitDetails",
  519. "when": "editorTextFocus && gitlens:enabled",
  520. "group": "1_gitlens@3"
  521. },
  522. {
  523. "command": "gitlens.diffWithPrevious",
  524. "when": "editorTextFocus && config.gitlens.menus.diff.enabled && gitlens:enabled",
  525. "group": "1_gitlens-file@1"
  526. },
  527. {
  528. "command": "gitlens.diffWithWorking",
  529. "when": "editorTextFocus && config.gitlens.menus.diff.enabled && gitlens:enabled",
  530. "group": "1_gitlens-file@2"
  531. },
  532. {
  533. "command": "gitlens.toggleBlame",
  534. "when": "editorTextFocus && gitlens:enabled",
  535. "group": "2_gitlens@1"
  536. },
  537. {
  538. "command": "gitlens.showQuickFileHistory",
  539. "alt": "gitlens.showFileHistory",
  540. "when": "gitlens:enabled",
  541. "group": "2_gitlens@2"
  542. },
  543. {
  544. "command": "gitlens.copyShaToClipboard",
  545. "when": "editorTextFocus && gitlens:enabled",
  546. "group": "9_gitlens@1"
  547. },
  548. {
  549. "command": "gitlens.copyMessageToClipboard",
  550. "when": "editorTextFocus && gitlens:enabled",
  551. "group": "9_gitlens@2"
  552. }
  553. ]
  554. },
  555. "keybindings": [
  556. {
  557. "command": "gitlens.toggleBlame",
  558. "key": "alt+b",
  559. "mac": "alt+b",
  560. "when": "editorTextFocus && gitlens:enabled"
  561. },
  562. {
  563. "command": "gitlens.toggleCodeLens",
  564. "key": "alt+shift+b",
  565. "mac": "alt+shift+b",
  566. "when": "editorTextFocus && gitlens:enabled"
  567. },
  568. {
  569. "command": "gitlens.showQuickFileHistory",
  570. "key": "alt+h",
  571. "mac": "alt+h",
  572. "when": "gitlens:enabled"
  573. },
  574. {
  575. "command": "gitlens.showQuickRepoHistory",
  576. "key": "shift+alt+h",
  577. "mac": "shift+alt+h",
  578. "when": "gitlens:enabled"
  579. },
  580. {
  581. "command": "gitlens.showQuickCommitDetails",
  582. "key": "alt+c",
  583. "mac": "alt+c",
  584. "when": "editorTextFocus && gitlens:enabled"
  585. },
  586. {
  587. "command": "gitlens.diffLineWithPrevious",
  588. "key": "alt+p",
  589. "mac": "alt+p",
  590. "when": "editorTextFocus && gitlens:enabled"
  591. },
  592. {
  593. "command": "gitlens.diffWithPrevious",
  594. "key": "shift+alt+p",
  595. "mac": "shift+alt+p",
  596. "when": "editorTextFocus && gitlens:enabled"
  597. },
  598. {
  599. "command": "gitlens.diffLineWithWorking",
  600. "key": "alt+w",
  601. "mac": "alt+w",
  602. "when": "editorTextFocus && gitlens:enabled"
  603. },
  604. {
  605. "command": "gitlens.diffWithWorking",
  606. "key": "shift+alt+w",
  607. "mac": "shift+alt+w",
  608. "when": "editorTextFocus && gitlens:enabled"
  609. }
  610. ]
  611. },
  612. "activationEvents": [
  613. "*"
  614. ],
  615. "scripts": {
  616. "compile": "tsc -watch -p ./",
  617. "lint": "tslint --project tslint.json",
  618. "pack": "git clean -xdf && npm install && vsce package",
  619. "postinstall": "node ./node_modules/vscode/bin/install",
  620. "pub": "git clean -xdf --exclude=node_modules/ && npm install && vsce publish",
  621. "vscode:prepublish": "tsc -p ./"
  622. },
  623. "dependencies": {
  624. "copy-paste": "^1.3.0",
  625. "ignore": "^3.2.4",
  626. "lodash.debounce": "^4.0.8",
  627. "lodash.escaperegexp": "^4.1.2",
  628. "lodash.isequal": "^4.5.0",
  629. "lodash.once": "^4.1.1",
  630. "moment": "^2.17.1",
  631. "spawn-rx": "^2.0.8",
  632. "tmp": "^0.0.31"
  633. },
  634. "devDependencies": {
  635. "@types/copy-paste": "^1.1.30",
  636. "@types/node": "^7.0.5",
  637. "@types/mocha": "^2.2.39",
  638. "@types/tmp": "^0.0.32",
  639. "mocha": "^3.2.0",
  640. "tslint": "^4.4.2",
  641. "typescript": "^2.2.1",
  642. "vscode": "^1.0.3"
  643. }
  644. }