2019-12-03 00:50:08 +03:00
|
|
|
{
|
|
|
|
"name": "magit",
|
|
|
|
"displayName": "magit",
|
|
|
|
"description": "Magit for VSCode",
|
|
|
|
"version": "0.0.1",
|
|
|
|
"engines": {
|
|
|
|
"vscode": "^1.40.0"
|
|
|
|
},
|
|
|
|
"categories": [
|
|
|
|
"Other"
|
|
|
|
],
|
|
|
|
"activationEvents": [
|
|
|
|
"onCommand:extension.magit"
|
|
|
|
],
|
|
|
|
"main": "./out/extension.js",
|
|
|
|
"contributes": {
|
|
|
|
"commands": [
|
|
|
|
{
|
|
|
|
"command": "extension.magit",
|
|
|
|
"title": "Magit Status"
|
2019-12-07 04:28:37 +03:00
|
|
|
},
|
|
|
|
{
|
2019-12-11 01:17:15 +03:00
|
|
|
"command": "extension.magit-visit-at-point",
|
|
|
|
"title": "Magit Visit-at-point",
|
2019-12-07 04:28:37 +03:00
|
|
|
"when": "editorLangId == magit-status"
|
2019-12-07 19:38:13 +03:00
|
|
|
},
|
2019-12-09 02:06:23 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-commit",
|
|
|
|
"title": "Magit Commit",
|
|
|
|
"when": "editorLangId == magit-status"
|
|
|
|
},
|
2019-12-07 19:38:13 +03:00
|
|
|
{
|
2019-12-10 00:38:54 +03:00
|
|
|
"command": "extension.magit-branching",
|
2019-12-08 21:57:55 +03:00
|
|
|
"title": "Magit Branching",
|
|
|
|
"when": "editorLangId == magit-status"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-pushing",
|
|
|
|
"title": "Magit Pushing",
|
|
|
|
"when": "editorLangId == magit-status"
|
|
|
|
},
|
2019-12-10 00:38:54 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-stage",
|
|
|
|
"title": "Magit Stage",
|
|
|
|
"when": "editorLangId == magit-status"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-stage-all",
|
|
|
|
"title": "Magit Stage All",
|
|
|
|
"when": "editorLangId == magit-status"
|
|
|
|
},
|
2019-12-08 21:57:55 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-help",
|
|
|
|
"title": "Magit Help",
|
2019-12-07 19:38:13 +03:00
|
|
|
"when": "editorLangId == magit-status"
|
2019-12-09 02:06:23 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-save-and-close-commit-msg",
|
|
|
|
"title": "Magit Save and close commit message",
|
|
|
|
"when": "false"
|
2019-12-07 04:28:37 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"menus": {
|
|
|
|
"commandPalette": [
|
2019-12-08 21:57:55 +03:00
|
|
|
{
|
2019-12-10 00:38:54 +03:00
|
|
|
"command": "extension.magit-branching",
|
2019-12-09 02:06:23 +03:00
|
|
|
"when": "editorLangId == magit-status"
|
2019-12-08 21:57:55 +03:00
|
|
|
},
|
2019-12-07 04:28:37 +03:00
|
|
|
{
|
2019-12-11 01:17:15 +03:00
|
|
|
"command": "extension.magit-visit-at-point",
|
2019-12-07 04:28:37 +03:00
|
|
|
"when": "editorLangId == magit-status"
|
2019-12-07 19:38:13 +03:00
|
|
|
},
|
2019-12-10 00:38:54 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-stage",
|
|
|
|
"when": "editorLangId == magit-status"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-stage-all",
|
|
|
|
"when": "editorLangId == magit-status"
|
|
|
|
},
|
2019-12-09 02:06:23 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-commit",
|
|
|
|
"when": "editorLangId == magit-status"
|
|
|
|
},
|
2019-12-07 19:38:13 +03:00
|
|
|
{
|
2019-12-08 21:57:55 +03:00
|
|
|
"command": "extension.magit-pushing",
|
|
|
|
"when": "editorLangId == magit-status"
|
2019-12-09 02:06:23 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-save-and-close-commit-msg",
|
|
|
|
"when": "false"
|
2019-12-07 04:28:37 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"languages": [
|
|
|
|
{
|
|
|
|
"id": "magit-status",
|
|
|
|
"aliases": ["Magit"],
|
|
|
|
"extensions": [".magit"],
|
2019-12-07 05:02:04 +03:00
|
|
|
"configuration": "./languages/magit.language-configuration.json"
|
2019-12-07 04:28:37 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"grammars": [
|
|
|
|
{
|
|
|
|
"language": "magit-status",
|
|
|
|
"scopeName": "source.magit",
|
2019-12-07 05:02:04 +03:00
|
|
|
"path": "./syntaxes/magitStatus.tmGrammar.json"
|
2019-12-07 04:28:37 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"keybindings": [
|
|
|
|
{
|
|
|
|
"command": "editor.toggleFold",
|
|
|
|
"key": "tab",
|
|
|
|
"when": "editorTextFocus && editorLangId == magit-status"
|
|
|
|
},
|
|
|
|
{
|
2019-12-11 01:17:15 +03:00
|
|
|
"command": "extension.magit-visit-at-point",
|
2019-12-07 04:28:37 +03:00
|
|
|
"key": "enter",
|
|
|
|
"when": "editorTextFocus && editorLangId == magit-status"
|
2019-12-07 19:38:13 +03:00
|
|
|
},
|
2019-12-09 02:06:23 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-commit",
|
|
|
|
"key": "c",
|
|
|
|
"when": "editorTextFocus && editorLangId == magit-status"
|
|
|
|
},
|
2019-12-07 19:38:13 +03:00
|
|
|
{
|
2019-12-10 00:38:54 +03:00
|
|
|
"command": "extension.magit-branching",
|
2019-12-07 19:38:13 +03:00
|
|
|
"key": "b",
|
|
|
|
"when": "editorTextFocus && editorLangId == magit-status"
|
2019-12-08 21:57:55 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-pushing",
|
|
|
|
"key": "shift+p",
|
|
|
|
"when": "editorTextFocus && editorLangId == magit-status"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-help",
|
|
|
|
"key": "?",
|
|
|
|
"when": "editorTextFocus && editorLangId == magit-status"
|
2019-12-09 02:06:23 +03:00
|
|
|
},
|
2019-12-10 00:38:54 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-stage",
|
|
|
|
"key": "s",
|
|
|
|
"when": "editorTextFocus && editorLangId == magit-status"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-stage-all",
|
|
|
|
"key": "shift+s",
|
|
|
|
"when": "editorTextFocus && editorLangId == magit-status"
|
|
|
|
},
|
2019-12-09 02:06:23 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-save-and-close-commit-msg",
|
|
|
|
"key": "ctrl+c ctrl+c",
|
|
|
|
"when": "editorTextFocus && editorLangId == git-commit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "workbench.action.closeActiveEditor",
|
|
|
|
"key": "ctrl+c ctrl+k",
|
|
|
|
"when": "editorTextFocus && editorLangId == git-commit"
|
2019-12-03 00:50:08 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"vscode:prepublish": "npm run compile",
|
|
|
|
"compile": "tsc -p ./",
|
|
|
|
"watch": "tsc -watch -p ./",
|
|
|
|
"pretest": "npm run compile",
|
|
|
|
"test": "node ./out/test/runTest.js"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@types/glob": "^7.1.1",
|
|
|
|
"@types/mocha": "^5.2.7",
|
|
|
|
"@types/node": "^12.11.7",
|
|
|
|
"@types/vscode": "^1.40.0",
|
|
|
|
"glob": "^7.1.5",
|
|
|
|
"mocha": "^6.2.2",
|
|
|
|
"typescript": "^3.6.4",
|
|
|
|
"tslint": "^5.20.0",
|
|
|
|
"vscode-test": "^1.2.2"
|
|
|
|
}
|
|
|
|
}
|