forked from otris/vscode-janus-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
697 lines (697 loc) · 23.6 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
{
"name": "vscode-janus-debug",
"displayName": "JavaScript Remote Debugger for JANUS Apps",
"description": "Debug your JANUS-based applications in Visual Studio Code",
"version": "1.0.34",
"publisher": "otris-software",
"author": {
"name": "otris software",
"email": "[email protected]"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/otris/vscode-janus-debug"
},
"bugs": {
"url": "https://github.com/otris/vscode-janus-debug/issues"
},
"engines": {
"vscode": "^1.17.0"
},
"categories": [
"Debuggers",
"Snippets",
"Other"
],
"icon": "img/extension-icon.png",
"galleryBanner": {
"color": "#009bd5",
"theme": "light"
},
"activationEvents": [
"workspaceContains:.vscode-janus-debug",
"workspaceContains:documents-scripting-settings.json",
"onCommand:extension.vscode-janus.debug.connectServerConsole",
"onCommand:extension.vscode-janus-debug.provideInitialConfigurations",
"onCommand:extension.vscode-janus-debug.askForPassword",
"onCommand:extension.vscode-janus-debug.uploadScript",
"onCommand:extension.vscode-janus-debug.downloadScript",
"onCommand:extension.vscode-janus-debug.runScript",
"onCommand:extension.vscode-janus-debug.debugScript",
"onCommand:extension.vscode-janus-debug.compareScript",
"onCommand:extension.vscode-janus-debug.uploadScriptsFromFolder",
"onCommand:extension.vscode-janus-debug.downloadAllScripts",
"onCommand:extension.vscode-janus-debug.reloadScripts",
"onCommand:extension.vscode-janus-debug.getScriptNames",
"onCommand:extension.vscode-janus-debug.getPortalScriptingTSD",
"onCommand:extension.vscode-janus-debug.getAllTSD",
"onCommand:extension.vscode-janus-debug.showDocumentsVersion",
"onCommand:extension.vscode-janus-debug.wizardDownloadProject",
"onDebug"
],
"main": "./out/src/extension",
"contributes": {
"breakpoints": [
{
"language": "javascript"
}
],
"debuggers": [
{
"type": "janus",
"label": "JANUS Debugger",
"program": "./out/src/debugSession.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"script",
"host",
"applicationPort",
"debuggerPort",
"username",
"currentConfiguration"
],
"properties": {
"script": {
"type": "string",
"description": "The script you want to debug."
},
"username": {
"type": "string",
"description": "A username (admin or username.principal). The script is executed in the context of this user."
},
"password": {
"type": "string",
"description": "The user's password."
},
"principal": {
"type": "string",
"description": "Your user's client affiliation. Leave empty if there is none."
},
"host": {
"type": "string",
"description": "IP address or name of the host where you want to run the script.",
"default": "localhost"
},
"applicationPort": {
"type": "number",
"description": "The port on which the target server listens.",
"default": 10000
},
"debuggerPort": {
"type": "number",
"description": "The debug port to attach to.",
"default": 8089
},
"currentConfiguration": {
"type": "boolean",
"description": "Set to true, if you are currently working with this configuration.",
"default": true
},
"timeout": {
"type": "number",
"description": "Time in ms until we give up trying to connect or waiting for an answer.",
"default": 6000
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically pause script after launch.",
"default": true
},
"log": {
"type": "object",
"description": "Lets you configure diagnostic logging of the debug adapter.",
"properties": {
"fileName": {
"type": "string",
"description": "The name of the logfile.",
"default": "${workspaceRoot}/vscode-janus-debug.log"
},
"logLevel": {
"type": "object",
"description": "The minimum loglevel(s) for messages written to the logfile.",
"properties": {
"default": {
"type": "string",
"enum": [
"Debug",
"Info",
"Warn",
"Error",
"None"
],
"description": "The default loglevel."
}
},
"additionalProperties": {
"type": "string",
"enum": [
"Debug",
"Info",
"Warn",
"Error"
]
},
"default": {
"default": "Debug"
}
}
}
}
}
},
"attach": {
"required": [
"host",
"debuggerPort"
],
"properties": {
"host": {
"type": "string",
"description": "IP address or name of the host where the application runs on.",
"default": "localhost"
},
"debuggerPort": {
"type": "number",
"description": "The debug port to attach to.",
"default": 8089
},
"timeout": {
"type": "number",
"description": "Time in ms until we give up trying to connect or waiting for an answer.",
"default": 6000
},
"terminateOnDisconnect": {
"type": "boolean",
"description": "When the script is paused on disconnect, it will be terminated.",
"default": false
},
"breakOnAttach": {
"type": "boolean",
"description": "When debugger attaches to a script, the script is paused immediately. (Pause button doesn't work after attach due to a VS Code problem.)",
"default": false
},
"log": {
"type": "object",
"description": "Lets you configure diagnostic logging of the debug adapter.",
"properties": {
"fileName": {
"type": "string",
"description": "The name of the logfile.",
"default": "${workspaceRoot}/vscode-janus-debug.log"
},
"logLevel": {
"type": "object",
"description": "The minimum loglevel(s) for messages written to the logfile.",
"properties": {
"default": {
"type": "string",
"enum": [
"Debug",
"Info",
"Warn",
"Error"
],
"description": "The default loglevel."
}
},
"additionalProperties": {
"type": "string",
"enum": [
"Debug",
"Info",
"Warn",
"Error"
]
},
"default": {
"default": "Debug"
}
}
}
}
}
}
},
"configurationSnippets": [
{
"label": "JANUS Debugger: Launch",
"description": "Default configuration to connect with a JANUS server",
"body": {
"name": "Launch Script on Server",
"request": "launch",
"type": "janus",
"script": "",
"username": "",
"password": "${command:extension.vscode-janus-debug.askForPassword}",
"principal": "",
"host": "localhost",
"applicationPort": 11000,
"debuggerPort": 8089,
"currentConfiguration": true,
"stopOnEntry": true,
"log": {
"fileName": "${workspaceRoot}/vscode-janus-debug-launch.log",
"logLevel": {
"default": "Debug"
}
},
"timeout": 6000
}
},
{
"label": "JANUS Debugger: Attach",
"description": "Default configuration to attach to a JANUS server",
"body": {
"name": "Attach to Server",
"request": "attach",
"type": "janus",
"host": "localhost",
"debuggerPort": 8089,
"log": {
"fileName": "${workspaceRoot}/vscode-janus-debug-attach.log",
"logLevel": {
"default": "Debug"
}
}
}
}
]
}
],
"configuration": {
"properties": {
"vscode-janus-debug.uploadOnSave": {
"type": "array",
"default": [],
"description": "Always upload scripts in this list after save automatically."
},
"vscode-janus-debug.uploadManually": {
"type": "array",
"default": [],
"description": "Never automatically upload scripts in this list and never ask to."
},
"vscode-janus-debug.forceUpload": {
"type": "boolean",
"default": false,
"description": "Set to true, if the extension should upload scripts without checking the script on server."
},
"vscode-janus-debug.serverConsole": {
"description": "Settings that adjust the behavior of the Server Console window.",
"type": "object",
"title": "Server Console",
"properties": {
"autoConnect": {
"type": "boolean",
"default": false,
"description": "Try to auto connect Server Console every time the launch.json is changed"
}
}
},
"vscode-janus-debug.log": {
"type": "object",
"title": "Extension log-file",
"description": "Location of the extension's log file",
"required": [
"logLevel",
"fileName"
],
"properties": {
"logLevel": {
"type": "string",
"default": "Debug",
"description": "Specifies the severity of messages that get logged to the file",
"enum": [
"Debug",
"Info",
"Warn",
"Error"
]
},
"fileName": {
"type": "string",
"description": "Path to the log file",
"default": "${workspaceRoot}/vscode-janus-debug-extension.log"
}
}
},
"vscode-janus-debug.uploadOnSaveGlobal": {
"type": "boolean",
"title": "Upload Scripts On Save",
"default": true,
"description": "Upload JavaScript files automatically every time the files are saved"
},
"vscode-janus-debug.encryptOnUpload": {
"deprecationMessage": "Deprecated: use vscode-janus-debug.encryptionOnUpload instead"
},
"vscode-janus-debug.encryptionOnUpload": {
"type": "string",
"enum": [
"default",
"always",
"never"
],
"title": "Set Encryption On Upload",
"default": "default",
"description": "Default: script will be encrypted, if it's encrypted on server or if it contains the crypt keyword"
},
"vscode-janus-debug.scriptParameters": {
"type": "boolean",
"title": "Up- and Download Parameters On Up- and Download Script",
"default": false,
"description": "If set to true, script parameters will be up- and downloaded together with the script"
},
"vscode-janus-debug.categories": {
"type": "boolean",
"title": "Associate categories with folders with postfix '.cat'",
"default": false,
"description": "Project folders with postfix '.cat' will be created and deleted on up- or download!"
},
"vscode-janus-debug.scriptLog": {
"type": "object",
"title": "Write Script Output To Log File",
"description": "For now, only the return value is written to the log file",
"required": [
"fileName",
"returnValue"
],
"properties": {
"fileName": {
"type": "string",
"description": "Path to the script log file",
"default": "${workspaceRoot}/script.log"
},
"returnValue": {
"type": "boolean",
"default": true,
"description": "Set to true, if return value should be written to script log"
},
"append": {
"type": "boolean",
"default": false,
"description": "Set to true, if log should be appended to file"
}
}
},
"vscode-janus-debug.openScriptConsoleOnRunScript": {
"type": "boolean",
"default": true,
"deprecationMessage": "Deprecated, use scriptConsole.open"
},
"vscode-janus-debug.scriptConsole": {
"type": "object",
"properties": {
"open": {
"type": "boolean",
"title": "Automatically open the Script Console when running a script.",
"default": true,
"description": "When set to 'true' the Script Console will be opened when the user runs a script from this extension."
},
"clear": {
"type": "boolean",
"title": "Automatically clears the Script Console before running a script.",
"default": true,
"description": "When set to 'true' the Script Console will be cleared before the output of the started script is shown."
}
}
},
"vscode-janus-debug.browser": {
"type": "string",
"description": "Specifies the browser for 'View Documentation In Browser'. (Based on https://github.com/pwnall/node-open)",
"enum": [
"iexplore",
"mozilla",
"chrome",
"safari",
"firefox"
]
},
"vscode-janus-debug.typingsRepository": {
"type": "object",
"description": "A repository which will be cloned to the projects typings-folder. Note: Requires git to be installed locally",
"properties": {
"url": {
"type": "string",
"description": "The URL to the repository"
},
"installPortalScripting": {
"type": "boolean",
"description": "If set to false, the default portal scripting type definitions will not be installed",
"default": true
}
}
}
}
},
"commands": [
{
"command": "extension.vscode-janus-debug.uploadScript",
"title": "Upload Script",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.downloadScript",
"title": "Download Script",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.runScript",
"title": "Run Script",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.debugScript",
"title": "Upload and Debug Script",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.uploadRunScript",
"title": "Upload and Run Script",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.compareScript",
"title": "Compare Script",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.uploadScriptsFromFolder",
"title": "Upload Scripts from Folder",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.downloadAllScripts",
"title": "Download All Scripts",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.reloadScripts",
"title": "Reload Scripts",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.getScriptNames",
"title": "Get Script Names"
},
{
"command": "extension.vscode-janus-debug.viewDocumentation",
"title": "View Documentation in Browser",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus.debug.connectServerConsole",
"title": "Connect ServerConsole",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus.debug.disconnectServerConsole",
"title": "Disconnect ServerConsole",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.getPortalScriptingTSD",
"title": "Install IntelliSense: PortalScripting Version",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.getAllTSD",
"title": "Install IntelliSense",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.showDocumentsVersion",
"title": "Show DOCUMENTS Version",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.showImports",
"title": "Show Server File",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.exportXML",
"title": "Export XML ...",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.uploadExportXML",
"title": "Upload Script and Export XML",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.wizardDownloadProject",
"title": "Wizard: Download / Create Project",
"category": "DOCUMENTS"
},
{
"command": "extension.vscode-janus-debug.maintenanceOperation",
"title": "Perform Maintenance Operation ...",
"category": "DOCUMENTS"
}
],
"keybindings": [
{
"key": "ctrl+alt+u",
"command": "extension.vscode-janus-debug.uploadScript"
},
{
"key": "ctrl+alt+r",
"command": "extension.vscode-janus-debug.runScript"
},
{
"key": "ctrl+alt+d",
"command": "extension.vscode-janus-debug.debugScript"
},
{
"key": "ctrl+alt+x",
"command": "extension.vscode-janus-debug.uploadRunScript"
}
],
"menus": {
"explorer/context": [
{
"command": "extension.vscode-janus-debug.uploadRunScript",
"when": "resourceLangId == javascript",
"group": "DOCUMENTS@1"
},
{
"command": "extension.vscode-janus-debug.downloadScript",
"when": "resourceLangId == javascript",
"group": "DOCUMENTS@2"
},
{
"command": "extension.vscode-janus-debug.downloadScript",
"when": "explorerResourceIsFolder",
"group": "DOCUMENTS@2"
},
{
"command": "extension.vscode-janus-debug.compareScript",
"when": "resourceLangId == javascript",
"group": "DOCUMENTS@3"
},
{
"command": "extension.vscode-janus-debug.uploadScriptsFromFolder",
"when": "explorerResourceIsFolder",
"group": "DOCUMENTS@4"
},
{
"command": "extension.vscode-janus-debug.downloadAllScripts",
"when": "explorerResourceIsFolder",
"group": "DOCUMENTS@5"
},
{
"command": "extension.vscode-janus-debug.getAllTSD",
"when": "explorerResourceIsFolder",
"group": "DOCUMENTS@6"
},
{
"command": "extension.vscode-janus-debug.wizardDownloadProject",
"when": "explorerResourceIsFolder",
"group": "DOCUMENTS@7"
}
],
"editor/context": [
{
"command": "extension.vscode-janus-debug.uploadScript",
"when": "resourceLangId == javascript",
"group": "DOCUMENTS@1"
},
{
"command": "extension.vscode-janus-debug.uploadRunScript",
"when": "resourceLangId == javascript",
"group": "DOCUMENTS@3"
},
{
"command": "extension.vscode-janus-debug.debugScript",
"when": "resourceLangId == javascript",
"group": "DOCUMENTS@4"
},
{
"command": "extension.vscode-janus-debug.viewDocumentation",
"when": "resourceLangId == javascript",
"group": "DOCUMENTS@5"
},
{
"command": "extension.vscode-janus-debug.viewDocumentation",
"when": "resourceLangId == typescript",
"group": "DOCUMENTS@5"
}
]
},
"snippets": [
{
"language": "javascript",
"path": "./snippets/javascript.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./ && node ./scripts/createVersionNumber.js",
"watch": "tsc -watch -p ./",
"test": "npm run compile && mocha",
"lint": "tslint src/*.ts test/*.ts",
"coverage": "nyc mocha",
"report": "nyc report",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"dependencies": {
"@otris/jsdoc-tsd": "^0.9.1",
"@types/glob": "^5.0.35",
"@types/uuid": "^2.0.29",
"fs": "0.0.1-security",
"fs-extra": "^4.0.0",
"glob": "^7.1.2",
"jsdoc": "^3.5.5",
"net": "^1.0.2",
"node-documents-scripting": "git+https://github.com/otris/node-documents-scripting.git#6.17.2",
"node-file-log": "git+https://[email protected]/otris/node-file-log#1.3.0",
"node-ipc": "^9.0.1",
"node-sds": "git+https://[email protected]/otris/node-sds.git#1.3.1",
"opn": "^5.4.0",
"reduce-for-promises": "^1.2.1",
"simple-git": "^1.95.1",
"strip-json-comments": "^2.0.1",
"typescript": "2.7.1",
"url-exists": "^1.0.3",
"utf8": "^3.0.0",
"uuid": "^3.0.1",
"vsce": "^1.41.0",
"vscode-debugadapter": "^1.19.0",
"vscode-debugprotocol": "^1.19.0",
"winattr": "^2.0.0"
},
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^7.0.22",
"@types/node-ipc": "^9.0.0",
"@types/strip-json-comments": "0.0.28",
"mocha": "^5.2.0",
"nyc": "^11.0.3",
"tslint": "5.3.2",
"vscode": "^1.1.21",
"vscode-debugadapter-testsupport": "^1.19.0"
}
}