-
Notifications
You must be signed in to change notification settings - Fork 444
/
package.json
757 lines (757 loc) · 23.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
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
{
"name": "rest-client",
"displayName": "REST Client",
"description": "REST Client for Visual Studio Code",
"version": "0.26.0",
"publisher": "humao",
"author": {
"name": "Huachao Mao",
"email": "huachaomao@gmail.com"
},
"icon": "images/rest_icon.png",
"galleryBanner": {
"color": "#000000",
"theme": "dark"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/Huachao/vscode-restclient/issues",
"email": "huachaomao@gmail.com"
},
"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.81.0"
},
"categories": [
"Other",
"Snippets",
"Linters",
"Programming Languages"
],
"keywords": [
"REST",
"Http",
"GraphQL",
"multi-root ready"
],
"activationEvents": [
"onLanguage:markdown"
],
"main": "./dist/extension",
"contributes": {
"languages": [
{
"id": "http",
"aliases": [
"HTTP",
"Http",
"http"
],
"extensions": [
".http",
".rest"
],
"firstLine": "^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|CONNECT|TRACE|LOCK|UNLOCK|PROPFIND|PROPPATCH|COPY|MOVE|MKCOL|MKCALENDAR|ACL|SEARCH)\\s+(.*?)HTTP/[0-9\\.]+$",
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "http",
"scopeName": "source.http",
"path": "./syntaxes/http.tmLanguage.json"
}
],
"snippets": [
{
"language": "http",
"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.copy-response-body",
"title": "Copy Response Body",
"icon": {
"light": "./images/copy.svg",
"dark": "./images/copy-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"
},
{
"command": "rest-client.clear-cookies",
"title": "Clear cookies",
"category": "Rest Client"
},
{
"command": "rest-client.fold-response",
"title": "Fold Response",
"category": "Rest Client"
},
{
"command": "rest-client.unfold-response",
"title": "Unfold Response",
"category": "Rest Client"
},
{
"command": "rest-client.preview-html-response-body",
"title": "HTML Preview",
"category": "Rest Client"
},
{
"command": "rest-client.show-raw-response",
"title": "Raw",
"category": "Rest Client"
},
{
"command": "rest-client.import-swagger",
"title": "Import from file",
"category": "Rest Client"
}
],
"menus": {
"commandPalette": [
{
"command": "rest-client.fold-response",
"when": "httpResponsePreviewFocus"
},
{
"command": "rest-client.unfold-response",
"when": "httpResponsePreviewFocus"
},
{
"command": "rest-client.preview-html-response-body",
"when": "isHTMLResponse"
},
{
"command": "rest-client.show-raw-response",
"when": "isHTMLResponse"
},
{
"command": "rest-client.save-response",
"when": "httpResponsePreviewFocus"
},
{
"command": "rest-client.save-response-body",
"when": "httpResponsePreviewFocus"
},
{
"command": "rest-client.copy-response-body",
"when": "httpResponsePreviewFocus"
},
{
"command": "rest-client.copy-codesnippet",
"when": "codeSnippetPreviewFocus"
}
],
"editor/title": [
{
"when": "httpResponsePreviewFocus",
"command": "rest-client.save-response",
"group": "navigation@1"
},
{
"when": "httpResponsePreviewFocus",
"command": "rest-client.save-response-body",
"group": "navigation@2"
},
{
"when": "httpResponsePreviewFocus",
"command": "rest-client.copy-response-body",
"group": "navigation@3"
},
{
"when": "httpResponsePreviewFocus",
"command": "rest-client.fold-response",
"group": "1_rest-client@1"
},
{
"when": "httpResponsePreviewFocus",
"command": "rest-client.unfold-response",
"group": "1_rest-client@2"
},
{
"when": "isHTMLResponse",
"command": "rest-client.preview-html-response-body",
"group": "1_rest-client@3"
},
{
"when": "isHTMLResponse",
"command": "rest-client.show-raw-response",
"group": "1_rest-client@4"
},
{
"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",
"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 headers, 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.requestNameAsResponseTabTitle": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "Show request name as the response tab title"
},
"rest-client.rememberCookiesForSubsequentRequests": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Remember cookies for subsequent requests"
},
"rest-client.enableTelemetry": {
"type": "boolean",
"default": false,
"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",
"scope": "resource",
"markdownDescription": "Controls the font size in pixels used in the response preview. When set to `0`, the value of `#editor.fontSize#` is used."
},
"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",
"markdownDescription": "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",
"additionalProperties": {
"anyOf": [
{
"type": "string"
}
]
},
"markdownDescription": "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.oidcScopes": {
"type": "array",
"default": [],
"scope": "resource",
"description": "Scopes to be used by the OIDC client, default: [openid profile email]"
},
"rest-client.oidcCertificates": {
"type": "object",
"default": {},
"scope": "resource",
"description": "Certificate paths for Oidc callback server",
"pattern": "^(?!http(s?)://)",
"additionalProperties": {
"anyOf": [
{
"type": "object",
"default": {},
"description": "Certifcate paths for Oidc callback server",
"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.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.suppressResponseBodyContentTypeValidationWarning": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "Suppress response body content type validation"
},
"rest-client.previewOption": {
"type": "string",
"enum": [
"full",
"headers",
"body",
"exchange"
],
"enumDescriptions": [
"Response headers, body and status line",
"Response headers and status line",
"Response body only",
"Whole HTTP exchange including both request and response"
],
"default": "full",
"scope": "resource",
"description": "Response preview output option"
},
"rest-client.disableHighlightResponseBodyForLargeResponse": {
"type": "boolean",
"default": true,
"scope": "resource",
"markdownDescription": "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",
"markdownDescription": "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",
"markdownDescription": "Set the response body size threshold of MB to identify whether a response is a so-called 'large response', only used when `rest-client.disableHighlightResponseBodyForLargeResponse` and/or `rest-client.disableAddingHrefLinkForLargeResponse` is set to true"
},
"rest-client.previewColumn": {
"type": "string",
"enum": [
"current",
"beside"
],
"markdownEnumDescriptions": [
"Preview in the column of current request file",
"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"
],
"default": "beside",
"scope": "resource",
"description": "Response preview column option"
},
"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"
],
"markdownEnumDescriptions": [
"Detecting encoding or not automatically and do the encoding job if necessary",
"Treat provided request body as is, no encoding job will be applied",
"Use for the scenario that `automatic` option not working properly, e.g., some special characters(`+`) are not encoded correctly"
],
"default": "automatic",
"scope": "resource",
"markdownDescription": "Form param encoding strategy for request body of `x-www-form-urlencoded`."
},
"rest-client.addRequestBodyLineIndentationAroundBrackets": {
"type": "boolean",
"default": true,
"scope": "resource",
"markdownDescription": "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."
},
"rest-client.logLevel": {
"type": "string",
"enum": [
"error",
"warn",
"info",
"verbose"
],
"default": "error",
"scope": "resource",
"description": "The verbosity of logging in the REST output panel"
},
"rest-client.enableSendRequestCodeLens": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Enable/disable sending request CodeLens in request file"
},
"rest-client.enableCustomVariableReferencesCodeLens": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Enable/disable custom variable references CodeLens in request file"
},
"rest-client.useContentDispositionFilename": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Enable/disable using filename from 'content-disposition' header, when saving response body"
}
}
},
"configurationDefaults": {
"[http]": {
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": true
}
}
}
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"watch": "webpack --mode development --watch",
"tslint": "tslint --project tsconfig.json"
},
"devDependencies": {
"@types/aws4": "^1.5.1",
"@types/fs-extra": "^5.0.4",
"@types/jws": "^3.2.10",
"@types/mocha": "^5.2.6",
"@types/node": "^18.0.0",
"@types/node-fetch": "^2.6.11",
"@types/vscode": "^1.81.0",
"mocha": "^10.4.0",
"ts-loader": "^7.0.5",
"tslint": "^6.1.2",
"typescript": "^5.4.2",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"adal-node": "^0.2.4",
"applicationinsights": "^1.0.5",
"aws-amplify": "^5.0.3",
"aws4": "^1.9.1",
"code-highlight-linenums": "^0.2.1",
"combined-stream": "^1.0.5",
"content-disposition": "^0.5.3",
"dayjs": "^1.8.20",
"dotenv": "^8.2.0",
"encodeurl": "^1.0.1",
"filesize": "^3.3.0",
"fs-extra": "^5.0.0",
"got": "^11.8.6",
"highlight.js": "^10.4.1",
"http-proxy-agent": "^2.1.0",
"https-proxy-agent": "^2.2.3",
"httpsnippet": "^1.22.0",
"iconv-lite": "^0.4.15",
"jsonc-parser": "^2.0.2",
"jsonpath-plus": "^0.20.1",
"mime-types": "^2.1.14",
"node-fetch": "^2.6.7",
"node-jws": "^0.1.4",
"open": "^10.1.0",
"pretty-data": "^0.40.0",
"sanitize-html": "^2.13.0",
"tough-cookie": "^4.1.3",
"tough-cookie-file-store": "^2.0.3",
"uuid": "^3.3.2",
"xmldom": "^0.5.0",
"xpath": "^0.0.27",
"yargs-parser": "^21.1.1"
}
}