forked from rubyide/vscode-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
337 lines (333 loc) · 8.72 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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
{
"name": "Ruby",
"displayName": "Ruby",
"version": "0.5.3",
"publisher": "rebornix",
"description": "Provides Ruby language and debugging support for Visual Studio Code",
"author": {
"name": "Peng Lv"
},
"contributors": [
{
"name": "Peng Lyu",
"url": "https://github.com/rebornix"
},
{
"name": "Bryan Hoekstra",
"url": "https://github.com/HookyQR"
},
{
"name": "Drew Cain",
"url": "https://github.com/groksrc"
},
{
"name": "Lex Li",
"url": "https://github.com/lextm"
}],
"engines": {
"vscode": "^0.10.1"
},
"license": "MIT",
"icon": "images/ruby.png",
"categories": [
"Debuggers",
"Languages",
"Linters",
"Snippets"
],
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/rubyide/vscode-ruby.git"
},
"bugs": {
"url": "https://github.com/rubyide/vscode-ruby/issues"
},
"dependencies": {
"vscode-debugprotocol": "~1.6.0-pre4",
"vscode-debugadapter": "~1.6.0-pre8",
"xmldom": "^0.1.19"
},
"devDependencies": {
"gulp": "^3.9.0",
"gulp-util": "^3.0.5",
"gulp-typescript": "^2.12.0",
"gulp-sourcemaps": "^1.6.0",
"run-sequence": "*",
"mocha": "^2.4.5",
"typescript": "1.8.2"
},
"scripts": {
"vscode:prepublish": "tsc -p ./src",
"compile": "tsc -p ./src",
"watch": "tsc -w -p ./src",
"test": "node ./node_modules/mocha/bin/mocha --timeout 15000 -u tdd ./out/tests/*.js"
},
"activationEvents": [
"onLanguage:ruby"
],
"main": "ruby.js",
"contributes": {
"snippets": [
{
"language": "ruby",
"path": "./snippets/ruby.json"
}
],
"configuration": {
"title": "ruby language linting settings",
"properties": {
"ruby.lint": {
"type": "object",
"description": "Set individual ruby linters to use",
"properties": {
"ruby": {
"type": "boolean",
"default": false,
"description": "Use ruby -wc to lint"
},
"debride": {
"type": ["boolean", "object"],
"default": false,
"properties": {
"rails": {
"type": "boolean",
"default": "true",
"description": "Add some rails call conversions"
}
},
"description": "Use debride to lint"
},
"fasterer": {
"type": "boolean",
"default": false,
"description": "Use fasterer to lint"
},
"reek": {
"type": "boolean",
"default": false,
"description": "Use reek to lint"
},
"rubocop": {
"type": ["boolean", "object"],
"default": false,
"description": "Use RuboCop to lint",
"properties": {
"lint": {
"type": "boolean",
"default": false,
"description": "Enable all lint cops"
},
"only": {
"type": "array",
"description": "Run only the specified cop(s) and/or cops in the specified departments",
"items": {
"type": "string"
}
},
"except": {
"type": "array",
"description": "Run all cops enabled by configuration except the specified cop(s) and/or departments",
"items": {
"type": "string"
}
},
"require": {
"type": "array",
"description": "Require Ruby files",
"items": {
"type": "string"
}
},
"rails": {
"type": "boolean",
"default": false
}
}
},
"ruby-lint": {
"type": ["boolean", "object"],
"default": false,
"description": "Use ruby-lint to lint",
"properties": {
"levels": {
"type": "array",
"description": "Level of offenses to show",
"items": {
"type": "string",
"enum": ["error", "warning", "info"]
}
},
"classes": {
"type": "array",
"description": "Classes of offenses to show",
"items": {
"type": "string",
"enum": ["argument_amount", "loop_keywords", "pedantics", "shadowing_variables", "undefined_methods",
"undefined_variables", "unused_variables", "useless_equality_checks"]
}
}
}
}
}
}
}
},
"languages": [{
"id": "ruby",
"aliases": ["Ruby", "ruby"],
"extensions": [".rb", ".rbx", ".rjs", ".Rakefile", ".rake", ".cgi", ".fcgi", ".gemspec", ".irbrc", ".capfile",
".ru", ".prawn", ".Gemfile", ".Guardfile", ".Vagrantfile"]
}],
"grammars": [{
"language": "ruby",
"scopeName": "source.ruby",
"path": "./syntaxes/ruby.tmLanguage"
}],
"debuggers": [
{
"type": "Ruby",
"label": "Ruby",
"enableBreakpointsFor": {
"languageIds": ["ruby", "erb"]
},
"program": "./out/main.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": ["program"],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to the program.",
"default": "${workspaceRoot}/main.rb"
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": true
},
"showDebuggerOutput": {
"type": "boolean",
"description": "Show output of the debugger in the console.",
"default": false
},
"args": {
"type": "array",
"description": "Command line arguments passed to the program.",
"items": {
"type": "string"
},
"default": []
},
"env": {
"type": "object",
"description": "Additional environment variables to pass to the debugging (and debugged) process.",
"default": {}
},
"cwd": {
"type": "string",
"description": "Absolute path to the working directory of the program being debugged.",
"default": "${workspaceRoot}"
},
"useBundler": {
"type": "boolean",
"description": "Use `bundle exec` to run rdebug-ide. Enable this option if you have used bundle install --path with rdebug-ide as a bundled gem.",
"default": false
},
"pathToBundler": {
"type": "string",
"description": "If you use the `useBunder` option, and `bundle` is not in your path, provide the absolute path to `bundle` (eg. \"/usr/bin/bundle\" )",
"default": "bundle"
},
"pathToRDebugIDE": {
"type": "string",
"description": "If `rdebug-ide` is not in your path, provide the absolute path to `rdebug-ide` (eg. \"c:\\ruby\\rdebug-ide.bat\" )",
"default": "rdebug-ide"
}
}
},
"attach": {
"required": ["cwd", "remoteHost", "remotePort", "remoteWorkspaceRoot"],
"properties": {
"cwd": {
"type": "string",
"description": "Absolute path to the working directory of the program being debugged.",
"default": "${workspaceRoot}"
},
"remoteHost": {
"type": "string",
"description": "Host address for remote debugging.",
"default": "127.0.0.1"
},
"remotePort": {
"type": "string",
"description": "Port for remote debugging.",
"default": "1234"
},
"remoteWorkspaceRoot": {
"type": "string",
"description": "Remote workspace root, this parameter is required for remote debugging.",
"default": "${workspaceRoot}"
},
"showDebuggerOutput": {
"type": "boolean",
"description": "Show output of the debugger in the console.",
"default": false
}
}
}
},
"initialConfigurations": [
{
"name": "Debug Local File",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/main.rb"
},
{
"name": "Listen for rdebug-ide",
"type": "Ruby",
"request": "attach",
"cwd": "${workspaceRoot}",
"remoteHost": "127.0.0.1",
"remotePort": "1234",
"remoteWorkspaceRoot": "${workspaceRoot}"
},
{
"name": "Rails server",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rails",
"args": ["server"]
},
{
"name": "RSpec - all",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rspec",
"args": ["-I","${workspaceRoot}"]
},
{
"name": "RSpec - active spec file only",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rspec",
"args": ["-I","${workspaceRoot}","${file}"]
},
{
"name": "Cucumber",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/cucumber"
}
]
}
]
}
}