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
141 lines
3.7 KiB
JSON
141 lines
3.7 KiB
JSON
{
|
|
"name": "vscode-terminal-api-example",
|
|
"displayName": "vscode-terminal-api-example",
|
|
"description": "abc",
|
|
"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.58.0"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"activationEvents": [
|
|
"onCommand:terminalTest.createAndSend",
|
|
"onCommand:terminalTest.createTerminal",
|
|
"onCommand:terminalTest.createTerminalHideFromUser",
|
|
"onCommand:terminalTest.createZshLoginShell",
|
|
"onCommand:terminalTest.dimensions",
|
|
"onCommand:terminalTest.dispose",
|
|
"onCommand:terminalTest.hide",
|
|
"onCommand:terminalTest.onDidChangeTerminalDimensions",
|
|
"onCommand:terminalTest.onDidWriteTerminalData",
|
|
"onCommand:terminalTest.processId",
|
|
"onCommand:terminalTest.registerTerminalLinkProvider",
|
|
"onCommand:terminalTest.sendText",
|
|
"onCommand:terminalTest.sendTextNoNewLine",
|
|
"onCommand:terminalTest.show",
|
|
"onCommand:terminalTest.showPreserveFocus",
|
|
"onCommand:terminalTest.terminals",
|
|
"onCommand:terminalTest.updateEnvironment",
|
|
"onCommand:terminalTest.clearEnvironment",
|
|
"onTerminalProfile:terminalTest.terminal-profile"
|
|
],
|
|
"main": "./out/extension.js",
|
|
"contributes": {
|
|
"commands": [
|
|
{
|
|
"command": "terminalTest.createAndSend",
|
|
"title": "Terminal API: Create Terminal and Immediately Send"
|
|
},
|
|
{
|
|
"command": "terminalTest.createTerminal",
|
|
"title": "Terminal API: Create Terminal"
|
|
},
|
|
{
|
|
"command": "terminalTest.createTerminalHideFromUser",
|
|
"title": "Terminal API: Create Terminal (hideFromUser)"
|
|
},
|
|
{
|
|
"command": "terminalTest.createZshLoginShell",
|
|
"title": "Terminal API: Create Terminal (zsh login shell)"
|
|
},
|
|
{
|
|
"command": "terminalTest.dimensions",
|
|
"title": "Terminal API: Set dimensions"
|
|
},
|
|
{
|
|
"command": "terminalTest.dispose",
|
|
"title": "Terminal API: Dispose"
|
|
},
|
|
{
|
|
"command": "terminalTest.hide",
|
|
"title": "Terminal API: Hide"
|
|
},
|
|
{
|
|
"command": "terminalTest.onDidWriteTerminalData",
|
|
"title": "Terminal API: Attach data listener"
|
|
},
|
|
{
|
|
"command": "terminalTest.onDidChangeTerminalDimensions",
|
|
"title": "Terminal API: Attach dimensions listener"
|
|
},
|
|
{
|
|
"command": "terminalTest.processId",
|
|
"title": "Terminal API: Get process ID"
|
|
},
|
|
{
|
|
"command": "terminalTest.sendText",
|
|
"title": "Terminal API: Send Text"
|
|
},
|
|
{
|
|
"command": "terminalTest.sendTextNoNewLine",
|
|
"title": "Terminal API: Send Text (no implied \\n)"
|
|
},
|
|
{
|
|
"command": "terminalTest.show",
|
|
"title": "Terminal API: Show"
|
|
},
|
|
{
|
|
"command": "terminalTest.showPreserveFocus",
|
|
"title": "Terminal API: Show (preserving focus)"
|
|
},
|
|
{
|
|
"command": "terminalTest.terminals",
|
|
"title": "Terminal API: View terminals"
|
|
},
|
|
{
|
|
"command": "terminalTest.updateEnvironment",
|
|
"title": "Terminal API: Update environment"
|
|
},
|
|
{
|
|
"command": "terminalTest.clearEnvironment",
|
|
"title": "Terminal API: Clear environment"
|
|
},
|
|
{
|
|
"command": "terminalTest.registerTerminalLinkProvider",
|
|
"title": "Terminal API: Register link provider"
|
|
}
|
|
],
|
|
"terminal": {
|
|
"profiles": [
|
|
{
|
|
"id": "terminalTest.terminal-profile",
|
|
"icon": "terminal",
|
|
"title": "Terminal API Profile"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "npm run compile",
|
|
"compile": "tsc -p ./",
|
|
"watch": "tsc -watch -p ./",
|
|
"lint": "eslint \"src/**/*.ts\""
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^16.11.7",
|
|
"@types/vscode": "^1.58.0",
|
|
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
"@typescript-eslint/parser": "^5.42.0",
|
|
"eslint": "^8.26.0",
|
|
"typescript": "^4.8.4"
|
|
}
|
|
}
|