mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
108 lines
2.7 KiB
JSON
108 lines
2.7 KiB
JSON
{
|
|
"name": "source-control-sample",
|
|
"displayName": "source-control-sample",
|
|
"description": "Source control VS Code extension sample",
|
|
"version": "0.0.1",
|
|
"publisher": "vscode-samples",
|
|
"engines": {
|
|
"vscode": "^1.32.0"
|
|
},
|
|
"categories": [
|
|
"SCM Providers"
|
|
],
|
|
"activationEvents": [
|
|
"onCommand:extension.source-control.open",
|
|
"onCommand:extension.source-control.commit",
|
|
"onCommand:extension.source-control.refresh",
|
|
"onCommand:extension.source-control.discard",
|
|
"onCommand:extension.source-control.checkout",
|
|
"onCommand:extension.source-control.browse",
|
|
"workspaceContains:.jsfiddle"
|
|
],
|
|
"main": "./out/extension.js",
|
|
"contributes": {
|
|
"commands": [
|
|
{
|
|
"command": "extension.source-control.open",
|
|
"title": "Open JS Fiddle"
|
|
},
|
|
{
|
|
"command": "extension.source-control.commit",
|
|
"title": "Commit local changes to JS Fiddle",
|
|
"icon": {
|
|
"light": "resources/icons/light/check.svg",
|
|
"dark": "resources/icons/dark/check.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "extension.source-control.refresh",
|
|
"title": "Refresh JS Fiddle status",
|
|
"icon": {
|
|
"light": "resources/icons/light/refresh.svg",
|
|
"dark": "resources/icons/dark/refresh.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "extension.source-control.discard",
|
|
"title": "Discards local changes to JS Fiddle",
|
|
"icon": {
|
|
"light": "resources/icons/light/discard.svg",
|
|
"dark": "resources/icons/dark/discard.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "extension.source-control.checkout",
|
|
"title": "Checkout another version of this Fiddle",
|
|
"icon": {
|
|
"light": "resources/icons/light/refresh.svg",
|
|
"dark": "resources/icons/dark/refresh.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "extension.source-control.browse",
|
|
"title": "Open current Fiddle in the default browser"
|
|
}
|
|
],
|
|
"menus": {
|
|
"scm/title": [
|
|
{
|
|
"command": "extension.source-control.commit",
|
|
"group": "navigation",
|
|
"when": "scmProvider == jsfiddle"
|
|
},
|
|
{
|
|
"command": "extension.source-control.discard",
|
|
"group": "navigation",
|
|
"when": "scmProvider == jsfiddle"
|
|
},
|
|
{
|
|
"command": "extension.source-control.refresh",
|
|
"group": "navigation",
|
|
"when": "scmProvider == jsfiddle"
|
|
},
|
|
{
|
|
"command": "extension.source-control.browse",
|
|
"when": "scmProvider == jsfiddle"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "npm run compile",
|
|
"compile": "tsc -p ./",
|
|
"lint": "eslint . --ext .ts,.tsx",
|
|
"watch": "tsc -watch -p ./"
|
|
},
|
|
"dependencies": {
|
|
"jsfiddle": "^1.1.7"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^12.12.0",
|
|
"@typescript-eslint/eslint-plugin": "^3.0.2",
|
|
"@typescript-eslint/parser": "^3.0.2",
|
|
"eslint": "^7.1.0",
|
|
"typescript": "^3.9.4",
|
|
"@types/vscode": "^1.32.0"
|
|
}
|
|
}
|