mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Pick up latest eslint to avoid a nasty warning about using an unsupported version of TS Also updates the eslint script to be more scoped on which files it checks
114 lines
2.8 KiB
JSON
114 lines
2.8 KiB
JSON
{
|
|
"name": "source-control-sample",
|
|
"displayName": "source-control-sample",
|
|
"description": "Source control VS Code extension sample",
|
|
"version": "0.0.1",
|
|
"publisher": "vscode-samples",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/Microsoft/vscode-extension-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 \"src/**/*.ts\"",
|
|
"watch": "tsc -watch -p ./"
|
|
},
|
|
"dependencies": {
|
|
"jsfiddle": "^1.1.7"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^16.11.7",
|
|
"@types/vscode": "^1.32.0",
|
|
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
"@typescript-eslint/parser": "^5.42.0",
|
|
"eslint": "^8.26.0",
|
|
"typescript": "^4.8.4"
|
|
}
|
|
}
|