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",
|
2019-12-16 19:51:16 +03:00
|
|
|
"title": "Magit Visit-at-point"
|
2019-12-07 19:38:13 +03:00
|
|
|
},
|
2019-12-09 02:06:23 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-commit",
|
2019-12-16 19:51:16 +03:00
|
|
|
"title": "Magit Commit"
|
2019-12-09 02:06:23 +03:00
|
|
|
},
|
2019-12-07 19:38:13 +03:00
|
|
|
{
|
2019-12-10 00:38:54 +03:00
|
|
|
"command": "extension.magit-branching",
|
2019-12-16 19:51:16 +03:00
|
|
|
"title": "Magit Branching"
|
2019-12-08 21:57:55 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-pushing",
|
2019-12-16 19:51:16 +03:00
|
|
|
"title": "Magit Pushing"
|
2019-12-08 21:57:55 +03:00
|
|
|
},
|
2019-12-10 00:38:54 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-stage",
|
2019-12-16 19:51:16 +03:00
|
|
|
"title": "Magit Stage"
|
2019-12-10 00:38:54 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-stage-all",
|
2019-12-16 19:51:16 +03:00
|
|
|
"title": "Magit Stage All"
|
2019-12-10 00:38:54 +03:00
|
|
|
},
|
2019-12-13 00:43:52 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-unstage",
|
2019-12-16 19:51:16 +03:00
|
|
|
"title": "Magit Unstage"
|
2019-12-13 00:43:52 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-unstage-all",
|
2019-12-16 19:51:16 +03:00
|
|
|
"title": "Magit Unstage All"
|
2019-12-13 00:43:52 +03:00
|
|
|
},
|
2019-12-08 21:57:55 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-help",
|
2019-12-16 19:51:16 +03:00
|
|
|
"title": "Magit Help"
|
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-18 23:02:33 +03:00
|
|
|
"when": "editorLangId == magit"
|
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-18 23:02:33 +03:00
|
|
|
"when": "editorLangId == magit"
|
2019-12-07 19:38:13 +03:00
|
|
|
},
|
2019-12-10 00:38:54 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-stage",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorLangId == magit"
|
2019-12-10 00:38:54 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-stage-all",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorLangId == magit"
|
2019-12-10 00:38:54 +03:00
|
|
|
},
|
2019-12-13 00:43:52 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-unstage",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorLangId == magit"
|
2019-12-13 00:43:52 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-unstage-all",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorLangId == magit"
|
2019-12-13 00:43:52 +03:00
|
|
|
},
|
2019-12-09 02:06:23 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-commit",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorLangId == magit"
|
2019-12-09 02:06:23 +03:00
|
|
|
},
|
2019-12-07 19:38:13 +03:00
|
|
|
{
|
2019-12-08 21:57:55 +03:00
|
|
|
"command": "extension.magit-pushing",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorLangId == magit"
|
2019-12-07 04:28:37 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"languages": [
|
|
|
|
{
|
2019-12-18 23:02:33 +03:00
|
|
|
"id": "magit",
|
2019-12-13 00:09:00 +03:00
|
|
|
"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
|
|
|
}
|
|
|
|
],
|
2019-12-14 20:54:18 +03:00
|
|
|
"configurationDefaults": {
|
2019-12-18 23:02:33 +03:00
|
|
|
"[magit]": {
|
2019-12-14 20:54:18 +03:00
|
|
|
"editor.lineNumbers": "off"
|
|
|
|
}
|
|
|
|
},
|
2019-12-07 04:28:37 +03:00
|
|
|
"grammars": [
|
|
|
|
{
|
2019-12-18 23:02:33 +03:00
|
|
|
"language": "magit",
|
2019-12-07 04:28:37 +03:00
|
|
|
"scopeName": "source.magit",
|
2019-12-18 23:02:33 +03:00
|
|
|
"path": "./syntaxes/magit.tmGrammar.json"
|
2019-12-07 04:28:37 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"keybindings": [
|
|
|
|
{
|
|
|
|
"command": "editor.toggleFold",
|
|
|
|
"key": "tab",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorTextFocus && editorLangId == magit"
|
2019-12-07 04:28:37 +03:00
|
|
|
},
|
2019-12-13 00:09:00 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit",
|
|
|
|
"key": "g",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorTextFocus && editorLangId == magit"
|
2019-12-13 00:09:00 +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
|
|
|
"key": "enter",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorTextFocus && editorLangId == magit"
|
2019-12-07 19:38:13 +03:00
|
|
|
},
|
2019-12-09 02:06:23 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-commit",
|
|
|
|
"key": "c",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorTextFocus && editorLangId == magit"
|
2019-12-09 02:06:23 +03:00
|
|
|
},
|
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",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorTextFocus && editorLangId == magit"
|
2019-12-08 21:57:55 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-pushing",
|
|
|
|
"key": "shift+p",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorTextFocus && editorLangId == magit"
|
2019-12-08 21:57:55 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-help",
|
|
|
|
"key": "?",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorTextFocus && editorLangId == magit"
|
2019-12-09 02:06:23 +03:00
|
|
|
},
|
2019-12-10 00:38:54 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-stage",
|
|
|
|
"key": "s",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorTextFocus && editorLangId == magit"
|
2019-12-10 00:38:54 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-stage-all",
|
|
|
|
"key": "shift+s",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorTextFocus && editorLangId == magit"
|
2019-12-10 00:38:54 +03:00
|
|
|
},
|
2019-12-13 00:43:52 +03:00
|
|
|
{
|
|
|
|
"command": "extension.magit-unstage",
|
|
|
|
"key": "u",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorTextFocus && editorLangId == magit"
|
2019-12-13 00:43:52 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.magit-unstage-all",
|
|
|
|
"key": "shift+u",
|
2019-12-18 23:02:33 +03:00
|
|
|
"when": "editorTextFocus && editorLangId == magit"
|
2019-12-13 00:43:52 +03:00
|
|
|
},
|
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",
|
2019-12-13 00:09:00 +03:00
|
|
|
"typescript": "^3.7.3",
|
|
|
|
"tslint": "^5.20.1",
|
2019-12-03 00:50:08 +03:00
|
|
|
"vscode-test": "^1.2.2"
|
|
|
|
}
|
2019-12-13 00:09:00 +03:00
|
|
|
}
|