forked from Huachao/vscode-restclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
574 lines (574 loc) · 18.9 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
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
{
"name": "rest-client",
"displayName": "REST Client",
"description": "REST Client for Visual Studio Code",
"version": "0.19.1",
"publisher": "humao",
"author": {
"name": "Huachao Mao",
"email": "[email protected]"
},
"icon": "images/rest_icon.png",
"galleryBanner": {
"color": "#000000",
"theme": "dark"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/Huachao/vscode-restclient/issues",
"email": "[email protected]"
},
"homepage": "https://github.com/Huachao/vscode-restclient/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/Huachao/vscode-restclient.git"
},
"engines": {
"vscode": "^1.26.0"
},
"categories": [
"Other",
"Snippets",
"Programming Languages"
],
"keywords": [
"REST",
"Http",
"multi-root ready"
],
"activationEvents": [
"onCommand:rest-client.request",
"onCommand:rest-client.history",
"onCommand:rest-client.clear-history",
"onCommand:rest-client.save-response",
"onCommand:rest-client.save-response-body",
"onCommand:rest-client.switch-environment",
"onCommand:rest-client.clear-aad-token-cache",
"onLanguage:http"
],
"main": "./out/src/extension",
"contributes": {
"languages": [
{
"id": "http",
"aliases": [
"HTTP",
"Http",
"http"
],
"extensions": [
".http",
".rest"
],
"firstLine": "^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|CONNECT|TRACE)\\s+(.*?)HTTP/[0-9\\.]+$",
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "http",
"scopeName": "source.http",
"path": "./syntaxes/http.tmLanguage"
}
],
"snippets": [
{
"language": "http",
"path": "./snippets/http.json"
},
{
"language": "plaintext",
"path": "./snippets/http.json"
}
],
"commands": [
{
"command": "rest-client.request",
"title": "Send Request",
"category": "Rest Client"
},
{
"command": "rest-client.rerun-last-request",
"title": "Rerun Last Request",
"category": "Rest Client"
},
{
"command": "rest-client.cancel-request",
"title": "Cancel Request",
"category": "Rest Client"
},
{
"command": "rest-client.switch-environment",
"title": "Switch Environment",
"category": "Rest Client"
},
{
"command": "rest-client.history",
"title": "View Request History",
"category": "Rest Client"
},
{
"command": "rest-client.clear-history",
"title": "Clear Request History",
"category": "Rest Client"
},
{
"command": "rest-client.save-response",
"title": "Save Full Response",
"icon": {
"light": "./images/save.svg",
"dark": "./images/save-inverse.svg"
},
"category": "Rest Client"
},
{
"command": "rest-client.save-response-body",
"title": "Save Response Body",
"icon": {
"light": "./images/save-body.svg",
"dark": "./images/save-body-inverse.svg"
},
"category": "Rest Client"
},
{
"command": "rest-client.generate-codesnippet",
"title": "Generate Code Snippet",
"category": "Rest Client"
},
{
"command": "rest-client.copy-codesnippet",
"title": "Copy Code Snippet",
"icon": {
"light": "./images/copy.svg",
"dark": "./images/copy-inverse.svg"
},
"category": "Rest Client"
},
{
"command": "rest-client.copy-request-as-curl",
"title": "Copy Request As cURL",
"category": "Rest Client"
},
{
"command": "rest-client.clear-aad-token-cache",
"title": "Clear Azure AD Token Cache",
"category": "Rest Client"
}
],
"menus": {
"editor/title": [
{
"when": "httpResponsePreviewFocus",
"command": "rest-client.save-response",
"group": "navigation"
},
{
"when": "httpResponsePreviewFocus",
"command": "rest-client.save-response-body",
"group": "navigation"
},
{
"when": "codeSnippetPreviewFocus",
"command": "rest-client.copy-codesnippet",
"group": "navigation"
}
],
"editor/context": [
{
"command": "rest-client.request",
"when": "editorTextFocus && editorLangId == http",
"group": "rest-client@1"
},
{
"command": "rest-client.generate-codesnippet",
"when": "editorTextFocus && editorLangId == http",
"group": "rest-client@2"
},
{
"command": "rest-client.copy-request-as-curl",
"when": "editorTextFocus && editorLangId == http",
"group": "rest-client@3"
}
]
},
"keybindings": [
{
"command": "rest-client.request",
"key": "ctrl+alt+r",
"mac": "cmd+alt+r",
"when": "editorTextFocus && editorLangId == 'http'"
},
{
"command": "rest-client.request",
"key": "ctrl+alt+r",
"mac": "cmd+alt+r",
"when": "editorTextFocus && editorLangId == 'plaintext'"
},
{
"command": "rest-client.rerun-last-request",
"key": "ctrl+alt+l",
"mac": "cmd+alt+l",
"when": "editorTextFocus && editorLangId == 'http'"
},
{
"command": "rest-client.rerun-last-request",
"key": "ctrl+alt+l",
"mac": "cmd+alt+l",
"when": "editorTextFocus && editorLangId == 'plaintext'"
},
{
"command": "rest-client.rerun-last-request",
"key": "ctrl+alt+l",
"mac": "cmd+alt+l",
"when": "httpResponsePreviewFocus"
},
{
"command": "rest-client.cancel-request",
"key": "ctrl+alt+k",
"mac": "cmd+alt+k",
"when": "editorTextFocus && editorLangId == 'http'"
},
{
"command": "rest-client.cancel-request",
"key": "ctrl+alt+k",
"mac": "cmd+alt+k",
"when": "editorTextFocus && editorLangId == 'plaintext'"
},
{
"command": "rest-client.history",
"key": "ctrl+alt+h",
"mac": "cmd+alt+h"
},
{
"command": "rest-client.switch-environment",
"key": "ctrl+alt+e",
"mac": "cmd+alt+e"
},
{
"command": "rest-client.generate-codesnippet",
"key": "ctrl+alt+c",
"mac": "cmd+alt+c",
"when": "editorTextFocus && editorLangId == 'http'"
},
{
"command": "rest-client.generate-codesnippet",
"key": "ctrl+alt+c",
"mac": "cmd+alt+c",
"when": "editorTextFocus && editorLangId == 'plaintext'"
}
],
"configuration": {
"type": "object",
"title": "REST Client configuration",
"properties": {
"rest-client.followredirect": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Follow HTTP 3xx responses as redirects."
},
"rest-client.defaultHeaders": {
"type": "object",
"default": {
"User-Agent": "vscode-restclient"
},
"scope": "resource",
"description": "If particular headers are omitted in request header, these will be added as headers for each request."
},
"rest-client.timeoutinmilliseconds": {
"type": "integer",
"default": 0,
"scope": "resource",
"description": "Timeout in milliseconds. 0 for infinity"
},
"rest-client.showResponseInDifferentTab": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "Show response in different tab"
},
"rest-client.rememberCookiesForSubsequentRequests": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Remember cookies for subsequent requests"
},
"rest-client.enableTelemetry": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Send out anonymous usage data"
},
"rest-client.excludeHostsForProxy": {
"type": "array",
"default": [],
"scope": "resource",
"description": "Excluded hosts when using using proxy settings"
},
"rest-client.fontSize": {
"type": "number",
"default": null,
"scope": "resource",
"description": "Controls the font size in pixels used in the response preview"
},
"rest-client.fontFamily": {
"type": "string",
"default": null,
"scope": "resource",
"description": "Controls the font family used in the response preview"
},
"rest-client.fontWeight": {
"type": "string",
"enum": [
"normal",
"bold",
"bolder",
"lighter",
"100",
"200",
"300",
"400",
"500",
"600",
"700",
"800",
"900"
],
"scope": "resource",
"description": "Controls the font weight used in the response preview"
},
"rest-client.environmentVariables": {
"type": "object",
"default": {
"$shared": {}
},
"scope": "resource",
"description": "Sets the environments and custom variables belongs to it, especially the special environment name '$shared' is used to create variables shared across all the individual environments (e.g., {\"$shared\": {\"version\": \"v1\"}, \"production\": {\"host\": \"api.example.com\"}, \"sandbox\":{\"host\":\"sandbox.api.example.com\"}})",
"additionalProperties": {
"anyOf": [
{
"type": "object",
"default": {},
"description": "Sets the custom variables belong to this environment",
"additionalProperties": {
"anyOf": [
{
"type": "string",
"description": "Value of the custom variable"
}
]
}
}
]
}
},
"rest-client.mimeAndFileExtensionMapping": {
"type": "object",
"default": {},
"scope": "resource",
"description": "Sets the custom mapping of mime type and file extension of saved response body (e.g., {\"application/atom+xml\": \"xml\"})"
},
"rest-client.previewResponseInUntitledDocument": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "Preview response in untitled document if set to true, otherwise displayed in html view"
},
"rest-client.previewResponseSetUntitledDocumentLanguageByContentType": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "Attempt to automatically set document language based on Content-Type header when showing each response in new tab"
},
"rest-client.includeAdditionalInfoInResponse": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "Include additional information such as request URL and response time when preview is set to use untitled document"
},
"rest-client.certificates": {
"type": "object",
"default": {},
"scope": "resource",
"description": "Certificate paths for different hosts. The path can be absolute path or relative path(relative to workspace or current http file)",
"pattern": "^(?!http(s?)://)",
"additionalProperties": {
"anyOf": [
{
"type": "object",
"default": {},
"description": "Certifcate paths for specific host(e.g., foo.com, bar.org:8081), port is optional",
"properties": {
"cert": {
"type": "string",
"description": "Absolute or relative path of Public x509 certificate"
},
"key": {
"type": "string",
"description": "Absolute or relative path of Private key"
},
"pfx": {
"type": "string",
"description": "Absolute or relative path of PKCS #12 certificate"
},
"passphrase": {
"type": "string",
"description": "[Optional] A string of passphrase for the private key or pfx"
}
},
"dependencies": {
"cert": [
"key"
],
"key": [
"cert"
]
}
}
]
}
},
"rest-client.useTrunkedTransferEncodingForSendingFileContent": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Use trunked transfer encoding for sending file content as request body"
},
"rest-client.suppressResponseBodyContentTypeValidationWarning": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "Suppress response body content type validation"
},
"rest-client.previewOption": {
"type": "string",
"enum": [
"full",
"headers",
"body",
"exchange"
],
"default": "full",
"scope": "resource",
"description": "Response preview output option. 'full' for whole response message(status line, headers and body). 'headers' for response headers(as well as status line). 'body' for response body only. 'exchange' for whole HTTP exchange (request and response)"
},
"rest-client.showEnvironmentStatusBarItem": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Show environment picker in status bar"
},
"rest-client.disableHighlightResonseBodyForLargeResponse": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Controls whether to highlight response body for response whose size is larger than limit specified by 'rest-client.largeResponseSizeLimitInMB'"
},
"rest-client.disableAddingHrefLinkForLargeResponse": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Controls whether to add href link in previewed response for response whose size is larger than limit specified by 'rest-client.largeResponseSizeLimitInMB'"
},
"rest-client.largeResponseBodySizeLimitInMB": {
"type": "number",
"default": 5,
"minimum": 0,
"exclusiveMinimum": true,
"scope": "resource",
"description": "Set the response body size threshold of MB to identify whether a response is a so-called 'large response', only used when 'rest-client.disableHighlightResonseBodyForLargeResponse' and/or 'rest-client.disableAddingHrefLinkForLargeResponse' is set to true"
},
"rest-client.previewColumn": {
"type": "string",
"enum": [
"current",
"beside"
],
"default": "beside",
"scope": "resource",
"description": "Response preview column option. 'current' for previewing in the column of current request file. 'beside' for previewing at the side of the current active column and the side direction depends on 'workbench.editor.openSideBySideDirection' setting, either right or below the current editor column."
},
"rest-client.previewResponsePanelTakeFocus": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Preview response panel will take focus after receiving response."
},
"rest-client.formParamEncodingStrategy": {
"type": "string",
"enum": [
"automatic",
"never",
"always"
],
"default": "automatic",
"scope": "resource",
"description": "Form param encoding strategy for request body of x-www-form-urlencoded. 'automatic' for detecting encoding or not automatically and do the encoding job if necessary. 'never' for treating provided request body as is, no encoding job will be applied. 'always' for only use for the scenario that 'automatic' option not working properly, e.g., some special characters('+') are not encoded correctly."
},
"rest-client.addRequestBodyLineIndentationAroundBrackets": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Add line indentation around brackets('{}', '<>', '[]') in request body when pressing enter."
},
"rest-client.decodeEscapedUnicodeCharacters": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "Decode escaped unicode characters in response body."
}
}
},
"configurationDefaults": {
"[http]": {
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": true
}
}
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"tslint": "tslint --project tsconfig.json -e 'language-configuration.json'"
},
"devDependencies": {
"@types/fs-extra": "5.0.2",
"@types/mocha": "^2.2.32",
"@types/node": "^8.10.25",
"mocha": "^3.2.0",
"tslint": "^5.10.0",
"typescript": "^2.9.2",
"vscode": "^1.0.0"
},
"dependencies": {
"adal-node": "^0.1.26",
"applicationinsights": "^1.0.2",
"autolinker": "^1.4.0",
"clipboardy": "^1.2.3",
"code-highlight-linenums": "^0.2.1",
"combined-stream": "^1.0.5",
"elegant-spinner": "^1.0.1",
"encodeurl": "^1.0.1",
"filesize": "^3.3.0",
"fs-extra": "^5.0.0",
"highlight.js": "^9.6.0",
"httpsnippet": "^1.16.5",
"iconv-lite": "^0.4.15",
"js-beautify": "^1.7.5",
"jsonpath": "^1.0.0",
"mime-types": "^2.1.14",
"moment": "^2.20.1",
"node-uuid": "^1.4.7",
"pretty-data": "^0.40.0",
"request": "^2.81.0",
"tmp": "^0.0.31",
"tough-cookie-file-store-bugfix": "Huachao/tough-cookie-file-store-bugfix",
"xmldom": "^0.1.27",
"xpath": "0.0.27",
"yargs": "^6.0.0"
}
}