mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-14 17:25:28 -05:00
Adds shortcut for gitlens.showQuickRepoHistory Adds gitlens.advanced.maxQuickHistory to limit the number of quick history entries to show Adds gitlens.diffLineWithPrevious as alt context menu item for gitlens.diffWithPrevious Adds gitlens.diffLineWithWorking as alt context menu item for gitlens.diffWithWorking Adds gitlens.showFileHistory as alt context menu item for gitlens.showQuickFileHistory Removes context menu for gitlens.diffLineWithPrevious Removes context menu for gitlens.diffLineWithWorking Replaces gitlens.menus.fileDiff.enabled & gitlens.menus.lineDiff.enabled with gitlens.menus.diff.enabled
425 lines
19 KiB
JSON
425 lines
19 KiB
JSON
{
|
|
"name": "gitlens",
|
|
"version": "1.4.0",
|
|
"author": {
|
|
"name": "Eric Amodio",
|
|
"email": "eamodio@gmail.com"
|
|
},
|
|
"publisher": "eamodio",
|
|
"engines": {
|
|
"vscode": "^1.7.0"
|
|
},
|
|
"license": "SEE LICENSE IN LICENSE",
|
|
"displayName": "GitLens",
|
|
"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",
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"keywords": [
|
|
"git",
|
|
"blame",
|
|
"history",
|
|
"codelens",
|
|
"annotation"
|
|
],
|
|
"galleryBanner": {
|
|
"color": "#56098c",
|
|
"theme": "dark"
|
|
},
|
|
"icon": "images/gitlens-icon.png",
|
|
"preview": false,
|
|
"homepage": "https://github.com/eamodio/vscode-gitlens/blob/master/README.md",
|
|
"bugs": {
|
|
"url": "https://github.com/eamodio/vscode-gitlens/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/eamodio/vscode-gitlens.git"
|
|
},
|
|
"main": "./out/src/extension",
|
|
"contributes": {
|
|
"configuration": {
|
|
"type": "object",
|
|
"title": "GitLens configuration",
|
|
"properties": {
|
|
"gitlens.blame.annotation.style": {
|
|
"type": "string",
|
|
"default": "expanded",
|
|
"enum": [
|
|
"compact",
|
|
"expanded"
|
|
],
|
|
"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 on every line"
|
|
},
|
|
"gitlens.blame.annotation.sha": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Specifies whether the commit sha will be shown in the blame annotations. Applies only to the `expanded` annotation style"
|
|
},
|
|
"gitlens.blame.annotation.author": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Specifies whether the committer will be shown in the blame annotations. Applies only to the `expanded` annotation style"
|
|
},
|
|
"gitlens.blame.annotation.date": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Specifies whether the commit date will be shown in the blame annotations. Applies only to the `expanded` annotation style"
|
|
},
|
|
"gitlens.codeLens.visibility": {
|
|
"type": "string",
|
|
"default": "auto",
|
|
"enum": [
|
|
"auto",
|
|
"ondemand",
|
|
"off"
|
|
],
|
|
"description": "Specifies when CodeLens will be triggered in the active document. `auto` - automatically. `ondemand` - only when requested. `off` - disables all active document CodeLens"
|
|
},
|
|
"gitlens.codeLens.location": {
|
|
"type": "string",
|
|
"default": "document+containers",
|
|
"enum": [
|
|
"all",
|
|
"document+containers",
|
|
"document",
|
|
"custom"
|
|
],
|
|
"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`"
|
|
},
|
|
"gitlens.codeLens.locationCustomSymbols": {
|
|
"type": "array",
|
|
"description": "Specifies the set of document symbols to render active document CodeLens on. Must be a member of `SymbolKind`"
|
|
},
|
|
"gitlens.codeLens.languageLocations": {
|
|
"type": "array",
|
|
"default": [
|
|
{
|
|
"language": "json",
|
|
"location": "document"
|
|
},
|
|
{
|
|
"language": "css",
|
|
"location": "document"
|
|
},
|
|
{
|
|
"language": "scss",
|
|
"location": "document"
|
|
},
|
|
{
|
|
"language": "less",
|
|
"location": "document"
|
|
}
|
|
],
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"language",
|
|
"location"
|
|
],
|
|
"properties": {
|
|
"language": {
|
|
"type": "string",
|
|
"description": "Specifies the language to which this CodeLens override applies"
|
|
},
|
|
"location": {
|
|
"type": "string",
|
|
"default": "document+containers",
|
|
"enum": [
|
|
"all",
|
|
"document+containers",
|
|
"document",
|
|
"custom",
|
|
"none"
|
|
],
|
|
"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`"
|
|
},
|
|
"customSymbols": {
|
|
"type": "string",
|
|
"description": "Specifies the set of document symbols to render active document CodeLens on. Must be a member of `SymbolKind`"
|
|
}
|
|
}
|
|
},
|
|
"uniqueItems": true,
|
|
"enum": [
|
|
"all",
|
|
"document+containers",
|
|
"document",
|
|
"custom"
|
|
],
|
|
"description": "Specifies where CodeLens will be rendered in the active document for the specified languages"
|
|
},
|
|
"gitlens.codeLens.recentChange.enabled": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Specifies whether the recent change CodeLens is shown"
|
|
},
|
|
"gitlens.codeLens.recentChange.command": {
|
|
"type": "string",
|
|
"default": "gitlens.showFileHistory",
|
|
"enum": [
|
|
"gitlens.toggleBlame",
|
|
"gitlens.showBlameHistory",
|
|
"gitlens.showFileHistory",
|
|
"gitlens.diffWithPrevious",
|
|
"gitlens.showQuickFileHistory"
|
|
],
|
|
"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"
|
|
},
|
|
"gitlens.codeLens.authors.enabled": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Specifies whether the authors CodeLens is shown"
|
|
},
|
|
"gitlens.codeLens.authors.command": {
|
|
"type": "string",
|
|
"default": "gitlens.toggleBlame",
|
|
"enum": [
|
|
"gitlens.toggleBlame",
|
|
"gitlens.showBlameHistory",
|
|
"gitlens.showFileHistory",
|
|
"gitlens.diffWithPrevious",
|
|
"gitlens.showQuickFileHistory"
|
|
],
|
|
"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"
|
|
},
|
|
"gitlens.statusBar.enabled": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Specifies whether blame information is shown in the status bar"
|
|
},
|
|
"gitlens.statusBar.command": {
|
|
"type": "string",
|
|
"default": "gitlens.showQuickFileHistory",
|
|
"enum": [
|
|
"gitlens.toggleBlame",
|
|
"gitlens.showBlameHistory",
|
|
"gitlens.showFileHistory",
|
|
"gitlens.diffWithPrevious",
|
|
"gitlens.toggleCodeLens",
|
|
"gitlens.showQuickFileHistory"
|
|
],
|
|
"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"
|
|
},
|
|
"gitlens.menus.diff.enabled": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Specifies whether diff commands will be added to the context menus"
|
|
},
|
|
"gitlens.advanced.caching.enabled": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Specifies whether git blame output will be cached"
|
|
},
|
|
"gitlens.advanced.caching.statusBar.maxLines": {
|
|
"type": "number",
|
|
"default": 0,
|
|
"description": "Specifies whether status bar git blame output will be cached for larger documents"
|
|
},
|
|
"gitlens.advanced.debug": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Specifies debug mode"
|
|
},
|
|
"gitlens.advanced.git": {
|
|
"type": "string",
|
|
"default": null,
|
|
"description": "Specifies a git path to use"
|
|
},
|
|
"gitlens.advanced.maxQuickHistory": {
|
|
"type": "number",
|
|
"default": 200,
|
|
"description": "Specifies the maximum number of QuickPick history entries to show"
|
|
},
|
|
"gitlens.advanced.output.level": {
|
|
"type": "string",
|
|
"default": "silent",
|
|
"enum": [
|
|
"silent",
|
|
"errors",
|
|
"verbose"
|
|
],
|
|
"description": "Specifies how much (if any) output will be sent to the GitLens output channel"
|
|
}
|
|
}
|
|
},
|
|
"commands": [
|
|
{
|
|
"command": "gitlens.diffWithPrevious",
|
|
"title": "Diff Commit with Previous",
|
|
"category": "GitLens"
|
|
},
|
|
{
|
|
"command": "gitlens.diffLineWithPrevious",
|
|
"title": "Diff Commit (line) with Previous",
|
|
"category": "GitLens"
|
|
},
|
|
{
|
|
"command": "gitlens.diffWithWorking",
|
|
"title": "Diff Commit with Working Tree",
|
|
"category": "GitLens"
|
|
},
|
|
{
|
|
"command": "gitlens.diffLineWithWorking",
|
|
"title": "Diff Commit (line) with Working Tree",
|
|
"category": "GitLens"
|
|
},
|
|
{
|
|
"command": "gitlens.showBlame",
|
|
"title": "Show Blame Annotations",
|
|
"category": "GitLens"
|
|
},
|
|
{
|
|
"command": "gitlens.toggleBlame",
|
|
"title": "Toggle Blame Annotations",
|
|
"category": "GitLens"
|
|
},
|
|
{
|
|
"command": "gitlens.toggleCodeLens",
|
|
"title": "Toggle Git CodeLens",
|
|
"category": "GitLens"
|
|
},
|
|
{
|
|
"command": "gitlens.showBlameHistory",
|
|
"title": "Open Blame History Explorer",
|
|
"category": "GitLens"
|
|
},
|
|
{
|
|
"command": "gitlens.showFileHistory",
|
|
"title": "Open File History Explorer",
|
|
"category": "GitLens"
|
|
},
|
|
{
|
|
"command": "gitlens.showQuickFileHistory",
|
|
"title": "Show File History",
|
|
"category": "GitLens"
|
|
},
|
|
{
|
|
"command": "gitlens.showQuickRepoHistory",
|
|
"title": "Show Repository History",
|
|
"category": "GitLens"
|
|
}
|
|
],
|
|
"menus": {
|
|
"explorer/context": [
|
|
{
|
|
"command": "gitlens.diffWithWorking",
|
|
"when": "config.gitlens.menus.diff.enabled && config.git.enabled",
|
|
"group": "2_gitlens-file"
|
|
},
|
|
{
|
|
"command": "gitlens.diffWithPrevious",
|
|
"when": "config.gitlens.menus.diff.enabled && config.git.enabled",
|
|
"group": "2_gitlens-file"
|
|
},
|
|
{
|
|
"command": "gitlens.showQuickFileHistory",
|
|
"when": "config.git.enabled",
|
|
"group": "3_gitlens-file"
|
|
}
|
|
],
|
|
"editor/title": [
|
|
{
|
|
"command": "gitlens.diffWithWorking",
|
|
"when": "config.gitlens.menus.diff.enabled && config.git.enabled",
|
|
"group": "2_gitlens"
|
|
},
|
|
{
|
|
"command": "gitlens.diffWithPrevious",
|
|
"when": "config.gitlens.menus.diff.enabled && config.git.enabled",
|
|
"group": "2_gitlens"
|
|
},
|
|
{
|
|
"command": "gitlens.showQuickFileHistory",
|
|
"when": "editorTextFocus && config.git.enabled",
|
|
"group": "3_gitlens"
|
|
},
|
|
{
|
|
"command": "gitlens.toggleBlame",
|
|
"when": "editorTextFocus && config.git.enabled",
|
|
"group": "3_gitlens"
|
|
}
|
|
],
|
|
"editor/context": [
|
|
{
|
|
"command": "gitlens.diffWithWorking",
|
|
"alt": "gitlens.diffLineWithWorking",
|
|
"when": "editorTextFocus && config.gitlens.menus.diff.enabled && config.git.enabled",
|
|
"group": "2_gitlens@1.0"
|
|
},
|
|
{
|
|
"command": "gitlens.diffWithPrevious",
|
|
"alt": "gitlens.diffLineWithPrevious",
|
|
"when": "editorTextFocus && config.gitlens.menus.diff.enabled && config.git.enabled",
|
|
"group": "2_gitlens@1.1"
|
|
},
|
|
{
|
|
"command": "gitlens.showQuickFileHistory",
|
|
"alt": "gitlens.showFileHistory",
|
|
"when": "config.git.enabled",
|
|
"group": "3_gitlens"
|
|
},
|
|
{
|
|
"command": "gitlens.toggleBlame",
|
|
"when": "editorTextFocus && config.git.enabled",
|
|
"group": "3_gitlens"
|
|
}
|
|
]
|
|
},
|
|
"keybindings": [
|
|
{
|
|
"command": "gitlens.toggleBlame",
|
|
"key": "alt+b",
|
|
"mac": "alt+b",
|
|
"when": "editorTextFocus"
|
|
},
|
|
{
|
|
"command": "gitlens.showQuickFileHistory",
|
|
"key": "alt+h",
|
|
"mac": "alt+h",
|
|
"when": "editorTextFocus"
|
|
},
|
|
{
|
|
"command": "gitlens.showQuickRepoHistory",
|
|
"key": "shift+alt+h",
|
|
"mac": "shift+alt+h"
|
|
},
|
|
{
|
|
"command": "gitlens.toggleCodeLens",
|
|
"key": "alt+shift+b",
|
|
"mac": "alt+shift+b",
|
|
"when": "editorTextFocus"
|
|
}
|
|
]
|
|
},
|
|
"activationEvents": [
|
|
"*"
|
|
],
|
|
"scripts": {
|
|
"compile": "tsc -watch -p ./",
|
|
"lint": "tslint --project tslint.json",
|
|
"pack": "git clean -xdf && npm install && vsce package",
|
|
"postinstall": "node ./node_modules/vscode/bin/install",
|
|
"pub": "git clean -xdf --exclude=node_modules/ && npm install && vsce publish",
|
|
"vscode:prepublish": "tsc -p ./"
|
|
},
|
|
"dependencies": {
|
|
"ignore": "^3.2.0",
|
|
"lodash.debounce": "^4.0.8",
|
|
"lodash.escaperegexp": "^4.1.2",
|
|
"lodash.isequal": "^4.4.0",
|
|
"lodash.once": "^4.1.1",
|
|
"moment": "^2.17.1",
|
|
"spawn-rx": "^2.0.7",
|
|
"tmp": "^0.0.31"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^6.0.55",
|
|
"@types/mocha": "^2.2.35",
|
|
"@types/tmp": "^0.0.32",
|
|
"mocha": "^3.2.0",
|
|
"tslint": "^4.2.0",
|
|
"typescript": "^2.1.4",
|
|
"vscode": "^1.0.3"
|
|
}
|
|
} |