-
Notifications
You must be signed in to change notification settings - Fork 102
/
package.json
650 lines (650 loc) · 24.7 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
{
"name": "perforce",
"displayName": "Perforce for VS Code",
"description": "Perforce integration with VS Code's SCM features",
"version": "3.2.0",
"publisher": "slevesque",
"license": "LICENSE.md",
"categories": [
"SCM Providers"
],
"icon": "icon.png",
"bugs": {
"url": "https://github.com/stef-levesque/vscode-perforce/issues"
},
"homepage": "https://github.com/stef-levesque/vscode-perforce/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/stef-levesque/vscode-perforce.git"
},
"galleryBanner": {
"color": "#5c2d91",
"theme": "dark"
},
"engines": {
"vscode": "^1.19.0"
},
"enableProposedApi": false,
"keywords": [
"vscode",
"scm",
"perforce",
"sourcedepot",
"multi-root ready"
],
"main": "./out/src/extension",
"activationEvents": [
"*"
],
"contributes": {
"configuration": {
"type": "object",
"title": "VS Code Perforce Configuration",
"properties": {
"perforce.bottleneck.maxConcurrent": {
"scope": "application",
"type": "number",
"description": "How many jobs can be executing at the same time",
"minimum": 0,
"default": null
},
"perforce.bottleneck.minTime": {
"scope": "application",
"type": "number",
"description": "How long to wait after launching a job before launching another one",
"minimum": 0
},
"perforce.bottleneck.highWater": {
"scope": "application",
"type": "number",
"description": "How long can the queue be? When the queue length exceeds that value, the selected strategy is executed to shed the load",
"minimum": 0,
"default": 50
},
"perforce.bottleneck.strategy": {
"scope": "application",
"type": "string",
"description": "Which strategy to use when the queue gets longer than the high water mark",
"enum": [
"LEAK",
"OVERFLOW_PRIORITY",
"OVERFLOW",
"BLOCK"
]
},
"perforce.bottleneck.penalty": {
"scope": "application",
"type": "number",
"description": "The penalty value used by the BLOCK strategy",
"minimum": 0,
"default": null
},
"perforce.debugModeActive": {
"type": "boolean",
"default": false,
"description": "Whether debug mode is active or not."
},
"perforce.activationMode": {
"type": "string",
"description": "Controls when to activate the extension",
"enum": [
"always",
"autodetect",
"off"
],
"enumDescription": [
"Always try to activate the extension (old behavior)",
"Only activate when detecting a valid depot (default)",
"Don't try to activate"
],
"default": "autodetect"
},
"perforce.editOnFileSave": {
"type": "boolean",
"default": false,
"description": "Automatically open a file for edit when saved"
},
"perforce.editOnFileModified": {
"type": "boolean",
"default": false,
"description": "Automatically open a file for edit when Modified"
},
"perforce.addOnFileCreate": {
"type": "boolean",
"default": false,
"description": "Automatically Add a file to depot when Created"
},
"perforce.deleteOnFileDelete": {
"type": "boolean",
"default": false,
"description": "Automatically delete a file from depot when deleted"
},
"perforce.annotate.changelist": {
"type": "boolean",
"default": false,
"description": "Output changelist numbers rather than revision numbers for each line"
},
"perforce.annotate.user": {
"type": "boolean",
"default": false,
"description": "Output the user who modified the line in the file and the date it was modified"
},
"perforce.annotate.enable": {
"type": "boolean",
"default": false,
"description": "Show annotation for every file"
},
"perforce.client": {
"type": "string",
"default": "none",
"description": "Overrides any P4CLIENT setting with the specified client name",
"scope": "resource"
},
"perforce.user": {
"type": "string",
"default": "none",
"description": "Overrides any P4USER, USER, or USERNAME setting with the specified user name",
"scope": "resource"
},
"perforce.port": {
"type": "string",
"default": "none",
"description": "Overrides any P4PORT setting with the specified protocol:host:port",
"scope": "resource"
},
"perforce.password": {
"type": "string",
"default": "none",
"description": "Overrides any P4PASSWD setting with the specified password",
"scope": "resource"
},
"perforce.dir": {
"type": "string",
"default": "none",
"description": "Overrides any PWD setting (current working directory) and replaces it with the specified directory",
"scope": "resource"
},
"perforce.command": {
"type": "string",
"default": "none",
"description": "Configure a path to p4 or an alternate command if needed"
},
"perforce.compatibilityMode": {
"type": "string",
"default": "perforce",
"enum": [
"perforce",
"sourcedepot"
],
"description": "Specify if we should run in compatibility mode, currently support 'perforce' and 'sourcedepot'"
},
"perforce.countBadge": {
"type": "string",
"description": "Controls the badge counter for Perforce",
"enum": [
"all-but-shelved",
"all",
"off"
],
"enumDescription": [
"Include all files in count (default)",
"No badge counter"
],
"default": "all-but-shelved"
},
"perforce.changelistOrder": {
"type": "string",
"default": "descending",
"enum": [
"descending",
"ascending"
],
"description": "Specifies the direction of the chnagelist sorting"
},
"perforce.scmFileChanges": {
"type": "boolean",
"default": true,
"description": "Open file changes when selected in SCM Explorer"
},
"perforce.maxFilePerCommand": {
"type": "number",
"minimum": 1,
"default": 32,
"description": "Specify the maximum number of file should be processed in a single command line (doesn't include changelist operations). Default is 32"
},
"perforce.maxBuffer": {
"type": "number",
"minimum": 1024,
"default": 1048576,
"description": "Specify the largest amount of data allowed for commands, including file comparison. Default is 204800 (200KB)"
},
"perforce.realpath": {
"type": "boolean",
"default": false,
"description": "Try to resolve real file path before executing command."
},
"perforce.ignoredChangelistPrefix": {
"type": "string",
"description": "Specifies the prefix of the changelists to be ignored."
},
"perforce.hideNonWorkspaceFiles": {
"type": "boolean",
"default": false,
"description": "Don't show files that are not in the current opened workspace. Default changelist only submits files that are opened in current workspace. Warning: If you submit other changelists than the default it will submit files that are not visible."
},
"perforce.hideShelvedFiles": {
"type": "boolean",
"default": false,
"description": "Don't show the shelved files in the Source Control section."
},
"perforce.hideEmptyChangelists": {
"type": "boolean",
"default": false,
"description": "Don't show changelists without any file in the Source Control section."
},
"perforce.swarmHost": {
"type": "string",
"description": "Specifies the host of the Swarm server for annotation links"
}
}
},
"commands": [
{
"command": "perforce.menuFunctions",
"title": "Show Perforce functions",
"category": "Perforce"
},
{
"command": "perforce.showOutput",
"title": "Show Output",
"category": "Perforce"
},
{
"command": "perforce.login",
"title": "Log in to Perforce",
"category": "Perforce"
},
{
"command": "perforce.logout",
"title": "Log out from Perforce",
"category": "Perforce"
},
{
"command": "perforce.add",
"title": "add - Open a new file to add it to the depot",
"category": "Perforce"
},
{
"command": "perforce.edit",
"title": "edit - Open an existing file for edit",
"category": "Perforce"
},
{
"command": "perforce.delete",
"title": "delete - Delete an existing file",
"category": "Perforce"
},
{
"command": "perforce.revert",
"title": "revert - Discard changes from an opened file",
"category": "Perforce"
},
{
"command": "perforce.diff",
"title": "diff - Display diff of client file with depot file",
"category": "Perforce"
},
{
"command": "perforce.diffRevision",
"title": "diff revision - Display diff of client file with depot file at a specific revision",
"category": "Perforce"
},
{
"command": "perforce.annotate",
"title": "annotate - Print file lines and their revisions in the gutter",
"category": "Perforce"
},
{
"command": "perforce.info",
"title": "Display client/server information",
"category": "Perforce",
"icon": {
"light": "resources/icons/light/p4.svg",
"dark": "resources/icons/dark/p4.svg"
}
},
{
"command": "perforce.Sync",
"title": "Sync",
"category": "Perforce",
"icon": {
"light": "resources/icons/light/sync.svg",
"dark": "resources/icons/dark/sync.svg"
}
},
{
"command": "perforce.Refresh",
"title": "Refresh",
"category": "Perforce",
"icon": {
"light": "resources/icons/light/refresh.svg",
"dark": "resources/icons/dark/refresh.svg"
}
},
{
"command": "perforce.submitDefault",
"title": "Submit Default Changelist",
"category": "Perforce",
"icon": {
"light": "resources/icons/light/submit.svg",
"dark": "resources/icons/dark/submit.svg"
}
},
{
"command": "perforce.submitChangelist",
"title": "Submit changelist",
"category": "Perforce",
"icon": {
"light": "resources/icons/light/submit.svg",
"dark": "resources/icons/dark/submit.svg"
}
},
{
"command": "perforce.openResource",
"title": "Open changes",
"category": "Perforce"
},
{
"command": "perforce.openFile",
"title": "Open file",
"category": "Perforce"
},
{
"command": "perforce.revertFile",
"title": "Revert file",
"category": "Perforce",
"icon": {
"light": "resources/icons/light/revert.svg",
"dark": "resources/icons/dark/revert.svg"
}
},
{
"command": "perforce.revertUnchangedFile",
"title": "Revert file if unchanged",
"category": "Perforce",
"icon": {
"light": "resources/icons/light/revert.svg",
"dark": "resources/icons/dark/revert.svg"
}
},
{
"command": "perforce.revertChangelist",
"title": "Revert files in changelist",
"category": "Perforce",
"icon": {
"light": "resources/icons/light/revert.svg",
"dark": "resources/icons/dark/revert.svg"
}
},
{
"command": "perforce.revertUnchangedChangelist",
"title": "Revert unchanged files in changelist",
"category": "Perforce",
"icon": {
"light": "resources/icons/light/revert.svg",
"dark": "resources/icons/dark/revert.svg"
}
},
{
"command": "perforce.shelveunshelve",
"title": "Shelve/Unshelve file",
"category": "Perforce",
"icon": {
"light": "resources/icons/light/shelveunshelve.svg",
"dark": "resources/icons/dark/shelveunshelve.svg"
}
},
{
"command": "perforce.describe",
"title": "Describe changelist",
"category": "Perforce"
},
{
"command": "perforce.editChangelist",
"title": "Edit changelist description",
"category": "Perforce",
"icon": {
"light": "resources/icons/light/edit.svg",
"dark": "resources/icons/dark/edit.svg"
}
},
{
"command": "perforce.reopenFile",
"title": "Move to changelist",
"category": "Perforce",
"icon": {
"light": "resources/icons/light/reopen.svg",
"dark": "resources/icons/dark/reopen.svg"
}
},
{
"command": "perforce.opened",
"title": "opened - Display 'open' files and open one in the editor",
"category": "Perforce"
}
],
"menus": {
"scm/title": [
{
"command": "perforce.Sync",
"group": "navigation@1",
"when": "scmProvider == perforce"
},
{
"command": "perforce.Refresh",
"group": "navigation@2",
"when": "scmProvider == perforce"
},
{
"command": "perforce.Sync",
"group": "1_sync",
"when": "scmProvider == perforce"
},
{
"command": "perforce.Refresh",
"group": "1_sync",
"when": "scmProvider == perforce"
},
{
"command": "perforce.login",
"group": "2_login",
"when": "scmProvider == perforce && perforce.compatibilityMode != sourcedepot"
},
{
"command": "perforce.logout",
"group": "2_login",
"when": "scmProvider == perforce && perforce.compatibilityMode != sourcedepot"
},
{
"command": "perforce.info",
"group": "3_info",
"when": "scmProvider == perforce"
},
{
"command": "perforce.showOutput",
"group": "3_info",
"when": "scmProvider == perforce"
}
],
"scm/resourceGroup/context": [
{
"command": "perforce.submitDefault",
"when": "scmProvider == perforce && scmResourceGroup == default",
"group": "inline@1"
},
{
"command": "perforce.submitChangelist",
"when": "scmProvider == perforce && scmResourceGroup != default",
"group": "inline@1"
},
{
"command": "perforce.revertChangelist",
"when": "scmProvider == perforce",
"group": "inline@2"
},
{
"command": "perforce.editChangelist",
"when": "scmProvider == perforce",
"group": "inline@3"
},
{
"command": "perforce.submitDefault",
"when": "scmProvider == perforce && scmResourceGroup == default",
"group": "1_modification@1"
},
{
"command": "perforce.submitChangelist",
"when": "scmProvider == perforce && scmResourceGroup != default",
"group": "1_modification@1"
},
{
"command": "perforce.editChangelist",
"when": "scmProvider == perforce && scmResourceGroup != default",
"group": "1_modification@2"
},
{
"command": "perforce.revertChangelist",
"when": "scmProvider == perforce",
"group": "1_modification@3"
},
{
"command": "perforce.revertUnchangedChangelist",
"when": "scmProvider == perforce",
"group": "1_modification@4"
},
{
"command": "perforce.describe",
"when": "scmProvider == perforce",
"group": "2_info"
}
],
"scm/resourceState/context": [
{
"command": "perforce.revertFile",
"when": "scmProvider == perforce",
"group": "inline"
},
{
"command": "perforce.reopenFile",
"when": "scmProvider == perforce",
"group": "inline"
},
{
"command": "perforce.shelveunshelve",
"when": "scmProvider == perforce && scmResourceGroup != default",
"group": "inline"
},
{
"command": "perforce.openResource",
"when": "scmProvider == perforce",
"group": "navigation"
},
{
"command": "perforce.openFile",
"when": "scmProvider == perforce",
"group": "navigation"
},
{
"command": "perforce.revertFile",
"when": "scmProvider == perforce",
"group": "1_modification@1"
},
{
"command": "perforce.revertUnchangedFile",
"when": "scmProvider == perforce",
"group": "1_modification@2"
},
{
"command": "perforce.reopenFile",
"when": "scmProvider == perforce",
"group": "1_modification@3"
},
{
"command": "perforce.shelveunshelve",
"when": "scmProvider == perforce && scmResourceGroup != default",
"group": "1_modification@4"
}
]
},
"keybindings": [
{
"key": "alt+p space",
"command": "perforce.menuFunctions"
},
{
"key": "alt+p l",
"command": "perforce.showOutput"
},
{
"key": "alt+p enter",
"command": "perforce.login"
},
{
"key": "alt+p q",
"command": "perforce.logout"
},
{
"key": "alt+p a",
"command": "perforce.add",
"when": "editorTextFocus"
},
{
"key": "alt+p e",
"command": "perforce.edit",
"when": "editorTextFocus"
},
{
"key": "alt+p r",
"command": "perforce.revert",
"when": "editorTextFocus"
},
{
"key": "alt+p d",
"command": "perforce.diff",
"when": "editorTextFocus"
},
{
"key": "alt+p n",
"command": "perforce.annotate",
"when": "editorTextFocus"
},
{
"key": "alt+p o",
"command": "perforce.opened"
},
{
"key": "alt+p s",
"command": "perforce.submitDefault"
}
]
},
"dependencies": {
"bottleneck": "^2.13.0",
"ini": "^1.3.4",
"micromatch": "^3.0.3",
"parse-gitignore": "^0.4.0",
"tmp": "^0.0.33"
},
"devDependencies": {
"@types/node": "^8.0.8",
"@types/tmp": "^0.0.33",
"typescript": "^2.0.3",
"vscode": "^1.1.33"
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
}
}