forked from formulahendry/vscode-code-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
287 lines (287 loc) · 9.58 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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
{
"name": "code-runner",
"displayName": "Code Runner",
"description": "Run C, C++, Java, JS, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, CMD, BASH, F#, C#, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml, R, AppleScript, Elixir, VB.NET, Clojure, Haxe, Objective-C, Rust, Racket, AutoHotkey, AutoIt, Kotlin, Dart, Pascal, Haskell, Nim, D",
"version": "0.6.32",
"publisher": "formulahendry",
"icon": "images/logo.png",
"engines": {
"vscode": "^1.6.0"
},
"categories": [
"Languages",
"Other"
],
"keywords": [
"javascript",
"php",
"python",
"perl",
"ruby"
],
"bugs": {
"url": "https://github.com/formulahendry/vscode-code-runner/issues",
"email": "[email protected]"
},
"homepage": "https://github.com/formulahendry/vscode-code-runner/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/formulahendry/vscode-code-runner.git"
},
"activationEvents": [
"onCommand:code-runner.run",
"onCommand:code-runner.runCustomCommand",
"onCommand:code-runner.runByLanguage"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "code-runner.run",
"title": "Run Code",
"icon": {
"light": "./images/run-light.png",
"dark": "./images/run-dark.png"
}
},
{
"command": "code-runner.runCustomCommand",
"title": "Run Custom Command"
},
{
"command": "code-runner.runByLanguage",
"title": "Run By Language"
},
{
"command": "code-runner.stop",
"title": "Stop Code Run"
}
],
"keybindings": [
{
"command": "code-runner.run",
"key": "ctrl+alt+n"
},
{
"command": "code-runner.runCustomCommand",
"key": "ctrl+alt+k"
},
{
"command": "code-runner.runByLanguage",
"key": "ctrl+alt+j"
},
{
"command": "code-runner.stop",
"key": "ctrl+alt+m"
}
],
"menus": {
"editor/context": [
{
"when": "!inOutput",
"command": "code-runner.run",
"group": "navigation"
},
{
"when": "inOutput",
"command": "code-runner.stop",
"group": "stop-code-run"
}
],
"editor/title": [
{
"when": "config.code-runner.showRunIconInEditorTitleMenu",
"command": "code-runner.run",
"group": "navigation"
}
]
},
"configuration": {
"type": "object",
"title": "Run Code configuration",
"properties": {
"code-runner.executorMap": {
"type": "object",
"default": {
"javascript": "node",
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"php": "php",
"python": "python",
"perl": "perl",
"ruby": "ruby",
"go": "go run",
"lua": "lua",
"groovy": "groovy",
"powershell": "powershell -ExecutionPolicy ByPass -File",
"bat": "cmd /c",
"shellscript": "bash",
"fsharp": "fsi",
"csharp": "scriptcs",
"vbscript": "cscript //Nologo",
"typescript": "ts-node",
"coffeescript": "coffee",
"scala": "scala",
"swift": "swift",
"julia": "julia",
"crystal": "crystal",
"ocaml": "ocaml",
"r": "Rscript",
"applescript": "osascript",
"clojure": "lein exec",
"haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
"rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
"racket": "racket",
"ahk": "autohotkey",
"autoit": "autoit3",
"kotlin": "cd $dir && kotlinc $fileName -include-runtime -d $fileNameWithoutExt.jar && java -jar $fileNameWithoutExt.jar",
"dart": "dart",
"pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
"d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
"haskell": "runhaskell",
"nim": "nim compile --verbosity:0 --hints:off --run"
},
"description": "Set the executor of each language."
},
"code-runner.executorMapByFileExtension": {
"type": "object",
"default": {
".vb": "cd $dir && vbc /nologo $fileName && $dir$fileNameWithoutExt",
".vbs": "cscript //Nologo",
".scala": "scala",
".jl": "julia",
".cr": "crystal",
".ml": "ocaml",
".exs": "elixir",
".hx": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
".rkt": "racket",
".ahk": "autohotkey",
".au3": "autoit3",
".kt": "cd $dir && kotlinc $fileName -include-runtime -d $fileNameWithoutExt.jar && java -jar $fileNameWithoutExt.jar",
".kts": "kotlinc -script",
".dart": "dart",
".pas": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
".pp": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
".d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
".hs": "runhaskell",
".nim": "nim compile --verbosity:0 --hints:off --run"
},
"description": "Set the executor of each file extension."
},
"code-runner.customCommand": {
"type": "string",
"default": "echo Hello",
"description": "Set the custom command to run."
},
"code-runner.languageIdToFileExtensionMap": {
"type": "object",
"default": {
"bat": ".bat",
"powershell": ".ps1"
},
"description": "Set the mapping of languageId to file extension."
},
"code-runner.defaultLanguage": {
"type": "string",
"default": "",
"description": "Set the default language to run."
},
"code-runner.cwd": {
"type": "string",
"default": "",
"description": "Set the working directory."
},
"code-runner.fileDirectoryAsCwd": {
"type": "boolean",
"default": false,
"description": "Whether to use the directory of the file to be executed as the working directory."
},
"code-runner.clearPreviousOutput": {
"type": "boolean",
"default": false,
"description": "Whether to clear previous output before each run."
},
"code-runner.saveAllFilesBeforeRun": {
"type": "boolean",
"default": false,
"description": "Whether to save all files before running."
},
"code-runner.saveFileBeforeRun": {
"type": "boolean",
"default": false,
"description": "Whether to save the current file before running."
},
"code-runner.enableAppInsights": {
"type": "boolean",
"default": true,
"description": "Whether to enable AppInsights to track user telemetry data."
},
"code-runner.showExecutionMessage": {
"type": "boolean",
"default": true,
"description": "Whether to show extra execution message like [Running] ... and [Done] ..."
},
"code-runner.runInTerminal": {
"type": "boolean",
"default": false,
"description": "Whether to run code in Integrated Terminal."
},
"code-runner.terminalRoot": {
"type": "string",
"default": "",
"description": "For Windows system, replaces the Windows style drive letter in the command with a Unix style root when using a custom shell as the terminal, like Bash or Cgywin. Example: Setting this to '/mnt/' will replace 'C:\\path' with '/mnt/c/path'"
},
"code-runner.preserveFocus": {
"type": "boolean",
"default": true,
"description": "Whether to preserve focus on code editor after code run is triggered."
},
"code-runner.ignoreSelection": {
"type": "boolean",
"default": false,
"description": "Whether to ignore selection to always run entire file."
},
"code-runner.showRunIconInEditorTitleMenu": {
"type": "boolean",
"default": true,
"description": "Whether to show 'Run Code' icon in editor title menu."
}
}
},
"languages": [
{
"id": "code-runner-output",
"mimetypes": [
"text/x-code-output"
]
}
],
"grammars": [
{
"language": "code-runner-output",
"scopeName": "code-runner.output",
"path": "./syntaxes/code-runner-output.tmLanguage"
}
]
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"tslint": "tslint -t verbose src/**/*.ts"
},
"dependencies": {
"applicationinsights": "^0.19.0",
"tree-kill": "^1.1.0"
},
"devDependencies": {
"@types/mocha": "^2.2.32",
"@types/node": "^6.0.40",
"mocha": "^2.3.3",
"tslint": "^5.5.0",
"typescript": "^2.0.3",
"vscode": "^1.0.0"
}
}