25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

888 lines
38 KiB

7 년 전
8 년 전
  1. {
  2. "name": "gitlens",
  3. "version": "3.3.3",
  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": "Supercharge the built-in Visual Studio Code's Git capabilities \u2014 Visualize code authorship at a glance via inline blame annotations and CodeLens, seamlessly navigate and explore the history of a file or branch, gain valuable insights via powerful comparision commands, and so much more",
  15. "badges": [
  16. {
  17. "url": "https://badges.gitter.im/vscode-gitlens/Lobby.svg",
  18. "href": "https://gitter.im/vscode-gitlens/Lobby",
  19. "description": "Chat at https://gitter.im/vscode-gitlens/Lobby"
  20. }
  21. ],
  22. "categories": [
  23. "Other"
  24. ],
  25. "keywords": [
  26. "git"
  27. ],
  28. "galleryBanner": {
  29. "color": "#56098c",
  30. "theme": "dark"
  31. },
  32. "icon": "images/gitlens-icon.svg",
  33. "preview": false,
  34. "homepage": "https://github.com/eamodio/vscode-gitlens/blob/master/README.md",
  35. "bugs": {
  36. "url": "https://github.com/eamodio/vscode-gitlens/issues"
  37. },
  38. "repository": {
  39. "type": "git",
  40. "url": "https://github.com/eamodio/vscode-gitlens.git"
  41. },
  42. "main": "./out/src/extension",
  43. "contributes": {
  44. "configuration": {
  45. "type": "object",
  46. "title": "GitLens configuration",
  47. "properties": {
  48. "gitlens.blame.annotation.style": {
  49. "type": "string",
  50. "default": "expanded",
  51. "enum": [
  52. "compact",
  53. "expanded",
  54. "trailing"
  55. ],
  56. "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"
  57. },
  58. "gitlens.blame.annotation.highlight": {
  59. "type": "string",
  60. "default": "both",
  61. "enum": [
  62. "none",
  63. "gutter",
  64. "line",
  65. "both"
  66. ],
  67. "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"
  68. },
  69. "gitlens.blame.annotation.sha": {
  70. "type": "boolean",
  71. "default": true,
  72. "description": "Specifies whether the commit id (sha) will be shown in the blame annotations. Applies only to the `expanded` & `trailing` annotation styles"
  73. },
  74. "gitlens.blame.annotation.author": {
  75. "type": "boolean",
  76. "default": true,
  77. "description": "Specifies whether the committer will be shown in the blame annotations. Applies only to the `expanded` & `trailing` annotation styles"
  78. },
  79. "gitlens.blame.annotation.date": {
  80. "type": "string",
  81. "default": "off",
  82. "enum": [
  83. "off",
  84. "relative",
  85. "absolute"
  86. ],
  87. "description": "Specifies whether and how the commit date will be shown in the blame annotations. `off` - no date. `relative` - relative date (e.g. 1 day ago). `absolute` - date format specified by `gitlens.blame.annotation.dateFormat`. Applies only to the `expanded` & `trailing` annotation styles"
  88. },
  89. "gitlens.blame.annotation.dateFormat": {
  90. "type": "string",
  91. "default": null,
  92. "description": "Specifies the date format of how absolute dates will be shown in the blame annotations. See https://momentjs.com/docs/#/displaying/format/ for valid formats"
  93. },
  94. "gitlens.blame.annotation.message": {
  95. "type": "boolean",
  96. "default": false,
  97. "description": "Specifies whether the commit message will be shown in the blame annotations. Applies only to the `expanded` & `trailing` annotation styles"
  98. },
  99. "gitlens.blame.annotation.activeLine": {
  100. "type": "string",
  101. "default": "both",
  102. "enum": [
  103. "off",
  104. "inline",
  105. "hover",
  106. "both"
  107. ],
  108. "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"
  109. },
  110. "gitlens.blame.annotation.activeLineDarkColor": {
  111. "type": "string",
  112. "default": "rgba(153, 153, 153, 0.35)",
  113. "description": "Specifies the color of the active line blame annotation to use with a dark theme. Must be a valid css color"
  114. },
  115. "gitlens.blame.annotation.activeLineLightColor": {
  116. "type": "string",
  117. "default": "rgba(153, 153, 153, 0.35)",
  118. "description": "Specifies the color of the active line blame annotation to use with a light theme. Must be a valid css color"
  119. },
  120. "gitlens.codeLens.visibility": {
  121. "type": "string",
  122. "default": "auto",
  123. "enum": [
  124. "auto",
  125. "ondemand",
  126. "off"
  127. ],
  128. "description": "Specifies when CodeLens will be triggered in the active document. `auto` - automatically. `ondemand` - only when requested. `off` - disables all active document CodeLens"
  129. },
  130. "gitlens.codeLens.location": {
  131. "type": "string",
  132. "default": "document+containers",
  133. "enum": [
  134. "all",
  135. "document+containers",
  136. "document",
  137. "custom"
  138. ],
  139. "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`"
  140. },
  141. "gitlens.codeLens.locationCustomSymbols": {
  142. "type": "array",
  143. "description": "Specifies the set of document symbols to render active document CodeLens on. Must be a member of `SymbolKind`"
  144. },
  145. "gitlens.codeLens.languageLocations": {
  146. "type": "array",
  147. "default": [
  148. {
  149. "language": "css",
  150. "location": "document"
  151. },
  152. {
  153. "language": "html",
  154. "location": "document"
  155. },
  156. {
  157. "language": "json",
  158. "location": "document"
  159. },
  160. {
  161. "language": "less",
  162. "location": "document"
  163. },
  164. {
  165. "language": "scss",
  166. "location": "document"
  167. },
  168. {
  169. "language": "vue",
  170. "location": "document"
  171. }
  172. ],
  173. "items": {
  174. "type": "object",
  175. "required": [
  176. "language",
  177. "location"
  178. ],
  179. "properties": {
  180. "language": {
  181. "type": "string",
  182. "description": "Specifies the language to which this CodeLens override applies"
  183. },
  184. "location": {
  185. "type": "string",
  186. "default": "document+containers",
  187. "enum": [
  188. "all",
  189. "document+containers",
  190. "document",
  191. "custom",
  192. "none"
  193. ],
  194. "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`"
  195. },
  196. "customSymbols": {
  197. "type": "string",
  198. "description": "Specifies the set of document symbols to render active document CodeLens on. Must be a member of `SymbolKind`"
  199. }
  200. }
  201. },
  202. "uniqueItems": true,
  203. "enum": [
  204. "all",
  205. "document+containers",
  206. "document",
  207. "custom"
  208. ],
  209. "description": "Specifies where CodeLens will be rendered in the active document for the specified languages"
  210. },
  211. "gitlens.codeLens.recentChange.enabled": {
  212. "type": "boolean",
  213. "default": true,
  214. "description": "Specifies whether the recent change CodeLens is shown"
  215. },
  216. "gitlens.codeLens.recentChange.command": {
  217. "type": "string",
  218. "default": "gitlens.showQuickCommitFileDetails",
  219. "enum": [
  220. "gitlens.toggleBlame",
  221. "gitlens.showBlameHistory",
  222. "gitlens.showFileHistory",
  223. "gitlens.diffWithPrevious",
  224. "gitlens.showQuickCommitDetails",
  225. "gitlens.showQuickCommitFileDetails",
  226. "gitlens.showQuickFileHistory",
  227. "gitlens.showQuickRepoHistory"
  228. ],
  229. "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 committed file with the previous commit. `gitlens.showQuickCommitDetails` - shows a commit details quick pick. `gitlens.showQuickCommitFileDetails` - shows a commit file details quick pick. `gitlens.showQuickFileHistory` - shows a file history quick pick. `gitlens.showQuickRepoHistory` - shows a branch history quick pick"
  230. },
  231. "gitlens.codeLens.authors.enabled": {
  232. "type": "boolean",
  233. "default": true,
  234. "description": "Specifies whether the authors CodeLens is shown"
  235. },
  236. "gitlens.codeLens.authors.command": {
  237. "type": "string",
  238. "default": "gitlens.toggleBlame",
  239. "enum": [
  240. "gitlens.toggleBlame",
  241. "gitlens.showBlameHistory",
  242. "gitlens.showFileHistory",
  243. "gitlens.diffWithPrevious",
  244. "gitlens.showQuickCommitDetails",
  245. "gitlens.showQuickCommitFileDetails",
  246. "gitlens.showQuickFileHistory",
  247. "gitlens.showQuickRepoHistory"
  248. ],
  249. "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 committed file with the previous commit. `gitlens.showQuickCommitDetails` - shows a commit details quick pick. `gitlens.showQuickCommitFileDetails` - shows a commit file details quick pick. `gitlens.showQuickFileHistory` - shows a file history quick pick. `gitlens.showQuickRepoHistory` - shows a branch history quick pick"
  250. },
  251. "gitlens.menus.diff.enabled": {
  252. "type": "boolean",
  253. "default": true,
  254. "description": "Specifies whether diff commands will be added to the context menus"
  255. },
  256. "gitlens.statusBar.enabled": {
  257. "type": "boolean",
  258. "default": true,
  259. "description": "Specifies whether blame information is shown in the status bar"
  260. },
  261. "gitlens.statusBar.command": {
  262. "type": "string",
  263. "default": "gitlens.showQuickCommitDetails",
  264. "enum": [
  265. "gitlens.toggleBlame",
  266. "gitlens.showBlameHistory",
  267. "gitlens.showFileHistory",
  268. "gitlens.diffWithPrevious",
  269. "gitlens.toggleCodeLens",
  270. "gitlens.showQuickCommitDetails",
  271. "gitlens.showQuickCommitFileDetails",
  272. "gitlens.showQuickFileHistory",
  273. "gitlens.showQuickRepoHistory"
  274. ],
  275. "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 committed file with the previous commit. `gitlens.showQuickCommitDetails` - shows a commit details quick pick. `gitlens.showQuickCommitFileDetails` - shows a commit file details quick pick. `gitlens.showQuickFileHistory` - shows a file history quick pick. `gitlens.showQuickRepoHistory` - shows a branch history quick pick"
  276. },
  277. "gitlens.statusBar.date": {
  278. "type": "string",
  279. "default": "relative",
  280. "enum": [
  281. "off",
  282. "relative",
  283. "absolute"
  284. ],
  285. "description": "Specifies whether and how the commit date will be shown in the blame status bar. `off` - no date. `relative` - relative date (e.g. 1 day ago). `absolute` - date format specified by `gitlens.statusBar.dateFormat`"
  286. },
  287. "gitlens.statusBar.dateFormat": {
  288. "type": "string",
  289. "default": null,
  290. "description": "Specifies the date format of how absolute dates will be shown in the blame status bar. See https://momentjs.com/docs/#/displaying/format/ for valid formats"
  291. },
  292. "gitlens.advanced.caching.enabled": {
  293. "type": "boolean",
  294. "default": true,
  295. "description": "Specifies whether git blame output will be cached"
  296. },
  297. "gitlens.advanced.caching.statusBar.maxLines": {
  298. "type": "number",
  299. "default": 0,
  300. "description": "Specifies whether status bar git blame output will be cached for larger documents"
  301. },
  302. "gitlens.advanced.debug": {
  303. "type": "boolean",
  304. "default": false,
  305. "description": "Specifies debug mode"
  306. },
  307. "gitlens.advanced.codeLens.debug": {
  308. "type": "boolean",
  309. "default": false,
  310. "description": "Specifies whether or not to show debug information in CodeLens"
  311. },
  312. "gitlens.advanced.git": {
  313. "type": "string",
  314. "default": null,
  315. "description": "Specifies a git path to use"
  316. },
  317. "gitlens.advanced.gitignore.enabled": {
  318. "type": "boolean",
  319. "default": true,
  320. "description": "Specifies whether or not to parse the root .gitignore file for better performance (i.e. avoids blaming excluded files)"
  321. },
  322. "gitlens.advanced.maxQuickHistory": {
  323. "type": "number",
  324. "default": 200,
  325. "description": "Specifies the maximum number of QuickPick history entries to show"
  326. },
  327. "gitlens.advanced.output.level": {
  328. "type": "string",
  329. "default": "silent",
  330. "enum": [
  331. "silent",
  332. "errors",
  333. "verbose"
  334. ],
  335. "description": "Specifies how much (if any) output will be sent to the GitLens output channel"
  336. },
  337. "gitlens.advanced.quickPick.closeOnFocusOut": {
  338. "type": "boolean",
  339. "default": true,
  340. "description": "Specifies whether or not to close the QuickPick menu when focus is lost"
  341. },
  342. "gitlens.advanced.toggleWhitespace.enabled": {
  343. "type": "boolean",
  344. "default": false,
  345. "description": "Specifies whether or not to toggle whitespace off then showing blame annotations (*may* be required by certain fonts/themes)"
  346. },
  347. "gitlens.insiders": {
  348. "type": "boolean",
  349. "default": false,
  350. "description": "Specifies whether or not to enable new experimental features (expect there to be issues)"
  351. }
  352. }
  353. },
  354. "commands": [
  355. {
  356. "command": "gitlens.diffDirectory",
  357. "title": "Directory Compare",
  358. "category": "GitLens"
  359. },
  360. {
  361. "command": "gitlens.diffWithBranch",
  362. "title": "Compare File with...",
  363. "category": "GitLens"
  364. },
  365. {
  366. "command": "gitlens.diffWithNext",
  367. "title": "Compare File with Next Commit",
  368. "category": "GitLens"
  369. },
  370. {
  371. "command": "gitlens.diffWithPrevious",
  372. "title": "Compare File with Previous Commit",
  373. "category": "GitLens"
  374. },
  375. {
  376. "command": "gitlens.diffLineWithPrevious",
  377. "title": "Compare Line with Previous Commit",
  378. "category": "GitLens"
  379. },
  380. {
  381. "command": "gitlens.diffWithWorking",
  382. "title": "Compare File with Working Tree",
  383. "category": "GitLens"
  384. },
  385. {
  386. "command": "gitlens.diffLineWithWorking",
  387. "title": "Compare Line with Working Tree",
  388. "category": "GitLens"
  389. },
  390. {
  391. "command": "gitlens.showBlame",
  392. "title": "Show Blame Annotations",
  393. "category": "GitLens"
  394. },
  395. {
  396. "command": "gitlens.toggleBlame",
  397. "title": "Toggle Blame Annotations",
  398. "category": "GitLens",
  399. "icon": {
  400. "dark": "images/git-icon-dark.svg",
  401. "light": "images/git-icon-light.svg"
  402. }
  403. },
  404. {
  405. "command": "gitlens.toggleCodeLens",
  406. "title": "Toggle Git CodeLens",
  407. "category": "GitLens"
  408. },
  409. {
  410. "command": "gitlens.showBlameHistory",
  411. "title": "Open Blame History Explorer",
  412. "category": "GitLens"
  413. },
  414. {
  415. "command": "gitlens.showCommitSearch",
  416. "title": "Search Commits",
  417. "category": "GitLens"
  418. },
  419. {
  420. "command": "gitlens.showFileHistory",
  421. "title": "Open File History Explorer",
  422. "category": "GitLens"
  423. },
  424. {
  425. "command": "gitlens.showLastQuickPick",
  426. "title": "Show Last Opened Quick Pick",
  427. "category": "GitLens"
  428. },
  429. {
  430. "command": "gitlens.showQuickCommitDetails",
  431. "title": "Show Commit Details",
  432. "category": "GitLens"
  433. },
  434. {
  435. "command": "gitlens.showQuickCommitFileDetails",
  436. "title": "Show Line Commit Details",
  437. "category": "GitLens"
  438. },
  439. {
  440. "command": "gitlens.showQuickFileHistory",
  441. "title": "Show File History",
  442. "category": "GitLens"
  443. },
  444. {
  445. "command": "gitlens.showQuickBranchHistory",
  446. "title": "Show Branch History",
  447. "category": "GitLens"
  448. },
  449. {
  450. "command": "gitlens.showQuickRepoHistory",
  451. "title": "Show Current Branch History",
  452. "category": "GitLens"
  453. },
  454. {
  455. "command": "gitlens.showQuickRepoStatus",
  456. "title": "Show Repository Status",
  457. "category": "GitLens"
  458. },
  459. {
  460. "command": "gitlens.showQuickStashList",
  461. "title": "Show Stashed Changes",
  462. "category": "GitLens"
  463. },
  464. {
  465. "command": "gitlens.copyShaToClipboard",
  466. "title": "Copy Commit ID to Clipboard",
  467. "category": "GitLens"
  468. },
  469. {
  470. "command": "gitlens.copyMessageToClipboard",
  471. "title": "Copy Commit Message to Clipboard",
  472. "category": "GitLens"
  473. },
  474. {
  475. "command": "gitlens.closeUnchangedFiles",
  476. "title": "Close Unchanged Files",
  477. "category": "GitLens"
  478. },
  479. {
  480. "command": "gitlens.openChangedFiles",
  481. "title": "Open Changed Files",
  482. "category": "GitLens"
  483. },
  484. {
  485. "command": "gitlens.openCommitInRemote",
  486. "title": "Open Line Commit in Remote",
  487. "category": "GitLens"
  488. },
  489. {
  490. "command": "gitlens.openFileInRemote",
  491. "title": "Open File in Remote",
  492. "category": "GitLens"
  493. },
  494. {
  495. "command": "gitlens.stashApply",
  496. "title": "Apply Stashed Changes",
  497. "category": "GitLens"
  498. },
  499. {
  500. "command": "gitlens.stashSave",
  501. "title": "Stash Changes",
  502. "category": "GitLens"
  503. }
  504. ],
  505. "menus": {
  506. "commandPalette": [
  507. {
  508. "command": "gitlens.diffDirectory",
  509. "when": "gitlens:enabled"
  510. },
  511. {
  512. "command": "gitlens.diffWithBranch",
  513. "when": "gitlens:isTracked"
  514. },
  515. {
  516. "command": "gitlens.diffWithNext",
  517. "when": "gitlens:isTracked"
  518. },
  519. {
  520. "command": "gitlens.diffWithPrevious",
  521. "when": "gitlens:isTracked"
  522. },
  523. {
  524. "command": "gitlens.diffLineWithPrevious",
  525. "when": "gitlens:isBlameable"
  526. },
  527. {
  528. "command": "gitlens.diffWithWorking",
  529. "when": "gitlens:isTracked"
  530. },
  531. {
  532. "command": "gitlens.diffLineWithWorking",
  533. "when": "gitlens:isBlameable"
  534. },
  535. {
  536. "command": "gitlens.showBlame",
  537. "when": "gitlens:isBlameable"
  538. },
  539. {
  540. "command": "gitlens.toggleBlame",
  541. "when": "gitlens:isBlameable"
  542. },
  543. {
  544. "command": "gitlens.toggleCodeLens",
  545. "when": "gitlens:isTracked && gitlens:canToggleCodeLens"
  546. },
  547. {
  548. "command": "gitlens.showBlameHistory",
  549. "when": "gitlens:isBlameable"
  550. },
  551. {
  552. "command": "gitlens.showFileHistory",
  553. "when": "gitlens:isTracked"
  554. },
  555. {
  556. "command": "gitlens.showLastQuickPick",
  557. "when": "gitlens:enabled"
  558. },
  559. {
  560. "command": "gitlens.showQuickCommitDetails",
  561. "when": "gitlens:isBlameable"
  562. },
  563. {
  564. "command": "gitlens.showQuickCommitFileDetails",
  565. "when": "gitlens:isBlameable"
  566. },
  567. {
  568. "command": "gitlens.showQuickFileHistory",
  569. "when": "gitlens:isTracked"
  570. },
  571. {
  572. "command": "gitlens.showQuickBranchHistory",
  573. "when": "gitlens:enabled"
  574. },
  575. {
  576. "command": "gitlens.showQuickRepoHistory",
  577. "when": "gitlens:enabled"
  578. },
  579. {
  580. "command": "gitlens.showQuickRepoStatus",
  581. "when": "gitlens:enabled"
  582. },
  583. {
  584. "command": "gitlens.showQuickStashList",
  585. "when": "gitlens:enabled"
  586. },
  587. {
  588. "command": "gitlens.copyShaToClipboard",
  589. "when": "gitlens:isBlameable"
  590. },
  591. {
  592. "command": "gitlens.copyMessageToClipboard",
  593. "when": "gitlens:isBlameable"
  594. },
  595. {
  596. "command": "gitlens.closeUnchangedFiles",
  597. "when": "gitlens:enabled"
  598. },
  599. {
  600. "command": "gitlens.openChangedFiles",
  601. "when": "gitlens:enabled"
  602. },
  603. {
  604. "command": "gitlens.openCommitInRemote",
  605. "when": "gitlens:isBlameable && gitlens:hasRemotes"
  606. },
  607. {
  608. "command": "gitlens.openFileInRemote",
  609. "when": "gitlens:isTracked && gitlens:hasRemotes"
  610. },
  611. {
  612. "command": "gitlens.stashApply",
  613. "when": "gitlens:enabled && config.gitlens.insiders"
  614. },
  615. {
  616. "command": "gitlens.stashSave",
  617. "when": "gitlens:enabled && config.gitlens.insiders"
  618. }
  619. ],
  620. "explorer/context": [
  621. {
  622. "command": "gitlens.diffWithPrevious",
  623. "when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
  624. "group": "1_gitlens@1"
  625. },
  626. {
  627. "command": "gitlens.diffWithWorking",
  628. "when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
  629. "group": "1_gitlens@2"
  630. },
  631. {
  632. "command": "gitlens.showQuickFileHistory",
  633. "when": "gitlens:enabled",
  634. "group": "1_gitlens_1@1"
  635. },
  636. {
  637. "command": "gitlens.openFileInRemote",
  638. "when": "gitlens:enabled",
  639. "group": "1_gitlens_1@2"
  640. }
  641. ],
  642. "editor/title": [
  643. {
  644. "command": "gitlens.toggleBlame",
  645. "when": "gitlens:isBlameable",
  646. "group": "navigation@100"
  647. },
  648. {
  649. "command": "gitlens.diffWithPrevious",
  650. "when": "editorTextFocus && gitlens:isTracked && config.gitlens.menus.diff.enabled",
  651. "group": "2_gitlens"
  652. },
  653. {
  654. "command": "gitlens.diffWithWorking",
  655. "when": "editorTextFocus && gitlens:isTracked && config.gitlens.menus.diff.enabled",
  656. "group": "2_gitlens"
  657. },
  658. {
  659. "command": "gitlens.showQuickFileHistory",
  660. "when": "editorFocus && gitlens:isTracked",
  661. "group": "2_gitlens_1"
  662. },
  663. {
  664. "command": "gitlens.showQuickRepoHistory",
  665. "when": "!editorFocus && gitlens:enabled",
  666. "group": "2_gitlens_1"
  667. },
  668. {
  669. "command": "gitlens.showQuickRepoStatus",
  670. "when": "gitlens:enabled",
  671. "group": "2_gitlens_1"
  672. }
  673. ],
  674. "editor/title/context": [
  675. {
  676. "command": "gitlens.diffWithPrevious",
  677. "when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
  678. "group": "1_gitlens@1"
  679. },
  680. {
  681. "command": "gitlens.diffWithWorking",
  682. "when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
  683. "group": "1_gitlens@2"
  684. },
  685. {
  686. "command": "gitlens.showQuickFileHistory",
  687. "when": "gitlens:enabled",
  688. "group": "1_gitlens_1@1"
  689. },
  690. {
  691. "command": "gitlens.toggleBlame",
  692. "when": "gitlens:enabled",
  693. "group": "1_gitlens_1@2"
  694. },
  695. {
  696. "command": "gitlens.openFileInRemote",
  697. "when": "gitlens:enabled",
  698. "group": "1_gitlens_1@3"
  699. }
  700. ],
  701. "editor/context": [
  702. {
  703. "command": "gitlens.diffLineWithPrevious",
  704. "when": "editorTextFocus && gitlens:isBlameable && config.gitlens.menus.diff.enabled",
  705. "group": "1_gitlens@1"
  706. },
  707. {
  708. "command": "gitlens.diffLineWithWorking",
  709. "when": "editorTextFocus && gitlens:isBlameable && config.gitlens.menus.diff.enabled",
  710. "group": "1_gitlens@2"
  711. },
  712. {
  713. "command": "gitlens.showQuickCommitFileDetails",
  714. "when": "editorTextFocus && gitlens:isBlameable",
  715. "group": "1_gitlens@3"
  716. },
  717. {
  718. "command": "gitlens.diffWithPrevious",
  719. "when": "editorTextFocus && gitlens:isTracked && config.gitlens.menus.diff.enabled",
  720. "group": "1_gitlens_1@1"
  721. },
  722. {
  723. "command": "gitlens.diffWithWorking",
  724. "when": "editorTextFocus && gitlens:isTracked && config.gitlens.menus.diff.enabled",
  725. "group": "1_gitlens_1@2"
  726. },
  727. {
  728. "command": "gitlens.showQuickFileHistory",
  729. "when": "gitlens:isTracked",
  730. "group": "2_gitlens@1"
  731. },
  732. {
  733. "command": "gitlens.toggleBlame",
  734. "when": "editorTextFocus && gitlens:isBlameable",
  735. "group": "2_gitlens@2"
  736. },
  737. {
  738. "command": "gitlens.openFileInRemote",
  739. "when": "editorTextFocus && gitlens:isTracked && gitlens:hasRemotes",
  740. "group": "2_gitlens@3"
  741. },
  742. {
  743. "command": "gitlens.copyShaToClipboard",
  744. "when": "editorTextFocus && gitlens:isBlameable",
  745. "group": "9_gitlens@1"
  746. },
  747. {
  748. "command": "gitlens.copyMessageToClipboard",
  749. "when": "editorTextFocus && gitlens:isBlameable",
  750. "group": "9_gitlens@2"
  751. }
  752. ]
  753. },
  754. "keybindings": [
  755. {
  756. "command": "gitlens.key.left",
  757. "key": "alt+left",
  758. "when": "gitlens:key:left"
  759. },
  760. {
  761. "command": "gitlens.key.right",
  762. "key": "alt+right",
  763. "when": "gitlens:key:right"
  764. },
  765. {
  766. "command": "gitlens.key.,",
  767. "key": "alt+,",
  768. "when": "gitlens:key:,"
  769. },
  770. {
  771. "command": "gitlens.key..",
  772. "key": "alt+.",
  773. "when": "gitlens:key:."
  774. },
  775. {
  776. "command": "gitlens.toggleBlame",
  777. "key": "alt+b",
  778. "mac": "alt+b",
  779. "when": "editorTextFocus && gitlens:isTracked"
  780. },
  781. {
  782. "command": "gitlens.toggleCodeLens",
  783. "key": "shift+alt+b",
  784. "mac": "shift+alt+b",
  785. "when": "editorTextFocus && gitlens:isTracked && gitlens:canToggleCodeLens"
  786. },
  787. {
  788. "command": "gitlens.showLastQuickPick",
  789. "key": "alt+-",
  790. "mac": "alt+-",
  791. "when": "gitlens:enabled"
  792. },
  793. {
  794. "command": "gitlens.showCommitSearch",
  795. "key": "alt+f",
  796. "mac": "alt+f",
  797. "when": "gitlens:enabled"
  798. },
  799. {
  800. "command": "gitlens.showQuickFileHistory",
  801. "key": "alt+h",
  802. "mac": "alt+h",
  803. "when": "gitlens:enabled"
  804. },
  805. {
  806. "command": "gitlens.showQuickRepoHistory",
  807. "key": "shift+alt+h",
  808. "mac": "shift+alt+h",
  809. "when": "gitlens:enabled"
  810. },
  811. {
  812. "command": "gitlens.showQuickRepoStatus",
  813. "key": "alt+s",
  814. "mac": "alt+s",
  815. "when": "gitlens:enabled"
  816. },
  817. {
  818. "command": "gitlens.showQuickCommitFileDetails",
  819. "key": "alt+c",
  820. "mac": "alt+c",
  821. "when": "editorTextFocus && gitlens:enabled"
  822. },
  823. {
  824. "command": "gitlens.diffWithNext",
  825. "key": "alt+.",
  826. "mac": "alt+.",
  827. "when": "editorTextFocus && gitlens:isTracked"
  828. },
  829. {
  830. "command": "gitlens.diffLineWithPrevious",
  831. "key": "shift+alt+,",
  832. "mac": "shift+alt+,",
  833. "when": "editorTextFocus && gitlens:isTracked"
  834. },
  835. {
  836. "command": "gitlens.diffWithPrevious",
  837. "key": "alt+,",
  838. "mac": "alt+,",
  839. "when": "editorTextFocus && gitlens:isTracked"
  840. },
  841. {
  842. "command": "gitlens.diffLineWithWorking",
  843. "key": "alt+w",
  844. "mac": "alt+w",
  845. "when": "editorTextFocus && gitlens:isTracked"
  846. },
  847. {
  848. "command": "gitlens.diffWithWorking",
  849. "key": "shift+alt+w",
  850. "mac": "shift+alt+w",
  851. "when": "editorTextFocus && gitlens:isTracked"
  852. }
  853. ]
  854. },
  855. "activationEvents": [
  856. "*"
  857. ],
  858. "scripts": {
  859. "compile": "tsc -watch -p ./",
  860. "lint": "tslint --project tslint.json",
  861. "pack": "git clean -xdf && npm install && vsce package",
  862. "postinstall": "node ./node_modules/vscode/bin/install",
  863. "pub": "git clean -xdf --exclude=node_modules/ && npm install && vsce publish",
  864. "vscode:prepublish": "tsc -p ./"
  865. },
  866. "dependencies": {
  867. "applicationinsights": "^0.19.0",
  868. "copy-paste": "^1.3.0",
  869. "ignore": "^3.2.7",
  870. "lodash.debounce": "^4.0.8",
  871. "lodash.escaperegexp": "^4.1.2",
  872. "lodash.isequal": "^4.5.0",
  873. "lodash.once": "^4.1.1",
  874. "moment": "^2.18.1",
  875. "spawn-rx": "^2.0.10",
  876. "tmp": "^0.0.31"
  877. },
  878. "devDependencies": {
  879. "@types/applicationinsights": "^0.15.33",
  880. "@types/copy-paste": "^1.1.30",
  881. "@types/mocha": "^2.2.40",
  882. "@types/node": "^7.0.12",
  883. "@types/tmp": "^0.0.32",
  884. "mocha": "^3.2.0",
  885. "tslint": "^4.5.1",
  886. "typescript": "^2.3.0",
  887. "vscode": "^1.1.0"
  888. }
  889. }