forked from edonet/vscode-command-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
197 lines (197 loc) · 5.88 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
{
"name": "vscode-command-runner",
"displayName": "Command Runner",
"description": "vscode custom shell command runner",
"version": "0.0.124",
"icon": "images/logo.png",
"publisher": "edonet",
"engines": {
"vscode": "^1.61.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:command-runner.run",
"onCommand:command-runner.runInTerminal"
],
"main": "./dist/extension",
"scripts": {
"build": "yarn clean && yarn compile && vsce package",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"symlink": "node scripts/symlink.js",
"vscode:prepublish": "yarn run compile",
"clean": "rimraf ./dist"
},
"contributes": {
"commands": [
{
"command": "command-runner.run",
"title": "Run Command"
},
{
"command": "command-runner.runInTerminal",
"title": "Run In Terminal"
}
],
"configuration": {
"type": "object",
"title": "Run Command Configuration",
"properties": {
"command-runner.terminal.name": {
"type": "string",
"default": "",
"description": "Specifies the terminal name to execute the command.",
"scope": "resource"
},
"command-runner.terminal.cwd": {
"type": "string",
"description": "A path or Uri for the current working directory to be used for the terminal.",
"scope": "resource"
},
"command-runner.terminal.env": {
"type": "string",
"description": "Object with environment variables that will be added to the VS Code process.",
"scope": "resource"
},
"command-runner.terminal.shellPath": {
"type": "string",
"description": "A path to a custom shell executable to be used in the terminal.",
"scope": "resource"
},
"command-runner.terminal.shellArgs": {
"type": [
"string",
"array"
],
"description": "Args for the custom shell executable. A string can be used on Windows only which allows specifying shell args in command-line format.",
"scope": "resource"
},
"command-runner.terminal.autoClear": {
"type": "boolean",
"default": true,
"description": "Clear the content of terminal before execute the command.",
"scope": "resource"
},
"command-runner.terminal.autoFocus": {
"type": "boolean",
"default": true,
"description": "Focus the terminal when execute the command.",
"scope": "resource"
},
"command-runner.commands": {
"type": "object",
"default": {},
"description": "Set the custom command to run.",
"scope": "resource"
},
"command-runner.autoAppendSelectedFiles": {
"type": "boolean",
"default": false,
"description": "Focus the terminal when execute the command.",
"scope": "resource"
},
"command-runner.showRunCommandInEditorContextMenu": {
"type": "boolean",
"default": true,
"description": "Show 'Run Command' in editor context menu",
"scope": "resource"
},
"command-runner.showRunCommandInExplorerContextMenu": {
"type": "boolean",
"default": true,
"description": "Show 'Run Command' in explorer context menu",
"scope": "resource"
}
}
},
"keybindings": [
{
"command": "command-runner.run",
"key": "ctrl+shift+r",
"mac": "ctrl+shift+r"
},
{
"command": "command-runner.runInTerminal",
"key": "ctrl+alt+r",
"mac": "ctrl+alt+r"
}
],
"menus": {
"editor/context": [
{
"when": "!inOutput && config.command-runner.showRunCommandInEditorContextMenu",
"command": "command-runner.run",
"group": "navigation"
},
{
"when": "editorHasSelection && !inOutput && config.command-runner.showRunCommandInEditorContextMenu",
"command": "command-runner.runInTerminal",
"group": "navigation"
}
],
"explorer/context": [
{
"when": "config.command-runner.showRunCommandInExplorerContextMenu",
"command": "command-runner.run",
"group": "navigation"
}
]
}
},
"commands": {
"file": "cat ${file}",
"fileBasename": "echo ${fileBasename}",
"fileBasenameNoExtension": "echo ${fileBasenameNoExtension}",
"fileDirname": "echo ${fileDirname}",
"fileExtname": "echo ${fileExtname}",
"relativeFile": "echo ${relativeFile}",
"relativeFileNoExtension": "echo ${relativeFileNoExtension}",
"relativeFileDirname": "echo ${relativeFileDirname}",
"lineNumber": "echo ${lineNumber}",
"lineNumbers": "echo ${lineNumbers}",
"columnNumber": "echo ${columnNumber}",
"columnNumbers": "echo ${columnNumbers}",
"selectedFile": "echo ${selectedFile}",
"selectedFiles": "echo ${selectedFiles}",
"selectedPosition": "echo ${selectedPosition}",
"selectedPositionList": "echo ${selectedPositionList}",
"selectedLocation": "echo ${selectedLocation}",
"selectedLocationList": "echo ${selectedLocationList}",
"selectedText": "echo ${selectedText}",
"selectedTextList": "echo ${selectedTextList}",
"selectedTextSection": "echo ${selectedTextSection}",
"workspaceFolder": "echo ${workspaceFolder}",
"workspaceFolderBasename": "echo ${workspaceFolderBasename}",
"homedir": "echo ${homedir}",
"tmpdir": "echo ${tmpdir}",
"env": "echo '${env:PATH}'",
"config": "echo ${config:editor.fontSize}",
"command": "${command:workbench.action.openRecent}"
},
"bugs": {
"url": "https://github.com/edonet/vscode-command-runner/issues",
"email": "[email protected]"
},
"homepage": "https://github.com/edonet/vscode-command-runner/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/edonet/vscode-command-runner.git"
},
"devDependencies": {
"@types/node": "^16.11.4",
"@types/vscode": "^1.61.0",
"@typescript-eslint/eslint-plugin": "^5.1.0",
"@typescript-eslint/parser": "^5.1.0",
"eslint": "^8.1.0",
"rimraf": "^4.4.1",
"typescript": "^4.4.4"
},
"__metadata": {
"id": "c4acb5b7-168f-4561-86ef-79352610787e",
"publisherDisplayName": "edonet",
"publisherId": "56102209-e938-4a27-8dad-976ac027ac55"
}
}