mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Switches all samples to use eslint 9 with flat configs. I've tried to migrate existing settings as much as possible. However our eslint configs were also inconsistent so I've tried to align these too
109 lines
2.6 KiB
JSON
109 lines
2.6 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.74.0"
|
|
},
|
|
"categories": [
|
|
"SCM Providers"
|
|
],
|
|
"activationEvents": [
|
|
"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",
|
|
"watch": "tsc -watch -p ./"
|
|
},
|
|
"dependencies": {
|
|
"jsfiddle": "^1.1.7"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.13.0",
|
|
"@stylistic/eslint-plugin": "^2.9.0",
|
|
"@types/node": "^20",
|
|
"@types/vscode": "^1.73.0",
|
|
"eslint": "^9.13.0",
|
|
"typescript": "^5.6.2",
|
|
"typescript-eslint": "^8.11.0"
|
|
}
|
|
}
|