@pstdio/workbench 0.11.4 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extensions.d.ts +1132 -3575
- package/dist/extensions.js +2049 -2397
- package/dist/extensions.js.map +1 -1
- package/dist/file-renderer-view-CZhPOpNc.js +628 -0
- package/dist/file-renderer-view-CZhPOpNc.js.map +1 -0
- package/dist/index-DDmpcM-n.d.ts +2336 -0
- package/dist/index.d.ts +3 -2621
- package/dist/index.js +5366 -6049
- package/dist/index.js.map +1 -1
- package/dist/kanban-presentation-CX6Smht6.d.ts +14 -0
- package/dist/react-C8jwnIWT.js +8356 -0
- package/dist/react-C8jwnIWT.js.map +1 -0
- package/dist/react.d.ts +398 -2846
- package/dist/react.js +2 -5269
- package/dist/storage.d.ts +48 -282
- package/dist/storage.js +218 -225
- package/dist/storage.js.map +1 -1
- package/dist/webview-runtime.d.ts +8 -7
- package/dist/webview-runtime.js +10 -11
- package/dist/webview-runtime.js.map +1 -1
- package/dist/workbench-renderers-BK6g8mG_.js +803 -0
- package/dist/workbench-renderers-BK6g8mG_.js.map +1 -0
- package/package.json +3 -3
- package/dist/file-renderer-view-Bfmw6RxV.js +0 -515
- package/dist/file-renderer-view-Bfmw6RxV.js.map +0 -1
- package/dist/react.js.map +0 -1
- package/dist/workbench-menu-paths-B_QJzcNU.js +0 -12
- package/dist/workbench-menu-paths-B_QJzcNU.js.map +0 -1
- package/dist/workbench-renderers-BhgHQ-Ne.js +0 -871
- package/dist/workbench-renderers-BhgHQ-Ne.js.map +0 -1
- package/dist/workspaces-B9HZHIbz.js +0 -1875
- package/dist/workspaces-B9HZHIbz.js.map +0 -1
package/dist/extensions.d.ts
CHANGED
|
@@ -1,3575 +1,1132 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
-
declare
|
|
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
|
-
declare
|
|
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
|
-
declare const
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
}, z.core.$strip>]
|
|
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
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
declare
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
declare
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
/** Workspace-relative path shown above the file preview. */
|
|
1134
|
-
filePath?: string;
|
|
1135
|
-
mimeType?: string;
|
|
1136
|
-
content?: string;
|
|
1137
|
-
dataUrl?: string;
|
|
1138
|
-
placeholder?: string;
|
|
1139
|
-
/** Override contribution-level save support for one loaded file. */
|
|
1140
|
-
editable?: boolean;
|
|
1141
|
-
/** Request Monaco for text that automatic dispatch would open as markdown. */
|
|
1142
|
-
textRenderer?: "automatic" | "monaco";
|
|
1143
|
-
/** Represent a deliberate no-file selection without an editable blank document. */
|
|
1144
|
-
emptyState?: {
|
|
1145
|
-
title: string;
|
|
1146
|
-
description?: string;
|
|
1147
|
-
};
|
|
1148
|
-
/** Ordered backing-store revision when one is available. */
|
|
1149
|
-
revision?: string;
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
declare interface FileRendererContribution {
|
|
1153
|
-
id: string;
|
|
1154
|
-
title: string;
|
|
1155
|
-
resourceKind?: string;
|
|
1156
|
-
/** Resolve the file's content (and identity) for the bound resource. */
|
|
1157
|
-
load(resource: ResourceRef | undefined): Promise<FileRendererContent> | FileRendererContent;
|
|
1158
|
-
/** Persist edited text. Absent ⇒ read-only. Never called for images. */
|
|
1159
|
-
save?(resource: ResourceRef | undefined, content: string, origin?: FileRendererRefreshOrigin): Promise<FileRendererSaveResult | undefined> | FileRendererSaveResult | void;
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
declare interface FileRendererRefreshEnvelope {
|
|
1163
|
-
resourceKey?: string;
|
|
1164
|
-
origin?: FileRendererRefreshOrigin;
|
|
1165
|
-
revision?: string;
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
export declare const fileRendererRefreshEnvelopeFromCommand: (body: CommandExecuteRequest, response: CommandExecuteResponse) => FileRendererRefreshEnvelope | undefined;
|
|
1169
|
-
|
|
1170
|
-
declare interface FileRendererRefreshOrigin {
|
|
1171
|
-
rendererId: string;
|
|
1172
|
-
instanceId: string;
|
|
1173
|
-
operationId: string;
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
declare interface FileRendererSaveResult {
|
|
1177
|
-
revision?: string;
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
export declare const getBridgeWebviewHostEventPublisher: (workbench: WorkbenchCore, instance: WorkbenchPanelInstance) => HostEventPublisher;
|
|
1181
|
-
|
|
1182
|
-
declare type HostCapability<TParams = unknown, TResult = unknown> = (params: TParams) => Promise<TResult> | TResult;
|
|
1183
|
-
|
|
1184
|
-
declare type HostCapabilityRegistry = Partial<Record<WebviewHostCapability, HostCapability>>;
|
|
1185
|
-
|
|
1186
|
-
declare type HostEventMessage = {
|
|
1187
|
-
scope: string;
|
|
1188
|
-
payload: unknown;
|
|
1189
|
-
};
|
|
1190
|
-
|
|
1191
|
-
/**
|
|
1192
|
-
* Host-side fan-in for events pushed into one guest webview. Capability
|
|
1193
|
-
* implementations `emit` while the frame owns the transport: events emitted
|
|
1194
|
-
* before the guest connection is up are buffered and flushed on `bind`.
|
|
1195
|
-
*/
|
|
1196
|
-
declare interface HostEventPublisher {
|
|
1197
|
-
emit(message: HostEventMessage): void;
|
|
1198
|
-
bind(sink: (message: HostEventMessage) => void): void;
|
|
1199
|
-
onDisconnect(listener: () => void): () => void;
|
|
1200
|
-
/** Drop the current sink and return to buffering until the next bind. */
|
|
1201
|
-
unbind(): void;
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
declare interface HostTreeDefaultNodesInput {
|
|
1205
|
-
ctx: TreeContext;
|
|
1206
|
-
record: ExtensionTreeRendererRecord;
|
|
1207
|
-
panel: ExtensionTreeViewRecord;
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
declare type HostTreeDefaultNodesResolver = (input: HostTreeDefaultNodesInput) => Promise<TreeNode[]> | TreeNode[];
|
|
1211
|
-
|
|
1212
|
-
declare interface InternalWorkbenchExtensionMetadata {
|
|
1213
|
-
extensions: WorkbenchExtensionMetadata["extensions"];
|
|
1214
|
-
commands: WorkbenchExtensionMetadata["commands"];
|
|
1215
|
-
menuContributions: ExtensionMenuContribution_2[];
|
|
1216
|
-
commandPaletteContributions: WorkbenchExtensionMetadata["commandPaletteContributions"];
|
|
1217
|
-
modes: Array<{
|
|
1218
|
-
id: string;
|
|
1219
|
-
extensionId: string;
|
|
1220
|
-
modeId: string;
|
|
1221
|
-
label: WorkbenchExtensionMetadata["modes"][number]["label"];
|
|
1222
|
-
icon?: string;
|
|
1223
|
-
defaultTheme?: string;
|
|
1224
|
-
chrome?: Partial<Record<"nav" | "sidenav" | "activity" | "status", string | false>>;
|
|
1225
|
-
panelRegions: WorkbenchExtensionMetadata["modes"][number]["regions"];
|
|
1226
|
-
regionSettings?: WorkbenchExtensionMetadata["modes"][number]["regionSettings"];
|
|
1227
|
-
floatingPanels?: WorkbenchExtensionMetadata["modes"][number]["floatingPanels"];
|
|
1228
|
-
}>;
|
|
1229
|
-
pages: WorkbenchPageContribution[];
|
|
1230
|
-
placements: Array<{
|
|
1231
|
-
id: string;
|
|
1232
|
-
ref: {
|
|
1233
|
-
extensionId: string;
|
|
1234
|
-
kind: "placement";
|
|
1235
|
-
id: string;
|
|
1236
|
-
};
|
|
1237
|
-
modeId: string;
|
|
1238
|
-
item: WorkbenchOwnedPlacementItem;
|
|
1239
|
-
region: "main" | "secondary" | "side";
|
|
1240
|
-
order?: number;
|
|
1241
|
-
movableTo?: readonly ("main" | "secondary" | "side")[];
|
|
1242
|
-
} & WorkbenchPlacementPresentation>;
|
|
1243
|
-
panels: InternalWorkbenchExtensionPanel[];
|
|
1244
|
-
resourceKinds: Array<{
|
|
1245
|
-
id: string;
|
|
1246
|
-
extensionId: string;
|
|
1247
|
-
label?: WorkbenchExtensionMetadata["resourceKinds"][number]["label"];
|
|
1248
|
-
icon?: string;
|
|
1249
|
-
menuSlots: Record<string, {
|
|
1250
|
-
placement: "header-primary" | "header-overflow" | "context-menu";
|
|
1251
|
-
external: boolean;
|
|
1252
|
-
order?: number;
|
|
1253
|
-
}>;
|
|
1254
|
-
}>;
|
|
1255
|
-
resourceHierarchyProviders: Array<{
|
|
1256
|
-
id: string;
|
|
1257
|
-
extensionId: string;
|
|
1258
|
-
resourceKind: string;
|
|
1259
|
-
}>;
|
|
1260
|
-
settingsSections: ExtensionSettingsSectionRecord[];
|
|
1261
|
-
settingsPanels: Array<{
|
|
1262
|
-
id: string;
|
|
1263
|
-
extensionId: string;
|
|
1264
|
-
viewId: string;
|
|
1265
|
-
slotId: string;
|
|
1266
|
-
scope: "global" | "project";
|
|
1267
|
-
title: MetadataView["title"];
|
|
1268
|
-
icon?: string;
|
|
1269
|
-
section?: string;
|
|
1270
|
-
}>;
|
|
1271
|
-
kanbanRenderers: WorkbenchExtensionKanbanRendererRecord[];
|
|
1272
|
-
dataTableRenderers: WorkbenchExtensionDataTableRendererRecord[];
|
|
1273
|
-
commandPaletteResources: WorkbenchExtensionCommandPaletteResourceRecord_2[];
|
|
1274
|
-
treeRenderers: WorkbenchExtensionTreeRendererRecord[];
|
|
1275
|
-
fileRenderers: WorkbenchExtensionFileRendererRecord[];
|
|
1276
|
-
controlsRenderers: WorkbenchExtensionControlsRendererRecord[];
|
|
1277
|
-
keybindings: ExtensionKeybindingRecord[];
|
|
1278
|
-
settingsDefinitions: ExtensionSettingDefinitionRecord[];
|
|
1279
|
-
statuses: WorkbenchExtensionMetadata["statuses"];
|
|
1280
|
-
statusBarItems: Array<{
|
|
1281
|
-
id: string;
|
|
1282
|
-
extensionId: string;
|
|
1283
|
-
viewId: string;
|
|
1284
|
-
slot: "leading" | "trailing";
|
|
1285
|
-
order?: number;
|
|
1286
|
-
when?: {
|
|
1287
|
-
mode?: string | string[];
|
|
1288
|
-
source?: string[];
|
|
1289
|
-
viewId?: string | string[];
|
|
1290
|
-
resourceType?: string[];
|
|
1291
|
-
metadata?: Record<string, unknown>;
|
|
1292
|
-
};
|
|
1293
|
-
}>;
|
|
1294
|
-
diagnostics: WorkbenchExtensionMetadata["diagnostics"];
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
declare interface InternalWorkbenchExtensionPanel {
|
|
1298
|
-
id: string;
|
|
1299
|
-
extensionId: string;
|
|
1300
|
-
title: MetadataView["title"];
|
|
1301
|
-
icon?: string;
|
|
1302
|
-
webview?: MetadataWebview;
|
|
1303
|
-
renderer?: {
|
|
1304
|
-
kind: MetadataRendererKind;
|
|
1305
|
-
id: string;
|
|
1306
|
-
};
|
|
1307
|
-
panelMenus?: InternalWorkbenchExtensionPanelMenu[];
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
declare interface InternalWorkbenchExtensionPanelMenu {
|
|
1311
|
-
id: string;
|
|
1312
|
-
extensionId: string;
|
|
1313
|
-
ownerPanelId: string;
|
|
1314
|
-
viewId: string;
|
|
1315
|
-
title: MetadataView["title"];
|
|
1316
|
-
side: "left" | "right";
|
|
1317
|
-
group?: string;
|
|
1318
|
-
placement?: "first" | "default" | "last";
|
|
1319
|
-
hostTreeHeader?: "default" | "none";
|
|
1320
|
-
hostTreeFooter?: "default" | "none";
|
|
1321
|
-
webview?: MetadataWebview;
|
|
1322
|
-
renderer?: {
|
|
1323
|
-
kind: MetadataRendererKind;
|
|
1324
|
-
id: string;
|
|
1325
|
-
};
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
export declare const isExtensionNavigationTarget: (value: unknown) => value is NavigationTarget_2;
|
|
1329
|
-
|
|
1330
|
-
declare type JsonObject = {
|
|
1331
|
-
[key: string]: JsonValue;
|
|
1332
|
-
};
|
|
1333
|
-
|
|
1334
|
-
declare type JsonPrimitive = string | number | boolean | null;
|
|
1335
|
-
|
|
1336
|
-
declare type JsonValue = JsonPrimitive | JsonValue[] | JsonObject;
|
|
1337
|
-
|
|
1338
|
-
declare interface KanbanRendererContribution<TRow extends KanbanRendererRow = KanbanRendererRow, TNode = unknown, TIcon = unknown> {
|
|
1339
|
-
id: string;
|
|
1340
|
-
title: string;
|
|
1341
|
-
resourceKind?: string;
|
|
1342
|
-
/** Host-owned scope for persisted display settings. */
|
|
1343
|
-
storageScope?: string;
|
|
1344
|
-
/**
|
|
1345
|
-
* Declarative attribute schema. The renderer dispatches filter / group /
|
|
1346
|
-
* sort / display / inline-edit behavior on each descriptor's `type.kind`.
|
|
1347
|
-
*
|
|
1348
|
-
* Pass an `AttributesSource` ({ subscribe, getSnapshot }) instead of a
|
|
1349
|
-
* static array to let the contribution mutate its schema at runtime —
|
|
1350
|
-
* `WorkbenchKanbanView` subscribes so additions / removals / kind changes
|
|
1351
|
-
* propagate live without re-registering the renderer.
|
|
1352
|
-
*/
|
|
1353
|
-
attributes: AttributeDescriptor<TNode>[] | AttributesSource<TNode>;
|
|
1354
|
-
/** Per-board-column overrides (color, drag/create rules, custom actions). */
|
|
1355
|
-
getBoardColumnConfig?: (groupKey: string) => BoardColumnConfig<TIcon>;
|
|
1356
|
-
hideToolbar?: boolean;
|
|
1357
|
-
emptyTitle?: string;
|
|
1358
|
-
emptyDescription?: string;
|
|
1359
|
-
/** Initial settings/filters applied when the kanban renderer mounts. */
|
|
1360
|
-
defaultSettings?: Partial<KanbanRendererSettings>;
|
|
1361
|
-
defaultFilters?: KanbanRendererFilterState;
|
|
1362
|
-
defaultViews?: KanbanRendererSavedView[];
|
|
1363
|
-
defaultActiveViewId?: string;
|
|
1364
|
-
/**
|
|
1365
|
-
* Data source. Receives the current display state so backends can paginate
|
|
1366
|
-
* / filter / sort. The renderer re-applies filter / sort / group locally,
|
|
1367
|
-
* so this can return unfiltered rows in simple cases.
|
|
1368
|
-
*/
|
|
1369
|
-
executeQuery(state: KanbanRendererQueryState): Promise<TRow[]> | TRow[];
|
|
1370
|
-
subscribe?: (listener: () => void) => Disposable_2 | (() => void);
|
|
1371
|
-
/** Row activation surfaced by the renderer (mirrored from <KanbanRenderer>). */
|
|
1372
|
-
onRowActivate?: (row: TRow) => Promise<void> | void;
|
|
1373
|
-
/** Per-row right-click context menu actions (mirrored from <KanbanRenderer>). */
|
|
1374
|
-
getRowContextMenuActions?: (row: TRow) => ResourceContextAction<TNode>[];
|
|
1375
|
-
/**
|
|
1376
|
-
* Fires for inline attribute edits AND for cross-column drag-to-reorder on
|
|
1377
|
-
* the board (the renderer passes the grouping attribute id + the target
|
|
1378
|
-
* column value).
|
|
1379
|
-
*/
|
|
1380
|
-
onAttributeChange?: (rowId: string, attributeId: string, value: unknown) => Promise<void> | void;
|
|
1381
|
-
/** Manual within-column reorder (only fires when ordering is manual). */
|
|
1382
|
-
onReorder?: (rowId: string, beforeRowId?: string) => Promise<void> | void;
|
|
1383
|
-
createRow?: KanbanRendererCreateRowConfig;
|
|
1384
|
-
onCreateRow?: (submission: KanbanRendererCreateSubmission) => Promise<void> | void;
|
|
1385
|
-
onColumnAction?: (columnId: string, actionId: string) => Promise<void> | void;
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
declare interface KanbanRendererCreateField {
|
|
1389
|
-
id: string;
|
|
1390
|
-
label: string;
|
|
1391
|
-
description?: string;
|
|
1392
|
-
placeholder?: string;
|
|
1393
|
-
type: KanbanRendererCreateFieldType;
|
|
1394
|
-
required?: boolean;
|
|
1395
|
-
defaultValue?: unknown;
|
|
1396
|
-
options?: EnumOption[];
|
|
1397
|
-
/** `files` fields only. */
|
|
1398
|
-
multiple?: boolean;
|
|
1399
|
-
accept?: string;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
declare type KanbanRendererCreateFieldType = "text" | "longtext" | "markdown" | "number" | "boolean" | "select" | "multi-select" | "files";
|
|
1403
|
-
|
|
1404
|
-
/** Chrome copy is supplied by the caller so the dialog ships no strings of its own. */
|
|
1405
|
-
declare interface KanbanRendererCreateLabels {
|
|
1406
|
-
cancel: string;
|
|
1407
|
-
properties: string;
|
|
1408
|
-
submitError: string;
|
|
1409
|
-
removeFile: string;
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
declare interface KanbanRendererCreateRowConfig {
|
|
1413
|
-
title: string;
|
|
1414
|
-
submitLabel: string;
|
|
1415
|
-
fields: KanbanRendererCreateField[];
|
|
1416
|
-
labels: KanbanRendererCreateLabels;
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
declare interface KanbanRendererCreateSubmission {
|
|
1420
|
-
columnId: string;
|
|
1421
|
-
columnAttributeId?: string;
|
|
1422
|
-
/** Declared field values, excluding `files` fields — those arrive as `files`. */
|
|
1423
|
-
values: Record<string, unknown>;
|
|
1424
|
-
/** Every editable attribute the user set, keyed by attribute id. */
|
|
1425
|
-
attributeValues: Record<string, unknown>;
|
|
1426
|
-
files: File[];
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
declare type KanbanRendererFilterState = Record<string, string[]>;
|
|
1430
|
-
|
|
1431
|
-
declare interface KanbanRendererOrdering {
|
|
1432
|
-
attributeId: string | typeof MANUAL_ORDERING;
|
|
1433
|
-
direction: SortDirection;
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
declare interface KanbanRendererQueryState {
|
|
1437
|
-
settings: KanbanRendererSettings;
|
|
1438
|
-
filters: KanbanRendererFilterState;
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
declare interface KanbanRendererRow {
|
|
1442
|
-
id: string;
|
|
1443
|
-
title: string;
|
|
1444
|
-
/**
|
|
1445
|
-
* Optional navigation handle. When set, the renderer's default click handler
|
|
1446
|
-
* routes through the contribution's onRowActivate (which typically opens the
|
|
1447
|
-
* resource via the workbench).
|
|
1448
|
-
*/
|
|
1449
|
-
resource?: unknown;
|
|
1450
|
-
attributes: Record<string, unknown>;
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
declare type KanbanRendererRow_2 = Awaited<ReturnType<ReactKanbanRendererContribution["executeQuery"]>>[number];
|
|
1454
|
-
|
|
1455
|
-
declare interface KanbanRendererSavedView {
|
|
1456
|
-
id: string;
|
|
1457
|
-
title: string;
|
|
1458
|
-
settings: KanbanRendererSettings;
|
|
1459
|
-
filters: KanbanRendererFilterState;
|
|
1460
|
-
isDefault?: boolean;
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
declare interface KanbanRendererSettings {
|
|
1464
|
-
viewMode: ViewMode;
|
|
1465
|
-
columnGrouping: string | typeof NO_GROUPING;
|
|
1466
|
-
rowGrouping: string | typeof NO_GROUPING;
|
|
1467
|
-
ordering: KanbanRendererOrdering;
|
|
1468
|
-
displayProperties: string[];
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
declare interface Keybinding {
|
|
1472
|
-
/** Action the chord executes through the shared navigation executor. */
|
|
1473
|
-
action: NavigationTarget;
|
|
1474
|
-
keybinding: KeybindingSequence;
|
|
1475
|
-
when?: string;
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
declare interface KeybindingRegistry {
|
|
1479
|
-
store: WorkbenchStore<KeybindingRegistryStoreState>;
|
|
1480
|
-
registerKeybinding(keybinding: Keybinding, metadata?: ContributionMetadata): Disposable_2;
|
|
1481
|
-
listKeybindings(): RegisteredKeybinding[];
|
|
1482
|
-
listActiveKeybindings(): RegisteredKeybinding[];
|
|
1483
|
-
/** Chords bound to plain command actions, for rendering shortcut hints beside commands. */
|
|
1484
|
-
listCommandKeybindings(): {
|
|
1485
|
-
commandId: string;
|
|
1486
|
-
keybinding: KeybindingSequence;
|
|
1487
|
-
}[];
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
declare interface KeybindingRegistryStoreState {
|
|
1491
|
-
keybindings: RegisteredKeybinding[];
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
declare type KeybindingSequence = string | string[];
|
|
1495
|
-
|
|
1496
|
-
declare interface LayoutModel {
|
|
1497
|
-
store: WorkbenchStore<WorkbenchLayoutStoreState>;
|
|
1498
|
-
registerPlaceholder(placeholder: PlaceholderContribution, metadata?: ContributionMetadata): {
|
|
1499
|
-
dispose(): void;
|
|
1500
|
-
};
|
|
1501
|
-
registerPanel(panel: WorkbenchPanelContribution, metadata?: ContributionMetadata): {
|
|
1502
|
-
dispose(): void;
|
|
1503
|
-
};
|
|
1504
|
-
registerWidget(widget: WidgetContribution, metadata?: ContributionMetadata): {
|
|
1505
|
-
dispose(): void;
|
|
1506
|
-
};
|
|
1507
|
-
registerPanelMenu(panelMenu: WorkbenchPanelMenuContribution, metadata?: ContributionMetadata): {
|
|
1508
|
-
dispose(): void;
|
|
1509
|
-
};
|
|
1510
|
-
unregisterWidget(id: string, options?: {
|
|
1511
|
-
removePlacements?: boolean;
|
|
1512
|
-
persist?: boolean;
|
|
1513
|
-
}): void;
|
|
1514
|
-
getPlaceholder(regionId: WorkbenchRegion): RegisteredPlaceholderContribution | undefined;
|
|
1515
|
-
getWidget(id: string): RegisteredWidgetContribution | undefined;
|
|
1516
|
-
getPanel(id: string): WorkbenchPanelContribution | undefined;
|
|
1517
|
-
getRegionSize(regionId: WorkbenchRegion): WorkbenchRegionSize | undefined;
|
|
1518
|
-
getRegionSettings(regionId: WorkbenchRegion): WorkbenchRegionSettings | undefined;
|
|
1519
|
-
getRegionCollapsible(regionId: WorkbenchRegion): boolean;
|
|
1520
|
-
getRegionHeaderBorderBottom(regionId: WorkbenchRegion): boolean;
|
|
1521
|
-
setRegionVisible(regionId: WorkbenchRegion, visible: boolean): void;
|
|
1522
|
-
setRegionSize(regionId: WorkbenchRegion, size: number): void;
|
|
1523
|
-
listPlaceholders(): RegisteredPlaceholderContribution[];
|
|
1524
|
-
listWidgets(): RegisteredWidgetContribution[];
|
|
1525
|
-
listPanels(): WorkbenchPanelContribution[];
|
|
1526
|
-
listPanelInstances(region?: WorkbenchRegion): WorkbenchPanelInstance[];
|
|
1527
|
-
getActivePanel(region?: WorkbenchRegion): WorkbenchPanelInstance | undefined;
|
|
1528
|
-
openWidget(id: string, input?: OpenWidgetInput): WorkbenchWidgetPlacement;
|
|
1529
|
-
openPanel(id: string, input?: OpenWorkbenchPanelInput): WorkbenchPanelInstance;
|
|
1530
|
-
updatePanel(instanceId: string, input: OpenWorkbenchPanelInput): WorkbenchPanelInstance;
|
|
1531
|
-
reorderPanel(instanceId: string, position: WorkbenchTabPosition): void;
|
|
1532
|
-
activatePanel(instanceId: string): WorkbenchPanelInstance;
|
|
1533
|
-
closePanel(instanceId: string): WorkbenchPanelInstance | undefined;
|
|
1534
|
-
updateWidgetPlacement(widgetId: string, input: OpenWidgetInput): WorkbenchWidgetPlacement;
|
|
1535
|
-
reorderWidget(widgetId: string, position: WorkbenchTabPosition): void;
|
|
1536
|
-
expirePreviewTabs(ownerResourceKey?: string): void;
|
|
1537
|
-
activateWidget(widgetId: string): WorkbenchWidgetPlacement;
|
|
1538
|
-
setRegionActiveWidget(regionId: WorkbenchRegion, widgetId: string | undefined): void;
|
|
1539
|
-
closeWidget(widgetId: string): WorkbenchWidgetPlacement | undefined;
|
|
1540
|
-
removeWidgetPlacement(widgetId: string): WorkbenchWidgetPlacement | undefined;
|
|
1541
|
-
clearRegion(regionId: WorkbenchRegion): void;
|
|
1542
|
-
resetRegions(): void;
|
|
1543
|
-
getLayout(): WorkbenchLayout;
|
|
1544
|
-
restoreLayout(layout: WorkbenchLayout): void;
|
|
1545
|
-
setPersistenceScope(scope: LayoutScope | undefined, input?: {
|
|
1546
|
-
carryRegionState?: readonly WorkbenchRegion[];
|
|
1547
|
-
}): void;
|
|
1548
|
-
getPersistenceScope(): LayoutScope | undefined;
|
|
1549
|
-
/** True when the current persistence scope already stores a layout. A new scope returns false. */
|
|
1550
|
-
/** Whether anything is stored for the active scope right now. */
|
|
1551
|
-
hasPersistedLayout(): boolean;
|
|
1552
|
-
/**
|
|
1553
|
-
* Whether the active scope was entered with a layout the user already had. Unlike
|
|
1554
|
-
* `hasPersistedLayout`, writes made while entering a mode do not change the answer.
|
|
1555
|
-
*/
|
|
1556
|
-
enteredWithPersistedLayout(): boolean;
|
|
1557
|
-
/** Moves owned panel menus beside their owner's current region and removes orphan menus. */
|
|
1558
|
-
reconcilePanelMenus(): void;
|
|
1559
|
-
onWillChangePersistenceScope(listener: (scope: LayoutScope | undefined) => void): {
|
|
1560
|
-
dispose(): void;
|
|
1561
|
-
};
|
|
1562
|
-
onDidChangePersistenceScope(listener: (scope: LayoutScope | undefined) => void): {
|
|
1563
|
-
dispose(): void;
|
|
1564
|
-
};
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
declare type LayoutScope = string;
|
|
1568
|
-
|
|
1569
|
-
declare type Localizer = (value: unknown, fallback?: string) => string;
|
|
1570
|
-
|
|
1571
|
-
declare const MANUAL_ORDERING = "manual";
|
|
1572
|
-
|
|
1573
|
-
declare interface MenuItem {
|
|
1574
|
-
commandId: string;
|
|
1575
|
-
sourceCommandId?: string;
|
|
1576
|
-
label?: string;
|
|
1577
|
-
description?: string;
|
|
1578
|
-
icon?: string;
|
|
1579
|
-
iconSrc?: string;
|
|
1580
|
-
overflowLabel?: string;
|
|
1581
|
-
when?: string;
|
|
1582
|
-
group?: string;
|
|
1583
|
-
order?: number;
|
|
1584
|
-
args?: unknown;
|
|
1585
|
-
readOnly?: boolean;
|
|
1586
|
-
/** Marks a menu action that navigates outside the app, rendered with a trailing external-link icon. */
|
|
1587
|
-
external?: boolean;
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
declare type MenuPath = readonly string[];
|
|
1591
|
-
|
|
1592
|
-
declare interface MenuRegistry {
|
|
1593
|
-
menuStore: WorkbenchStore<MenuRegistryStoreState>;
|
|
1594
|
-
registerMenuItem(path: MenuPath, item: MenuItem, metadata?: ContributionMetadata): Disposable_2;
|
|
1595
|
-
listMenuItems(path: MenuPath): RegisteredMenuItem[];
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
declare interface MenuRegistryStoreState {
|
|
1599
|
-
itemsByPath: Record<string, RegisteredMenuItem[]>;
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
declare interface MetadataPageTarget {
|
|
1603
|
-
kind: "page";
|
|
1604
|
-
page: z.infer<typeof pageRefSchema>;
|
|
1605
|
-
resource?: z.infer<typeof extensionResourceRefSchema>;
|
|
1606
|
-
open?: "preview" | "pin";
|
|
1607
|
-
section?: z.infer<typeof sectionSchema>;
|
|
1608
|
-
parent?: MetadataPageTarget;
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
declare type MetadataRendererKind = Exclude<MetadataView["body"]["kind"], "webview">;
|
|
1612
|
-
|
|
1613
|
-
declare type MetadataView = WorkbenchExtensionMetadata["views"][number];
|
|
1614
|
-
|
|
1615
|
-
declare type MetadataWebview = Extract<MetadataView["body"], {
|
|
1616
|
-
kind: "webview";
|
|
1617
|
-
}>["webview"];
|
|
1618
|
-
|
|
1619
|
-
declare type NativeViewBody<Kind extends string, Contribution> = {
|
|
1620
|
-
kind: Kind;
|
|
1621
|
-
} & Omit<Contribution, "id" | "title" | "icon">;
|
|
1622
|
-
|
|
1623
|
-
declare type NavigationOperation = Extract<NavigationTarget_2, {
|
|
1624
|
-
kind: "page" | "panel";
|
|
1625
|
-
}>;
|
|
1626
|
-
|
|
1627
|
-
declare interface NavigationParser {
|
|
1628
|
-
id: string;
|
|
1629
|
-
priority?: number;
|
|
1630
|
-
canParse(location: string): boolean;
|
|
1631
|
-
parse(location: string): NavigationTarget;
|
|
1632
|
-
}
|
|
1633
|
-
|
|
1634
|
-
declare interface NavigationRegistry {
|
|
1635
|
-
store: WorkbenchStore<NavigationRegistryStoreState>;
|
|
1636
|
-
registerParser(parser: NavigationParser, metadata?: ContributionMetadata): Disposable_2;
|
|
1637
|
-
listParsers(): RegisteredNavigationParser[];
|
|
1638
|
-
resolveLocation(location: string): NavigationTarget;
|
|
1639
|
-
openTarget(target: NavigationTarget): Promise<readonly unknown[]>;
|
|
1640
|
-
/** Opens a page location through the shared executor. */
|
|
1641
|
-
openPage(target: Omit<NavigationTargetPage, "kind">): Promise<readonly unknown[]>;
|
|
1642
|
-
/** Opens or activates an owned panel through the shared executor. */
|
|
1643
|
-
openPanel(target: DistributiveOmit<NavigationTargetPanel, "kind">): Promise<readonly unknown[]>;
|
|
1644
|
-
navigate(location: string): Promise<readonly unknown[]>;
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
declare interface NavigationRegistryStoreState {
|
|
1648
|
-
parsers: Record<string, RegisteredNavigationParser>;
|
|
1649
|
-
}
|
|
1650
|
-
|
|
1651
|
-
declare type NavigationTarget = NavigationTargetItem | NavigationTargetCompound;
|
|
1652
|
-
|
|
1653
|
-
declare interface NavigationTargetCommand {
|
|
1654
|
-
kind: "command";
|
|
1655
|
-
commandId: string;
|
|
1656
|
-
args?: unknown;
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
declare interface NavigationTargetCompound {
|
|
1660
|
-
kind: "compound";
|
|
1661
|
-
targets: readonly (NavigationTargetPage | NavigationTargetPanel)[];
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
declare interface NavigationTargetHref {
|
|
1665
|
-
kind: "href";
|
|
1666
|
-
href: string;
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
declare type NavigationTargetItem = NavigationTargetPage | NavigationTargetPanel | NavigationTargetCommand | NavigationTargetHref;
|
|
1670
|
-
|
|
1671
|
-
declare type NavigationTargetPage = NavigationTargetPage_2;
|
|
1672
|
-
|
|
1673
|
-
declare type NavigationTargetPanel = NavigationTargetPanel_2 | NavigationTargetShellPanel;
|
|
1674
|
-
|
|
1675
|
-
declare interface NavigationTargetShellPanel {
|
|
1676
|
-
kind: "panel";
|
|
1677
|
-
panel: ShellPlacementRef;
|
|
1678
|
-
resource?: NavigationTargetPanel_2["resource"];
|
|
1679
|
-
open?: NavigationTargetPanel_2["open"];
|
|
1680
|
-
title?: string;
|
|
1681
|
-
}
|
|
1682
|
-
|
|
1683
|
-
declare interface NavigationTreeContext {
|
|
1684
|
-
resource?: ResourceRef;
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
|
-
declare interface NavigationTreeContribution {
|
|
1688
|
-
id: string;
|
|
1689
|
-
/** Prefix projected section and node ids when they come from an independent tree renderer. */
|
|
1690
|
-
idScope?: string;
|
|
1691
|
-
owner: NavigationTreeOwner;
|
|
1692
|
-
sourceExtensionId: string;
|
|
1693
|
-
declarationIndex: number;
|
|
1694
|
-
slot?: NavigationTreeSlot;
|
|
1695
|
-
viewId?: string;
|
|
1696
|
-
defaultExpandedSectionIds?: string[];
|
|
1697
|
-
getSections?(context: NavigationTreeContext): Promise<TreeViewSection[]> | TreeViewSection[];
|
|
1698
|
-
getChildren?(node: TreeNode, context: NavigationTreeContext): Promise<TreeNode[]> | TreeNode[];
|
|
1699
|
-
}
|
|
1700
|
-
|
|
1701
|
-
declare interface NavigationTreeOwner {
|
|
1702
|
-
kind: "mode" | "page";
|
|
1703
|
-
id: string;
|
|
1704
|
-
extensionId: string;
|
|
1705
|
-
}
|
|
1706
|
-
|
|
1707
|
-
declare interface NavigationTreeRegistry {
|
|
1708
|
-
registerContribution(contribution: NavigationTreeContribution): Disposable_2;
|
|
1709
|
-
resolveOwner(kind: NavigationTreeOwner["kind"], id: string): NavigationTreeOwner | undefined;
|
|
1710
|
-
getSections(owner: NavigationTreeOwner, slot?: NavigationTreeSlot, context?: NavigationTreeContext): Promise<TreeViewSection[]>;
|
|
1711
|
-
getChildren(node: TreeNode, context?: NavigationTreeContext): Promise<TreeNode[]>;
|
|
1712
|
-
getDefaultExpandedSectionIds(owner: NavigationTreeOwner): string[];
|
|
1713
|
-
onDidChange(listener: () => void): Disposable_2;
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
|
-
declare type NavigationTreeSlot = "header" | "content" | "footer";
|
|
1717
|
-
|
|
1718
|
-
declare const NO_GROUPING = "none";
|
|
1719
|
-
|
|
1720
|
-
declare interface NotificationRegistry {
|
|
1721
|
-
store: WorkbenchStore<WorkbenchNotificationStoreState>;
|
|
1722
|
-
show(notification: WorkbenchNotification, metadata?: ContributionMetadata): RegisteredWorkbenchNotification;
|
|
1723
|
-
dismiss(id: string): boolean;
|
|
1724
|
-
clear(): void;
|
|
1725
|
-
listNotifications(): RegisteredWorkbenchNotification[];
|
|
1726
|
-
subscribe(listener: WorkbenchNotificationListener): Disposable_2;
|
|
1727
|
-
}
|
|
1728
|
-
|
|
1729
|
-
declare interface OpenModePlacementTarget {
|
|
1730
|
-
panel: PlacementRef;
|
|
1731
|
-
resource?: ResourceRef;
|
|
1732
|
-
open?: PageOpenIntent;
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
|
-
declare interface OpenWidgetInput {
|
|
1736
|
-
viewId?: string | null;
|
|
1737
|
-
resource?: ResourceRef | null;
|
|
1738
|
-
title?: string;
|
|
1739
|
-
region?: WorkbenchRegion;
|
|
1740
|
-
role?: WorkbenchWidgetRole;
|
|
1741
|
-
ownerId?: string;
|
|
1742
|
-
source?: ContributionSource;
|
|
1743
|
-
pinned?: boolean;
|
|
1744
|
-
closable?: boolean;
|
|
1745
|
-
mountStrategy?: WidgetMountStrategy;
|
|
1746
|
-
hiddenByDefault?: boolean;
|
|
1747
|
-
tabRetention?: WorkbenchTabRetention;
|
|
1748
|
-
tabPosition?: WorkbenchTabPosition;
|
|
1749
|
-
tab?: WorkbenchWidgetTab;
|
|
1750
|
-
replaceActive?: boolean;
|
|
1751
|
-
replaceWidgetId?: string;
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
declare interface OpenWorkbenchOverlayInput {
|
|
1755
|
-
resource?: ResourceRef;
|
|
1756
|
-
title?: string;
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
|
-
declare interface OpenWorkbenchPanelInput {
|
|
1760
|
-
/** Set by the view registry. Low-level layout callers should leave this undefined. */
|
|
1761
|
-
viewId?: string | null;
|
|
1762
|
-
/** `null` explicitly clears an existing singleton placement's resource binding. */
|
|
1763
|
-
resource?: ResourceRef | null;
|
|
1764
|
-
title?: string;
|
|
1765
|
-
region?: WorkbenchRegion;
|
|
1766
|
-
role?: WorkbenchWidgetRole;
|
|
1767
|
-
pinned?: boolean;
|
|
1768
|
-
closable?: boolean;
|
|
1769
|
-
mountStrategy?: WorkbenchPanelMountStrategy;
|
|
1770
|
-
hiddenByDefault?: boolean;
|
|
1771
|
-
tab?: WorkbenchPanelTab;
|
|
1772
|
-
strategy?: WorkbenchPanelOpenStrategy;
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
declare interface OpenWorkbenchShellPlacementInput {
|
|
1776
|
-
placementId: string;
|
|
1777
|
-
resource?: ResourceRef;
|
|
1778
|
-
open?: PageOpenIntent;
|
|
1779
|
-
title?: string;
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
declare interface OwnedPlacementLocationContext {
|
|
1783
|
-
modeId: string;
|
|
1784
|
-
pageId?: string;
|
|
1785
|
-
projectId?: string;
|
|
1786
|
-
location?: PageLocation;
|
|
1787
|
-
}
|
|
1788
|
-
|
|
1789
|
-
declare interface OwnedPlacementReconciliation<Value> {
|
|
1790
|
-
add: readonly ResolvedOwnedPlacement<Value>[];
|
|
1791
|
-
retain: readonly ResolvedOwnedPlacement<Value>[];
|
|
1792
|
-
update: readonly OwnedPlacementUpdate<Value>[];
|
|
1793
|
-
activate: readonly ResolvedOwnedPlacement<Value>[];
|
|
1794
|
-
remove: readonly ResolvedOwnedPlacement<Value>[];
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
declare interface OwnedPlacementUpdate<Value> {
|
|
1798
|
-
current: ResolvedOwnedPlacement<Value>;
|
|
1799
|
-
desired: ResolvedOwnedPlacement<Value>;
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
declare const pageRefSchema: z.ZodObject<{
|
|
1803
|
-
extensionId: z.ZodString;
|
|
1804
|
-
kind: z.ZodLiteral<"page">;
|
|
1805
|
-
id: z.ZodString;
|
|
1806
|
-
}, z.core.$strip>;
|
|
1807
|
-
|
|
1808
|
-
declare interface PlaceholderContribution {
|
|
1809
|
-
id: string;
|
|
1810
|
-
title: string;
|
|
1811
|
-
region: WorkbenchRegion;
|
|
1812
|
-
rendererId: string;
|
|
1813
|
-
regionSize?: WorkbenchRegionSize;
|
|
1814
|
-
regionCollapsible?: boolean;
|
|
1815
|
-
config?: unknown;
|
|
1816
|
-
priority?: number;
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
declare interface PreferencePropertySchema {
|
|
1820
|
-
type: "boolean" | "number" | "string" | "array" | "object";
|
|
1821
|
-
enum?: PreferenceValue[];
|
|
1822
|
-
default?: PreferenceValue;
|
|
1823
|
-
scope: PreferenceScope;
|
|
1824
|
-
description?: string;
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
declare interface PreferenceRegistry {
|
|
1828
|
-
store: WorkbenchStore<PreferenceRegistryStoreState>;
|
|
1829
|
-
registerSchema(schema: PreferenceSchemaContribution, metadata?: ContributionMetadata): Disposable_2;
|
|
1830
|
-
getSchema(name: string): RegisteredPreferenceSchema | undefined;
|
|
1831
|
-
setValue(name: string, value: PreferenceValue, scope: PreferenceScopeRef): void;
|
|
1832
|
-
getValue(name: string, scope?: PreferenceScopeRef): PreferenceValue | undefined;
|
|
1833
|
-
}
|
|
1834
|
-
|
|
1835
|
-
declare interface PreferenceRegistryStoreState {
|
|
1836
|
-
schemas: Record<string, RegisteredPreferenceSchema>;
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
declare interface PreferenceSchemaContribution {
|
|
1840
|
-
properties: Record<string, PreferencePropertySchema>;
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
declare type PreferenceScope = "default" | "user" | "project" | "repo" | "workspace" | "extension" | "session";
|
|
1844
|
-
|
|
1845
|
-
declare interface PreferenceScopeRef {
|
|
1846
|
-
scope: PreferenceScope;
|
|
1847
|
-
scopeId?: string;
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
declare type PreferenceValue = boolean | number | string | string[] | number[] | boolean[] | Record<string, unknown>;
|
|
1851
|
-
|
|
1852
|
-
declare type ReactAttributeDescriptor = AttributeDescriptor<ReactNode>;
|
|
1853
|
-
|
|
1854
|
-
declare type ReactColumnIcon = ComponentType<{
|
|
1855
|
-
size?: number | string;
|
|
1856
|
-
}>;
|
|
1857
|
-
|
|
1858
|
-
declare type ReactKanbanRendererContribution<TRow extends KanbanRendererRow = KanbanRendererRow> = KanbanRendererContribution<TRow, ReactNode, ReactColumnIcon>;
|
|
1859
|
-
|
|
1860
|
-
export declare const refreshOpenWorkbenchExtensionWebviews: (workbench: WorkbenchModuleContext, metadata: WorkbenchExtensionMetadata) => void;
|
|
1861
|
-
|
|
1862
|
-
export declare const refreshWorkbenchExtensionRenderer: (workbench: WorkbenchModuleContext, target: RendererRefreshTarget, envelope?: FileRendererRefreshEnvelope) => void;
|
|
1863
|
-
|
|
1864
|
-
declare interface RegisteredCommand extends RegisteredContributionMetadata {
|
|
1865
|
-
command: Command;
|
|
1866
|
-
handler: CommandHandler;
|
|
1867
|
-
}
|
|
1868
|
-
|
|
1869
|
-
declare interface RegisteredContributionMetadata {
|
|
1870
|
-
source: ContributionSource;
|
|
1871
|
-
ownerId: string;
|
|
1872
|
-
priority: number;
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
declare interface RegisteredKeybinding extends Keybinding, RegisteredContributionMetadata {
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
|
-
declare interface RegisteredMenuItem extends MenuItem, RegisteredContributionMetadata {
|
|
1879
|
-
path: MenuPath;
|
|
1880
|
-
}
|
|
1881
|
-
|
|
1882
|
-
declare type RegisteredNavigationParser = Omit<NavigationParser, "priority"> & RegisteredContributionMetadata;
|
|
1883
|
-
|
|
1884
|
-
declare type RegisteredPlaceholderContribution = Omit<PlaceholderContribution, "priority"> & RegisteredContributionMetadata;
|
|
1885
|
-
|
|
1886
|
-
declare type RegisteredPreferenceSchema = PreferencePropertySchema & {
|
|
1887
|
-
ownerId: string;
|
|
1888
|
-
source: string;
|
|
1889
|
-
};
|
|
1890
|
-
|
|
1891
|
-
declare interface RegisteredResourceKind extends ResourceKindContribution, RegisteredContributionMetadata {
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
|
-
declare type RegisteredSettingsPanel = SettingsPanelContribution & RegisteredContributionMetadata;
|
|
1895
|
-
|
|
1896
|
-
declare type RegisteredSettingsSection = SettingsSectionContribution & RegisteredContributionMetadata;
|
|
1897
|
-
|
|
1898
|
-
declare interface RegisteredTreeRendererContribution extends TreeRendererContribution, RegisteredContributionMetadata {
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
declare type RegisteredWidgetContribution = Omit<WidgetContribution, "priority" | "singleton" | "reuse"> & {
|
|
1902
|
-
ownedPanelMenuIds?: readonly string[];
|
|
1903
|
-
singleton: boolean;
|
|
1904
|
-
reuse: WidgetReusePolicy;
|
|
1905
|
-
} & RegisteredContributionMetadata;
|
|
1906
|
-
|
|
1907
|
-
declare interface RegisteredWorkbenchNotification extends RegisteredContributionMetadata {
|
|
1908
|
-
id: string;
|
|
1909
|
-
level: WorkbenchNotificationLevel;
|
|
1910
|
-
title: string;
|
|
1911
|
-
message?: string;
|
|
1912
|
-
createdAt: string;
|
|
1913
|
-
resource?: ResourceRef;
|
|
1914
|
-
actions?: WorkbenchNotificationAction[];
|
|
1915
|
-
metadata?: Record<string, unknown>;
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
declare type RegisteredWorkbenchStatusSet = WorkbenchStatusSetContribution & RegisteredContributionMetadata;
|
|
1919
|
-
|
|
1920
|
-
declare type RegisteredWorkbenchView = WorkbenchViewContribution & RegisteredContributionMetadata;
|
|
1921
|
-
|
|
1922
|
-
export declare const registerWorkbenchExtensionCommandPaletteResources: (context: WorkbenchExtensionCommandContext, records: readonly WorkbenchExtensionCommandPaletteResourceRecord[]) => {
|
|
1923
|
-
dispose(): void;
|
|
1924
|
-
};
|
|
1925
|
-
|
|
1926
|
-
export declare const registerWorkbenchExtensionContributions: (sourceInput: RegisterWorkbenchExtensionContributionsInput) => {
|
|
1927
|
-
dispose(): void;
|
|
1928
|
-
};
|
|
1929
|
-
|
|
1930
|
-
export declare interface RegisterWorkbenchExtensionContributionsInput {
|
|
1931
|
-
createKeybindingWhenExpression?: (when: ExtensionKeybindingRecord["when"]) => string | undefined;
|
|
1932
|
-
createMenuWhenExpression?: WorkbenchExtensionMenuWhenBuilder;
|
|
1933
|
-
createNavigationWhenExpression?: (when: WorkbenchExtensionMetadata["navigationItems"][number]["when"]) => string | undefined;
|
|
1934
|
-
createWebviewHostCapabilities?: CreateBridgeWebviewHostCapabilities;
|
|
1935
|
-
createWebviewHostCapabilityOverrides?: CreateBridgeWebviewHostCapabilities;
|
|
1936
|
-
createWebviewProps?: CreateBridgeWebviewProps;
|
|
1937
|
-
createWebviewTheme?: CreateBridgeWebviewTheme;
|
|
1938
|
-
executeCommand(commandId: string, body: CommandExecuteRequest): Promise<unknown> | unknown;
|
|
1939
|
-
kanbanAdapter?: WorkbenchExtensionKanbanRendererAdapter;
|
|
1940
|
-
menuSlotsById?: ReadonlyMap<string, WorkbenchExtensionMenuSlotConfig>;
|
|
1941
|
-
menuTargetsById?: ReadonlyMap<string, WorkbenchExtensionMenuSlotConfig>;
|
|
1942
|
-
menuRegistrations?: readonly WorkbenchExtensionHostMenuRegistration[];
|
|
1943
|
-
metadata: WorkbenchExtensionMetadata;
|
|
1944
|
-
openHref?: (href: string) => unknown;
|
|
1945
|
-
prepareCommandArgs?(commandId: string, args: unknown, context?: WorkbenchCommandExecutionContext, onArgsChange?: (args: unknown) => void): Promise<unknown> | unknown;
|
|
1946
|
-
projectId: string;
|
|
1947
|
-
resolveTreeNodeResource?: RegisterWorkbenchExtensionTreeRenderersInput["resolveNodeResource"];
|
|
1948
|
-
renderWebview?(input: WorkbenchPanelRenderInput): unknown;
|
|
1949
|
-
settingsSectionId?: string;
|
|
1950
|
-
settingsSectionTitle?: string;
|
|
1951
|
-
subscribeRefreshEvents?: (listener: (event: WorkbenchExtensionRefreshEvent) => void) => Disposable_2;
|
|
1952
|
-
webviewArtifacts?: ExtensionWebviewArtifactCapabilities;
|
|
1953
|
-
webviewFiles?: ExtensionWebviewFileCapabilities;
|
|
1954
|
-
workbench: WorkbenchModuleContext;
|
|
1955
|
-
}
|
|
1956
|
-
|
|
1957
|
-
export declare const registerWorkbenchExtensionControlsRenderers: (context: WorkbenchExtensionCommandContext, records: WorkbenchExtensionControlsRendererRecord[], adapter?: WorkbenchExtensionControlsAdapter) => Disposable_2;
|
|
1958
|
-
|
|
1959
|
-
export declare const registerWorkbenchExtensionDataTableRenderers: (context: WorkbenchExtensionCommandContext, records: WorkbenchExtensionDataTableRendererRecord[]) => Disposable_2;
|
|
1960
|
-
|
|
1961
|
-
export declare const registerWorkbenchExtensionFileRenderers: (input: RegisterWorkbenchExtensionFileRenderersInput) => {
|
|
1962
|
-
dispose(): void;
|
|
1963
|
-
};
|
|
1964
|
-
|
|
1965
|
-
export declare interface RegisterWorkbenchExtensionFileRenderersInput {
|
|
1966
|
-
executeCommand(commandId: string, body: CommandExecuteRequest): Promise<unknown> | unknown;
|
|
1967
|
-
metadata: InternalWorkbenchExtensionMetadata;
|
|
1968
|
-
projectId: string;
|
|
1969
|
-
workbench: WorkbenchModuleContext;
|
|
1970
|
-
}
|
|
1971
|
-
|
|
1972
|
-
export declare const registerWorkbenchExtensionKanbanRenderers: (context: WorkbenchExtensionCommandContext, records: readonly WorkbenchExtensionKanbanRendererRecord[], adapter?: WorkbenchExtensionKanbanRendererAdapter) => {
|
|
1973
|
-
dispose(): void;
|
|
1974
|
-
};
|
|
1975
|
-
|
|
1976
|
-
export declare const registerWorkbenchExtensionRendererRefreshEvents: (input: RegisterWorkbenchExtensionRendererRefreshEventsInput) => Disposable_2;
|
|
1977
|
-
|
|
1978
|
-
export declare interface RegisterWorkbenchExtensionRendererRefreshEventsInput {
|
|
1979
|
-
metadata: WorkbenchExtensionMetadata;
|
|
1980
|
-
subscribe: (listener: (event: WorkbenchExtensionRefreshEvent) => void) => Disposable_2;
|
|
1981
|
-
workbench: WorkbenchModuleContext;
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
|
-
export declare const registerWorkbenchExtensionTreeRenderers: (input: RegisterWorkbenchExtensionTreeRenderersInput) => {
|
|
1985
|
-
dispose(): void;
|
|
1986
|
-
};
|
|
1987
|
-
|
|
1988
|
-
export declare interface RegisterWorkbenchExtensionTreeRenderersInput {
|
|
1989
|
-
executeCommand(commandId: string, body: CommandExecuteRequest): Promise<unknown> | unknown;
|
|
1990
|
-
getHostTreeFooterNodes?: HostTreeDefaultNodesResolver;
|
|
1991
|
-
getHostTreeHeaderNodes?: HostTreeDefaultNodesResolver;
|
|
1992
|
-
metadata: InternalWorkbenchExtensionMetadata;
|
|
1993
|
-
projectId: string;
|
|
1994
|
-
/**
|
|
1995
|
-
* Host canonicalization for node resources. A host that gives extension
|
|
1996
|
-
* resources its own URIs (layout scopes, history, and hierarchy key on the
|
|
1997
|
-
* URI) must convert tree node resources the same way, or the same resource
|
|
1998
|
-
* gets a second identity when opened from a tree.
|
|
1999
|
-
*/
|
|
2000
|
-
resolveNodeResource?: (resource: ExtensionTreeResource) => ResourceRef;
|
|
2001
|
-
workbench: WorkbenchModuleContext;
|
|
2002
|
-
}
|
|
2003
|
-
|
|
2004
|
-
export declare const renderBridgeWebviewFrame: (input: {
|
|
2005
|
-
context: BridgeWebviewRenderContext;
|
|
2006
|
-
createHostCapabilities: CreateBridgeWebviewHostCapabilities;
|
|
2007
|
-
createProps: CreateBridgeWebviewProps;
|
|
2008
|
-
createTheme?: CreateBridgeWebviewTheme;
|
|
2009
|
-
ownerId?: string;
|
|
2010
|
-
title: string;
|
|
2011
|
-
webview: BridgeWebviewConfig;
|
|
2012
|
-
}) => JSX.Element;
|
|
2013
|
-
|
|
2014
|
-
declare interface RendererRefreshTarget {
|
|
2015
|
-
id: string;
|
|
2016
|
-
kind: WorkbenchExtensionRendererKind;
|
|
2017
|
-
}
|
|
2018
|
-
|
|
2019
|
-
declare interface ResolvedOwnedPlacement<Value = unknown> {
|
|
2020
|
-
identity: PlacementIdentity;
|
|
2021
|
-
region: WorkbenchRegion;
|
|
2022
|
-
order: number;
|
|
2023
|
-
value: Value;
|
|
2024
|
-
}
|
|
2025
|
-
|
|
2026
|
-
declare type ResolvedResourceHierarchyProvider = Required<ResourceHierarchyProvider>;
|
|
2027
|
-
|
|
2028
|
-
declare interface ResourceBrowseEntry {
|
|
2029
|
-
resource: ResourceRef;
|
|
2030
|
-
searchText?: string;
|
|
2031
|
-
description?: string;
|
|
2032
|
-
group?: string;
|
|
2033
|
-
order?: number;
|
|
2034
|
-
activate?: (resource: ResourceRef) => unknown | Promise<unknown>;
|
|
2035
|
-
}
|
|
2036
|
-
|
|
2037
|
-
/** Row-level context menu action surfaced by the renderer. */
|
|
2038
|
-
declare interface ResourceContextAction<TNode = unknown> {
|
|
2039
|
-
key: string;
|
|
2040
|
-
label: string;
|
|
2041
|
-
onClick: () => Promise<void> | void;
|
|
2042
|
-
isDisabled?: boolean;
|
|
2043
|
-
icon?: TNode;
|
|
2044
|
-
endContent?: TNode;
|
|
2045
|
-
separatorBefore?: boolean;
|
|
2046
|
-
}
|
|
2047
|
-
|
|
2048
|
-
declare interface ResourceHierarchyCycle {
|
|
2049
|
-
code: typeof resourceHierarchyCycleCode;
|
|
2050
|
-
path: WorkbenchHierarchyNode[];
|
|
2051
|
-
repeatedUri: string;
|
|
2052
|
-
}
|
|
2053
|
-
|
|
2054
|
-
declare const resourceHierarchyCycleCode = "resource_hierarchy_cycle";
|
|
2055
|
-
|
|
2056
|
-
declare interface ResourceHierarchyProvider {
|
|
2057
|
-
id: string;
|
|
2058
|
-
priority?: number;
|
|
2059
|
-
canResolve(resource: ResourceRef): boolean;
|
|
2060
|
-
getParent(resource: ResourceRef): WorkbenchHierarchyNode | undefined;
|
|
2061
|
-
}
|
|
2062
|
-
|
|
2063
|
-
declare interface ResourceKindContribution {
|
|
2064
|
-
kind: string;
|
|
2065
|
-
label: string;
|
|
2066
|
-
icon?: string;
|
|
2067
|
-
}
|
|
2068
|
-
|
|
2069
|
-
declare interface ResourceListContext {
|
|
2070
|
-
primary?: ResourceRef;
|
|
2071
|
-
}
|
|
2072
|
-
|
|
2073
|
-
declare interface ResourceProvider {
|
|
2074
|
-
id: string;
|
|
2075
|
-
kind: string;
|
|
2076
|
-
list(query: string, context: ResourceListContext): readonly ResourceBrowseEntry[];
|
|
2077
|
-
}
|
|
2078
|
-
|
|
2079
|
-
declare interface ResourceRegistry {
|
|
2080
|
-
store: WorkbenchStore<ResourceRegistryStoreState>;
|
|
2081
|
-
registerKind(kind: ResourceKindContribution, metadata?: ContributionMetadata): Disposable_2;
|
|
2082
|
-
getKind(kind: string): RegisteredResourceKind | undefined;
|
|
2083
|
-
listKinds(): RegisteredResourceKind[];
|
|
2084
|
-
registerProvider(provider: ResourceProvider): Disposable_2;
|
|
2085
|
-
listProviders(): ResourceProvider[];
|
|
2086
|
-
listResources(query: string): readonly ResourceBrowseEntry[];
|
|
2087
|
-
registerHierarchyProvider(provider: ResourceHierarchyProvider): Disposable_2;
|
|
2088
|
-
listHierarchyProviders(): ResolvedResourceHierarchyProvider[];
|
|
2089
|
-
walkHierarchy(resource: ResourceRef | undefined): WorkbenchHierarchyNode[];
|
|
2090
|
-
onDidDetectHierarchyCycle(listener: (cycle: ResourceHierarchyCycle) => void): Disposable_2;
|
|
2091
|
-
}
|
|
2092
|
-
|
|
2093
|
-
declare interface ResourceRegistryStoreState {
|
|
2094
|
-
kinds: Record<string, RegisteredResourceKind>;
|
|
2095
|
-
providers: Record<string, ResourceProvider>;
|
|
2096
|
-
hierarchyProviders: Record<string, ResolvedResourceHierarchyProvider>;
|
|
2097
|
-
}
|
|
2098
|
-
|
|
2099
|
-
declare type RowAction = NonNullable<WorkbenchExtensionKanbanRendererRecord["rowActions"]>[number];
|
|
2100
|
-
|
|
2101
|
-
/** Auto-rendered as a param editor from the registered preference schema. */
|
|
2102
|
-
declare interface SchemaSettingsPanel extends SettingsPanelBase {
|
|
2103
|
-
kind: "schema";
|
|
2104
|
-
preferences: SettingsPanelPreference[];
|
|
2105
|
-
/** "live" persists on change (default); "apply" stages edits behind Save/Discard. */
|
|
2106
|
-
save?: "live" | "apply";
|
|
2107
|
-
}
|
|
2108
|
-
|
|
2109
|
-
declare const sectionSchema: z.ZodObject<{
|
|
2110
|
-
anchors: z.ZodArray<z.ZodObject<{
|
|
2111
|
-
id: z.ZodString;
|
|
2112
|
-
heading: z.ZodString;
|
|
2113
|
-
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
2114
|
-
}, z.core.$strip>>;
|
|
2115
|
-
}, z.core.$strip>;
|
|
2116
|
-
|
|
2117
|
-
/** A "+ create"-style action surfaced on a section or a collection's parent node. */
|
|
2118
|
-
declare interface SettingsAction {
|
|
2119
|
-
id: string;
|
|
2120
|
-
label: string;
|
|
2121
|
-
icon?: string;
|
|
2122
|
-
run(): void | Promise<void>;
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
declare interface SettingsCollectionGroupBy<TItem> {
|
|
2126
|
-
key(item: TItem): string;
|
|
2127
|
-
order?: string[];
|
|
2128
|
-
label(key: string): string;
|
|
2129
|
-
icon?(key: string): string | undefined;
|
|
2130
|
-
}
|
|
2131
|
-
|
|
2132
|
-
declare interface SettingsPanelBase {
|
|
2133
|
-
id: string;
|
|
2134
|
-
title: string;
|
|
2135
|
-
description?: string;
|
|
2136
|
-
/** Section id this panel belongs to. */
|
|
2137
|
-
section?: string;
|
|
2138
|
-
icon?: string;
|
|
2139
|
-
/** Lower sorts first; ties fall back to contribution priority then registration order. */
|
|
2140
|
-
order?: number;
|
|
2141
|
-
scope?: SettingsScope;
|
|
2142
|
-
when?: string;
|
|
2143
|
-
}
|
|
2144
|
-
|
|
2145
|
-
declare type SettingsPanelContribution = SchemaSettingsPanel | ViewSettingsPanel | CollectionSettingsPanel;
|
|
2146
|
-
|
|
2147
|
-
/** A preference this panel edits; a bare string uses the preference name as its label. */
|
|
2148
|
-
declare type SettingsPanelPreference = string | {
|
|
2149
|
-
name: string;
|
|
2150
|
-
label?: string;
|
|
2151
|
-
};
|
|
2152
|
-
|
|
2153
|
-
declare interface SettingsRegistry {
|
|
2154
|
-
store: WorkbenchStore<SettingsRegistryStoreState>;
|
|
2155
|
-
registerSection(section: SettingsSectionContribution, metadata?: ContributionMetadata): Disposable_2;
|
|
2156
|
-
registerPanel<TItem = unknown>(panel: SchemaSettingsPanel | ViewSettingsPanel | CollectionSettingsPanel<TItem>, metadata?: ContributionMetadata): Disposable_2;
|
|
2157
|
-
getSection(id: string): RegisteredSettingsSection | undefined;
|
|
2158
|
-
getPanel(id: string): RegisteredSettingsPanel | undefined;
|
|
2159
|
-
listSections(): RegisteredSettingsSection[];
|
|
2160
|
-
listPanels(): RegisteredSettingsPanel[];
|
|
2161
|
-
resolveCollectionItem(panelId: string, itemId: string): Promise<unknown | undefined>;
|
|
2162
|
-
getCollectionItem(panelId: string, itemId: string): unknown | undefined;
|
|
2163
|
-
/** Signal that a collection's backing data changed so the surface refreshes. */
|
|
2164
|
-
refresh(): void;
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
declare interface SettingsRegistryStoreState {
|
|
2168
|
-
sections: Record<string, RegisteredSettingsSection>;
|
|
2169
|
-
panels: Record<string, RegisteredSettingsPanel>;
|
|
2170
|
-
/** Bumped by refresh() so the surface re-reads collection items() after backing data changes. */
|
|
2171
|
-
revision: number;
|
|
2172
|
-
}
|
|
2173
|
-
|
|
2174
|
-
/** Settings are stored either per-user (global) or per-project. Projectless surfaces show only global entries. */
|
|
2175
|
-
declare type SettingsScope = "global" | "project";
|
|
2176
|
-
|
|
2177
|
-
/** An ordered sidenav container. Headerless when `title` is omitted. */
|
|
2178
|
-
declare interface SettingsSectionContribution {
|
|
2179
|
-
id: string;
|
|
2180
|
-
title?: string;
|
|
2181
|
-
order?: number;
|
|
2182
|
-
scope?: SettingsScope;
|
|
2183
|
-
actions?: SettingsAction[];
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
/** Core-only panel ref for host-owned shell placements. Extensions cannot address them. */
|
|
2187
|
-
declare interface ShellPlacementRef {
|
|
2188
|
-
kind: "shell-placement";
|
|
2189
|
-
id: string;
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
declare type SortDirection = "asc" | "desc";
|
|
2193
|
-
|
|
2194
|
-
/**
|
|
2195
|
-
* Core-owned contract for theme registrations. Structurally identical to
|
|
2196
|
-
* @pstdio/ui's ThemePreferenceOption; the React layer bridges the two so core
|
|
2197
|
-
* does not depend on UI package ownership.
|
|
2198
|
-
*/
|
|
2199
|
-
declare type ThemePreference = string;
|
|
2200
|
-
|
|
2201
|
-
declare type ThemePreference_2 = "dark" | "light";
|
|
2202
|
-
|
|
2203
|
-
declare type ThemePreferenceMode = "light" | "dark";
|
|
2204
|
-
|
|
2205
|
-
declare interface ThemePreferenceOption {
|
|
2206
|
-
id: ThemePreference;
|
|
2207
|
-
title?: string;
|
|
2208
|
-
mode: ThemePreferenceMode;
|
|
2209
|
-
tokens?: ThemePreferenceTokens;
|
|
2210
|
-
monacoTheme?: unknown;
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
declare type ThemePreferenceTokens = Record<string, string>;
|
|
2214
|
-
|
|
2215
|
-
declare interface ThemeRegistry {
|
|
2216
|
-
store: WorkbenchStore<WorkbenchThemeStoreState>;
|
|
2217
|
-
register(themes: readonly ThemePreferenceOption[]): Disposable_2;
|
|
2218
|
-
listThemes(): readonly ThemePreferenceOption[];
|
|
2219
|
-
}
|
|
2220
|
-
|
|
2221
|
-
export declare function toWorkbenchNavigationTarget(target: NavigationOperation, input?: ToWorkbenchNavigationTargetInput): NavigationOperation;
|
|
2222
|
-
|
|
2223
|
-
export declare function toWorkbenchNavigationTarget(target: NavigationTarget_2, input?: ToWorkbenchNavigationTargetInput): NavigationTarget;
|
|
2224
|
-
|
|
2225
|
-
export declare interface ToWorkbenchNavigationTargetInput {
|
|
2226
|
-
commandIdOf?(command: Extract<NavigationTarget_2, {
|
|
2227
|
-
kind: "command";
|
|
2228
|
-
}>["target"]["command"]): string | undefined;
|
|
2229
|
-
commandTargetOf?(target: Extract<NavigationTarget_2, {
|
|
2230
|
-
kind: "command";
|
|
2231
|
-
}>): NavigationTargetCommand;
|
|
2232
|
-
extensionId?: string;
|
|
2233
|
-
}
|
|
2234
|
-
|
|
2235
|
-
export declare const toWorkbenchNavigationTargetResult: (value: unknown, input?: ToWorkbenchNavigationTargetInput) => NavigationTarget | undefined;
|
|
2236
|
-
|
|
2237
|
-
export declare const toWorkbenchWhenExpression: (when: WorkbenchExtensionMetadata["navigationItems"][number]["when"] | WorkbenchExtensionMetadata["statusBarItems"][number]["when"]) => {
|
|
2238
|
-
mode: string | string[] | undefined;
|
|
2239
|
-
source: ("event" | "schedule" | "api" | "cli" | "dashboard" | "automation" | "command-panel")[] | undefined;
|
|
2240
|
-
viewId: string | string[] | undefined;
|
|
2241
|
-
resourceType: string[] | undefined;
|
|
2242
|
-
metadata: Record<string, unknown> | undefined;
|
|
2243
|
-
} | undefined;
|
|
2244
|
-
|
|
2245
|
-
declare interface TreeAction {
|
|
2246
|
-
id: string;
|
|
2247
|
-
label?: string;
|
|
2248
|
-
icon?: string;
|
|
2249
|
-
commandId?: string;
|
|
2250
|
-
args?: unknown;
|
|
2251
|
-
params?: CommandParamSchema;
|
|
2252
|
-
submitLabel?: string;
|
|
2253
|
-
when?: string;
|
|
2254
|
-
disabled?: boolean;
|
|
2255
|
-
run?(args?: unknown): Promise<void> | void;
|
|
2256
|
-
}
|
|
2257
|
-
|
|
2258
|
-
declare interface TreeContext extends TreeQueryContext {
|
|
2259
|
-
state: Readonly<TreeRendererState>;
|
|
2260
|
-
refresh(): void;
|
|
2261
|
-
setSelectedNode(nodeId: string | undefined): void;
|
|
2262
|
-
}
|
|
2263
|
-
|
|
2264
|
-
declare interface TreeMoveEndpoint {
|
|
2265
|
-
kind: "section" | "node";
|
|
2266
|
-
sectionId: string;
|
|
2267
|
-
id: string;
|
|
2268
|
-
moveScope?: string;
|
|
2269
|
-
}
|
|
2270
|
-
|
|
2271
|
-
declare type TreeMovePolicy = (move: {
|
|
2272
|
-
source: TreeMoveEndpoint;
|
|
2273
|
-
destination: TreeMoveEndpoint;
|
|
2274
|
-
}) => boolean;
|
|
2275
|
-
|
|
2276
|
-
declare interface TreeNode {
|
|
2277
|
-
id: string;
|
|
2278
|
-
selected?: boolean;
|
|
2279
|
-
/** Host-owned customization boundary. Extension callbacks cannot set it. */
|
|
2280
|
-
moveScope?: string;
|
|
2281
|
-
label: string;
|
|
2282
|
-
icon?: string;
|
|
2283
|
-
iconElement?: unknown;
|
|
2284
|
-
iconColor?: string;
|
|
2285
|
-
iconTooltip?: string;
|
|
2286
|
-
endContent?: unknown;
|
|
2287
|
-
commandId?: string;
|
|
2288
|
-
resource?: ResourceRef;
|
|
2289
|
-
target?: NavigationTarget;
|
|
2290
|
-
/** Visual row variant for non-data rows such as placeholders. */
|
|
2291
|
-
rowVariant?: TreeNodeRowVariant;
|
|
2292
|
-
inlineInput?: TreeNodeInlineInput;
|
|
2293
|
-
actions?: TreeAction[];
|
|
2294
|
-
contextMenuActions?: TreeAction[];
|
|
2295
|
-
contextMenuPath?: MenuPath;
|
|
2296
|
-
menuPath?: MenuPath;
|
|
2297
|
-
menuPlacement?: "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "left-start";
|
|
2298
|
-
showContextMenuTrigger?: boolean;
|
|
2299
|
-
collapsible?: boolean;
|
|
2300
|
-
disabled?: boolean;
|
|
2301
|
-
children?: TreeNode[];
|
|
2302
|
-
description?: string;
|
|
2303
|
-
contextValue?: string;
|
|
2304
|
-
hiddenByDefault?: boolean;
|
|
2305
|
-
/** When true, the node (e.g. a header/footer row) opts in to the tree's hide/show customization menu. */
|
|
2306
|
-
canHide?: boolean;
|
|
2307
|
-
/** When false, the node stays fixed within its Sidenav group. */
|
|
2308
|
-
canReorder?: boolean;
|
|
2309
|
-
/** Allow this node to be moved to another tree location. */
|
|
2310
|
-
canDrag?: boolean;
|
|
2311
|
-
/** Allow movable nodes to be dropped on this node. */
|
|
2312
|
-
canDrop?: boolean;
|
|
2313
|
-
}
|
|
2314
|
-
|
|
2315
|
-
declare interface TreeNodeInlineInput {
|
|
2316
|
-
ariaLabel: string;
|
|
2317
|
-
defaultValue?: string;
|
|
2318
|
-
placeholder?: string;
|
|
2319
|
-
onCommit(value: string): Promise<void> | void;
|
|
2320
|
-
onCancel?(): void;
|
|
2321
|
-
}
|
|
2322
|
-
|
|
2323
|
-
declare type TreeNodeRowVariant = "empty-state";
|
|
2324
|
-
|
|
2325
|
-
declare interface TreeQueryContext {
|
|
2326
|
-
filter?: string;
|
|
2327
|
-
resource?: ResourceRef;
|
|
2328
|
-
/** Widget/view contribution id for trees rendered through a view-backed widget. */
|
|
2329
|
-
viewId?: string;
|
|
2330
|
-
}
|
|
2331
|
-
|
|
2332
|
-
declare interface TreeRendererContribution {
|
|
2333
|
-
id: string;
|
|
2334
|
-
title: string;
|
|
2335
|
-
icon?: string;
|
|
2336
|
-
searchable?: boolean;
|
|
2337
|
-
searchPlaceholder?: string;
|
|
2338
|
-
when?: string;
|
|
2339
|
-
defaultExpandedSectionIds?: string[];
|
|
2340
|
-
defaultExpandedNodeIds?: string[];
|
|
2341
|
-
getBody(ctx: TreeContext): Promise<TreeViewSection[]> | TreeViewSection[];
|
|
2342
|
-
getHeader?(ctx: TreeContext): Promise<TreeViewSection[]> | TreeViewSection[];
|
|
2343
|
-
getFooter?(ctx: TreeContext): Promise<TreeViewSection[]> | TreeViewSection[];
|
|
2344
|
-
getChildren(node: TreeNode, ctx: TreeContext): Promise<TreeNode[]> | TreeNode[];
|
|
2345
|
-
canMove?: TreeMovePolicy;
|
|
2346
|
-
moveNode?(source: TreeNode, target: TreeNode | undefined, ctx: TreeContext): Promise<void> | void;
|
|
2347
|
-
}
|
|
2348
|
-
|
|
2349
|
-
declare type TreeRendererImplementation = (input: WorkbenchPanelRenderInput & {
|
|
2350
|
-
treeId: string;
|
|
2351
|
-
}) => unknown;
|
|
2352
|
-
|
|
2353
|
-
declare interface TreeRendererRefreshEvent {
|
|
2354
|
-
treeId: string;
|
|
2355
|
-
}
|
|
2356
|
-
|
|
2357
|
-
declare type TreeRendererRefreshListener = (event: TreeRendererRefreshEvent) => void;
|
|
2358
|
-
|
|
2359
|
-
declare interface TreeRendererRegistry {
|
|
2360
|
-
treeStore: WorkbenchStore<TreeRendererStoreState>;
|
|
2361
|
-
registerTreeRenderer(view: TreeRendererContribution, metadata?: ContributionMetadata): Disposable_2;
|
|
2362
|
-
setTreeRendererImplementation(impl: TreeRendererImplementation): void;
|
|
2363
|
-
getTreeRenderer(id: string): RegisteredTreeRendererContribution | undefined;
|
|
2364
|
-
listTreeRenderers(): RegisteredTreeRendererContribution[];
|
|
2365
|
-
getBody(id: string, ctx?: TreeQueryContext): Promise<TreeViewSection[]>;
|
|
2366
|
-
getHeader(id: string, ctx?: TreeQueryContext): Promise<TreeViewSection[]>;
|
|
2367
|
-
getFooter(id: string, ctx?: TreeQueryContext): Promise<TreeViewSection[]>;
|
|
2368
|
-
getChildren(id: string, node: TreeNode, ctx?: TreeQueryContext): Promise<TreeNode[]>;
|
|
2369
|
-
getTreeState(id: string): TreeRendererState;
|
|
2370
|
-
setNodeExpanded(id: string, nodeId: string, expanded: boolean): void;
|
|
2371
|
-
setSectionExpanded(id: string, sectionId: string, expanded: boolean): void;
|
|
2372
|
-
setSelectedNode(id: string, nodeId: string | undefined): void;
|
|
2373
|
-
setLoading(id: string, loading: boolean): void;
|
|
2374
|
-
refresh(id: string): void;
|
|
2375
|
-
onDidRefresh(listener: TreeRendererRefreshListener): Disposable_2;
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
|
-
declare interface TreeRendererState {
|
|
2379
|
-
expandedNodeIds: string[];
|
|
2380
|
-
expandedSectionIds: string[];
|
|
2381
|
-
selectedNodeId?: string;
|
|
2382
|
-
loading?: boolean;
|
|
2383
|
-
}
|
|
2384
|
-
|
|
2385
|
-
declare interface TreeRendererStoreState {
|
|
2386
|
-
trees: Record<string, RegisteredTreeRendererContribution>;
|
|
2387
|
-
statesByTreeId: Record<string, TreeRendererState>;
|
|
2388
|
-
refreshKeysByTreeId: Record<string, number>;
|
|
2389
|
-
}
|
|
2390
|
-
|
|
2391
|
-
declare interface TreeSectionEmptyState {
|
|
2392
|
-
title: string;
|
|
2393
|
-
description?: string;
|
|
2394
|
-
icon?: string;
|
|
2395
|
-
}
|
|
2396
|
-
|
|
2397
|
-
declare interface TreeViewSection {
|
|
2398
|
-
id: string;
|
|
2399
|
-
/** Host-owned customization boundary. Extension callbacks cannot set it. */
|
|
2400
|
-
moveScope?: string;
|
|
2401
|
-
label?: string;
|
|
2402
|
-
actions?: TreeAction[];
|
|
2403
|
-
collapsible?: boolean;
|
|
2404
|
-
emptyState?: TreeSectionEmptyState;
|
|
2405
|
-
nodes: TreeNode[];
|
|
2406
|
-
hiddenByDefault?: boolean;
|
|
2407
|
-
/** When true, the section (category) opts in to the tree's hide/show customization menu. */
|
|
2408
|
-
canHide?: boolean;
|
|
2409
|
-
/** When false, the section stays fixed within the Sidenav main region. */
|
|
2410
|
-
canReorder?: boolean;
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
|
-
declare interface UnresolvedWorkbenchExtensionMenuContribution {
|
|
2414
|
-
contribution: ExtensionMenuContribution;
|
|
2415
|
-
targetId: string;
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
|
-
/**
|
|
2419
|
-
* Core-owned contracts for kanban renderer contributions. @pstdio/ui's
|
|
2420
|
-
* KanbanRenderer props are structurally identical; the React layer bridges the
|
|
2421
|
-
* two, so drift surfaces as a compile error there instead of coupling core's
|
|
2422
|
-
* API shape to UI package ownership.
|
|
2423
|
-
*/
|
|
2424
|
-
declare type ViewMode = "board" | "list";
|
|
2425
|
-
|
|
2426
|
-
declare interface ViewSettingsPanel extends SettingsPanelBase {
|
|
2427
|
-
kind: "view";
|
|
2428
|
-
viewId: string;
|
|
2429
|
-
}
|
|
2430
|
-
|
|
2431
|
-
declare interface WidgetContribution {
|
|
2432
|
-
id: string;
|
|
2433
|
-
title: string;
|
|
2434
|
-
icon?: string;
|
|
2435
|
-
region: WorkbenchRegion;
|
|
2436
|
-
fallbackRegion?: WorkbenchRegion;
|
|
2437
|
-
singleton?: boolean;
|
|
2438
|
-
reuse?: WidgetReusePolicy;
|
|
2439
|
-
mountStrategy?: WidgetMountStrategy;
|
|
2440
|
-
closable?: boolean;
|
|
2441
|
-
hiddenByDefault?: boolean;
|
|
2442
|
-
regionSize?: WorkbenchRegionSize;
|
|
2443
|
-
regionCollapsible?: boolean;
|
|
2444
|
-
headerBorderBottom?: boolean;
|
|
2445
|
-
resourceKinds?: string[];
|
|
2446
|
-
priority?: number;
|
|
2447
|
-
rendererId: string;
|
|
2448
|
-
openCommand?: WorkbenchCommandTarget;
|
|
2449
|
-
eligibleLocations?: WorkbenchLocationEligibility;
|
|
2450
|
-
panelMenuOwner?: WorkbenchPanelMenuOwner;
|
|
2451
|
-
tab?: WorkbenchWidgetTab;
|
|
2452
|
-
config?: unknown;
|
|
2453
|
-
canOpen?(resource: ResourceRef): boolean;
|
|
2454
|
-
}
|
|
2455
|
-
|
|
2456
|
-
declare type WidgetMountStrategy = "active" | "keep-mounted";
|
|
2457
|
-
|
|
2458
|
-
declare type WidgetReusePolicy = "resource" | "none";
|
|
2459
|
-
|
|
2460
|
-
declare type WorkbenchBreadcrumbChangeListener = () => void;
|
|
2461
|
-
|
|
2462
|
-
declare interface WorkbenchBreadcrumbController {
|
|
2463
|
-
store: WorkbenchStore<WorkbenchBreadcrumbState>;
|
|
2464
|
-
setItems(items: WorkbenchBreadcrumbItem[]): Disposable_2;
|
|
2465
|
-
clearItems(): void;
|
|
2466
|
-
getItems(): WorkbenchBreadcrumbItem[] | undefined;
|
|
2467
|
-
onDidChange(listener: WorkbenchBreadcrumbChangeListener): Disposable_2;
|
|
2468
|
-
}
|
|
2469
|
-
|
|
2470
|
-
declare interface WorkbenchBreadcrumbItem {
|
|
2471
|
-
title: unknown;
|
|
2472
|
-
icon?: string;
|
|
2473
|
-
indicator?: "session-status";
|
|
2474
|
-
url?: string;
|
|
2475
|
-
onClick?: () => void;
|
|
2476
|
-
resource?: ResourceRef;
|
|
2477
|
-
}
|
|
2478
|
-
|
|
2479
|
-
declare interface WorkbenchBreadcrumbState {
|
|
2480
|
-
items: WorkbenchBreadcrumbItem[] | undefined;
|
|
2481
|
-
}
|
|
2482
|
-
|
|
2483
|
-
declare interface WorkbenchCommandExecutionContext {
|
|
2484
|
-
resource?: ResourceRef;
|
|
2485
|
-
source?: "panel-add";
|
|
2486
|
-
}
|
|
2487
|
-
|
|
2488
|
-
declare interface WorkbenchCommandExecutionError {
|
|
2489
|
-
commandId: string;
|
|
2490
|
-
args: unknown;
|
|
2491
|
-
error: unknown;
|
|
2492
|
-
}
|
|
2493
|
-
|
|
2494
|
-
declare type WorkbenchCommandExecutionErrorListener = (event: WorkbenchCommandExecutionError) => void;
|
|
2495
|
-
|
|
2496
|
-
declare type WorkbenchCommandPaletteChangeListener = (open: boolean) => void;
|
|
2497
|
-
|
|
2498
|
-
declare interface WorkbenchCommandPaletteController {
|
|
2499
|
-
store: WorkbenchStore<WorkbenchCommandPaletteState>;
|
|
2500
|
-
isOpen(): boolean;
|
|
2501
|
-
getView(): WorkbenchCommandPaletteView;
|
|
2502
|
-
getInitialQuery(): string;
|
|
2503
|
-
getParamsRequest(): WorkbenchCommandParamsRequest | null;
|
|
2504
|
-
open(input?: WorkbenchCommandPaletteOpenInput): void;
|
|
2505
|
-
close(): void;
|
|
2506
|
-
toggle(): void;
|
|
2507
|
-
requestParams(request: WorkbenchCommandParamsRequest): void;
|
|
2508
|
-
clearParams(): void;
|
|
2509
|
-
onDidChange(listener: WorkbenchCommandPaletteChangeListener): Disposable_2;
|
|
2510
|
-
}
|
|
2511
|
-
|
|
2512
|
-
declare interface WorkbenchCommandPaletteOpenInput {
|
|
2513
|
-
view?: WorkbenchCommandPaletteView;
|
|
2514
|
-
initialQuery?: string;
|
|
2515
|
-
}
|
|
2516
|
-
|
|
2517
|
-
declare interface WorkbenchCommandPaletteState {
|
|
2518
|
-
open: boolean;
|
|
2519
|
-
view: WorkbenchCommandPaletteView;
|
|
2520
|
-
initialQuery: string;
|
|
2521
|
-
paramsRequest: WorkbenchCommandParamsRequest | null;
|
|
2522
|
-
}
|
|
2523
|
-
|
|
2524
|
-
declare type WorkbenchCommandPaletteView = "main" | "theme";
|
|
2525
|
-
|
|
2526
|
-
declare interface WorkbenchCommandParamsRequest {
|
|
2527
|
-
record: {
|
|
2528
|
-
command: {
|
|
2529
|
-
id: string;
|
|
2530
|
-
label: string;
|
|
2531
|
-
params?: CommandParamSchema;
|
|
2532
|
-
};
|
|
2533
|
-
};
|
|
2534
|
-
label: string;
|
|
2535
|
-
args?: unknown;
|
|
2536
|
-
context?: WorkbenchCommandExecutionContext;
|
|
2537
|
-
}
|
|
2538
|
-
|
|
2539
|
-
declare interface WorkbenchCommandTarget {
|
|
2540
|
-
commandId: string;
|
|
2541
|
-
args?: unknown;
|
|
2542
|
-
}
|
|
2543
|
-
|
|
2544
|
-
declare interface WorkbenchCompositionAddablePanel extends WorkbenchModeAddablePanel {
|
|
2545
|
-
contribution: RegisteredWidgetContribution;
|
|
2546
|
-
open?(resource?: ResourceRef): void;
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
|
-
declare interface WorkbenchCompositionController {
|
|
2550
|
-
panelsFor(region: WorkbenchPanelRegion): WorkbenchCompositionRegionPanels;
|
|
2551
|
-
}
|
|
2552
|
-
|
|
2553
|
-
declare interface WorkbenchCompositionRegionPanels {
|
|
2554
|
-
open: readonly WorkbenchWidgetPlacement[];
|
|
2555
|
-
addable: readonly WorkbenchCompositionAddablePanel[];
|
|
2556
|
-
closable: readonly string[];
|
|
2557
|
-
}
|
|
2558
|
-
|
|
2559
|
-
declare interface WorkbenchCore extends WorkbenchCoreContributionContext {
|
|
2560
|
-
host: WorkbenchHost;
|
|
2561
|
-
layout: WorkbenchLayoutModel;
|
|
2562
|
-
registerModule(module: WorkbenchModuleContribution): Disposable_2;
|
|
2563
|
-
unregisterModule(moduleId: string): void;
|
|
2564
|
-
}
|
|
2565
|
-
|
|
2566
|
-
declare interface WorkbenchCoreContributionContext {
|
|
2567
|
-
pinPlacement(identity: PlacementIdentity): void;
|
|
2568
|
-
closePlacement(identity: PlacementIdentity): void;
|
|
2569
|
-
breadcrumbs: WorkbenchBreadcrumbController;
|
|
2570
|
-
commandPalette: WorkbenchCommandPaletteController;
|
|
2571
|
-
commandPaletteResources: CommandPaletteResourceRegistry;
|
|
2572
|
-
commands: CommandRegistry;
|
|
2573
|
-
composition: WorkbenchCompositionController;
|
|
2574
|
-
context: ContextKeyService;
|
|
2575
|
-
focus: WorkbenchFocusController;
|
|
2576
|
-
keybindings: KeybindingRegistry;
|
|
2577
|
-
layout: WorkbenchModuleLayoutModel;
|
|
2578
|
-
modes: WorkbenchModeRegistry;
|
|
2579
|
-
modePlacements: WorkbenchModePlacementRegistry;
|
|
2580
|
-
shellPlacements: WorkbenchShellPlacementRegistry;
|
|
2581
|
-
navigation: NavigationRegistry;
|
|
2582
|
-
navigationTrees: NavigationTreeRegistry;
|
|
2583
|
-
notifications: NotificationRegistry;
|
|
2584
|
-
overlays: WorkbenchOverlayRegistry;
|
|
2585
|
-
placeholders: WorkbenchPlaceholderRegistry;
|
|
2586
|
-
pageLocations: WorkbenchPageLocationController;
|
|
2587
|
-
pages: WorkbenchPageRegistry<WorkbenchWidgetPlacement>;
|
|
2588
|
-
panelMenuState: WorkbenchPanelMenuStateController;
|
|
2589
|
-
preferences: PreferenceRegistry;
|
|
2590
|
-
treeViews: WorkbenchTreeViews;
|
|
2591
|
-
resources: ResourceRegistry;
|
|
2592
|
-
views: WorkbenchViewRegistry;
|
|
2593
|
-
viewMenus: WorkbenchViewMenuRegistry;
|
|
2594
|
-
settings: SettingsRegistry;
|
|
2595
|
-
statusBar: WorkbenchStatusBarRegistry;
|
|
2596
|
-
statuses: WorkbenchStatusRegistry;
|
|
2597
|
-
shell: WorkbenchShellController;
|
|
2598
|
-
sidePanel: WorkbenchSidePanelController;
|
|
2599
|
-
terminal: WorkbenchTerminalController;
|
|
2600
|
-
themes: ThemeRegistry;
|
|
2601
|
-
fileIconThemes: FileIconThemeRegistry;
|
|
2602
|
-
getPrimaryResource(): ResourceRef | undefined;
|
|
2603
|
-
onDidChangePrimaryResource(listener: (resource: ResourceRef | undefined) => void): Disposable_2;
|
|
2604
|
-
getActiveResource(): ResourceRef | undefined;
|
|
2605
|
-
onDidChangeActiveResource(listener: (resource: ResourceRef | undefined) => void): Disposable_2;
|
|
2606
|
-
registerChildModule(module: WorkbenchModuleContribution): Disposable_2;
|
|
2607
|
-
}
|
|
2608
|
-
|
|
2609
|
-
export declare interface WorkbenchExtensionCommandContext {
|
|
2610
|
-
executeCommand(commandId: string, body: CommandExecuteRequest): Promise<unknown> | unknown;
|
|
2611
|
-
prepareCommandArgs?(commandId: string, args: unknown, context?: WorkbenchCommandExecutionContext, onArgsChange?: (args: unknown) => void): Promise<unknown> | unknown;
|
|
2612
|
-
projectId: string;
|
|
2613
|
-
workbench: WorkbenchModuleContext;
|
|
2614
|
-
}
|
|
2615
|
-
|
|
2616
|
-
export declare interface WorkbenchExtensionCommandPaletteRegistration {
|
|
2617
|
-
command: Command;
|
|
2618
|
-
contribution: ExtensionCommandPaletteContribution;
|
|
2619
|
-
menuItem: MenuItem;
|
|
2620
|
-
targetCommandId: string;
|
|
2621
|
-
}
|
|
2622
|
-
|
|
2623
|
-
declare type WorkbenchExtensionCommandPaletteResourceRecord_2 = z.infer<typeof extensionCommandPaletteResourceRecordSchema>;
|
|
2624
|
-
|
|
2625
|
-
export declare interface WorkbenchExtensionControlsAdapter {
|
|
2626
|
-
/** Supply a fallback resource when the widget placement carries none. */
|
|
2627
|
-
resolveResource?: (record: WorkbenchExtensionControlsRendererRecord) => ResourceRef | undefined;
|
|
2628
|
-
}
|
|
2629
|
-
|
|
2630
|
-
declare type WorkbenchExtensionControlsRendererRecord = z.infer<typeof extensionControlsRendererRecordSchema>;
|
|
2631
|
-
|
|
2632
|
-
declare type WorkbenchExtensionDataTableRendererRecord = ExtensionDataTableRendererRecord;
|
|
2633
|
-
|
|
2634
|
-
declare type WorkbenchExtensionFileRendererRecord = z.infer<typeof extensionFileRendererRecordSchema>;
|
|
2635
|
-
|
|
2636
|
-
export declare interface WorkbenchExtensionHostMenuRegistration extends Omit<WorkbenchExtensionMenuRegistration, "menuItem" | "menuPath"> {
|
|
2637
|
-
menuItems: Array<{
|
|
2638
|
-
menuItem: MenuItem;
|
|
2639
|
-
menuPath: MenuPath;
|
|
2640
|
-
}>;
|
|
2641
|
-
}
|
|
2642
|
-
|
|
2643
|
-
export declare interface WorkbenchExtensionKanbanRendererAdapter {
|
|
2644
|
-
/** Override label resolution. Defaults to workbench's `text(value, fallback)`. */
|
|
2645
|
-
resolveLabel?: Localizer;
|
|
2646
|
-
/** Post-process an attribute descriptor (after localization). Defaults to identity. */
|
|
2647
|
-
decorateAttribute?: (record: WorkbenchExtensionKanbanRendererRecord, attribute: ReactAttributeDescriptor) => ReactAttributeDescriptor;
|
|
2648
|
-
/**
|
|
2649
|
-
* Translate a row's transport-shaped resource (`{ type, id }`) into a workbench
|
|
2650
|
-
* `ResourceRef`. Defaults to the workbench `pstdio://extension-resource/...`
|
|
2651
|
-
* scheme — dashboard supplies its own. Returns `undefined` for rows that do not
|
|
2652
|
-
* carry an explicit resource.
|
|
2653
|
-
*/
|
|
2654
|
-
resolveRowResource?: (record: WorkbenchExtensionKanbanRendererRecord, row: KanbanRendererRow_2) => ResourceRef | undefined;
|
|
2655
|
-
/**
|
|
2656
|
-
* Synthesize a `ResourceRef` for row-action execution context when the row does
|
|
2657
|
-
* not carry an explicit resource. Defaults to a `pstdio://extension-resource/`
|
|
2658
|
-
* fallback built from `record.resourceKind` and `row.id`.
|
|
2659
|
-
*/
|
|
2660
|
-
resolveRowActionResource?: (record: WorkbenchExtensionKanbanRendererRecord, row: KanbanRendererRow_2) => ResourceRef | undefined;
|
|
2661
|
-
/**
|
|
2662
|
-
* Override the row-action runner. `runDefault` performs the workbench's standard
|
|
2663
|
-
* flow (look up the row-action command, request params if needed, execute it).
|
|
2664
|
-
*/
|
|
2665
|
-
executeRowAction?: (input: {
|
|
2666
|
-
record: WorkbenchExtensionKanbanRendererRecord;
|
|
2667
|
-
action: RowAction;
|
|
2668
|
-
row: KanbanRendererRow_2;
|
|
2669
|
-
resource: ResourceRef | undefined;
|
|
2670
|
-
runDefault: () => Promise<void>;
|
|
2671
|
-
}) => void | Promise<void>;
|
|
2672
|
-
/**
|
|
2673
|
-
* Handle a row click when the renderer has no declared activation handler.
|
|
2674
|
-
*/
|
|
2675
|
-
onRowClick?: (input: {
|
|
2676
|
-
record: WorkbenchExtensionKanbanRendererRecord;
|
|
2677
|
-
row: KanbanRendererRow_2;
|
|
2678
|
-
resource: ResourceRef | undefined;
|
|
2679
|
-
}) => void;
|
|
2680
|
-
/** Called after a successful renderer-owned create form submission. */
|
|
2681
|
-
onAfterCreate?: (input: {
|
|
2682
|
-
record: WorkbenchExtensionKanbanRendererRecord;
|
|
2683
|
-
created: unknown;
|
|
2684
|
-
submission: KanbanRendererCreateSubmission;
|
|
2685
|
-
}) => void | Promise<void>;
|
|
2686
|
-
/**
|
|
2687
|
-
* Called after any mutation (attribute change, reorder, column action, default
|
|
2688
|
-
* create) resolves successfully. Hosts that drive refresh via the outer command
|
|
2689
|
-
* pipeline (testbench / workbench) leave this unset; dashboard supplies
|
|
2690
|
-
* `ctx.views.refreshView(id)`.
|
|
2691
|
-
*/
|
|
2692
|
-
onAfterMutation?: (record: WorkbenchExtensionKanbanRendererRecord) => void;
|
|
2693
|
-
}
|
|
2694
|
-
|
|
2695
|
-
declare type WorkbenchExtensionKanbanRendererRecord = z.infer<typeof extensionKanbanRendererRecordSchema>;
|
|
2696
|
-
|
|
2697
|
-
export declare interface WorkbenchExtensionMenuRegistration {
|
|
2698
|
-
command: Command;
|
|
2699
|
-
contribution: ExtensionMenuContribution;
|
|
2700
|
-
menuItem: MenuItem;
|
|
2701
|
-
menuPath: MenuPath;
|
|
2702
|
-
targetCommandId: string;
|
|
2703
|
-
}
|
|
2704
|
-
|
|
2705
|
-
export declare interface WorkbenchExtensionMenuSlotConfig {
|
|
2706
|
-
menuPath: MenuPath;
|
|
2707
|
-
group?: string;
|
|
2708
|
-
overflowLabel?: string;
|
|
2709
|
-
}
|
|
2710
|
-
|
|
2711
|
-
export declare type WorkbenchExtensionMenuWhenBuilder = (contribution: ExtensionMenuContribution) => string | undefined;
|
|
2712
|
-
|
|
2713
|
-
export { WorkbenchExtensionMetadata }
|
|
2714
|
-
|
|
2715
|
-
declare interface WorkbenchExtensionRefreshEvent extends FileRendererRefreshEnvelope {
|
|
2716
|
-
id: string;
|
|
2717
|
-
}
|
|
2718
|
-
|
|
2719
|
-
export declare type WorkbenchExtensionRendererKind = "tree" | "file" | "controls" | "dataTable" | "kanban";
|
|
2720
|
-
|
|
2721
|
-
declare type WorkbenchExtensionStringResolver = (value: Localizable<string> | undefined, extensionId: string) => string;
|
|
2722
|
-
|
|
2723
|
-
declare type WorkbenchExtensionTreeRendererRecord = z.infer<typeof extensionTreeRendererRecordSchema>;
|
|
2724
|
-
|
|
2725
|
-
declare interface WorkbenchFileIconThemeStoreState {
|
|
2726
|
-
themes: readonly FileIconThemePreferenceOption[];
|
|
2727
|
-
}
|
|
2728
|
-
|
|
2729
|
-
declare type WorkbenchFocusChangeListener = (region: WorkbenchFocusRegionId | undefined) => void;
|
|
2730
|
-
|
|
2731
|
-
declare interface WorkbenchFocusController {
|
|
2732
|
-
store: WorkbenchStore<WorkbenchFocusState>;
|
|
2733
|
-
setActiveRegion(region: WorkbenchFocusRegionId): void;
|
|
2734
|
-
clearFocus(): void;
|
|
2735
|
-
getActiveRegion(): WorkbenchFocusRegionId | undefined;
|
|
2736
|
-
onDidChange(listener: WorkbenchFocusChangeListener): Disposable_2;
|
|
2737
|
-
}
|
|
2738
|
-
|
|
2739
|
-
declare type WorkbenchFocusRegionId = (typeof workbenchFocusRegions)[number];
|
|
2740
|
-
|
|
2741
|
-
declare const workbenchFocusRegions: readonly ["activity", "sidenav", "main", "secondary", "side", "status"];
|
|
2742
|
-
|
|
2743
|
-
declare interface WorkbenchFocusState {
|
|
2744
|
-
activeRegion: WorkbenchFocusRegionId | undefined;
|
|
2745
|
-
}
|
|
2746
|
-
|
|
2747
|
-
declare type WorkbenchHierarchyNode = ResourceRef | WorkbenchViewHierarchyNode;
|
|
2748
|
-
|
|
2749
|
-
declare interface WorkbenchHost {
|
|
2750
|
-
getSnapshot(): WorkbenchSnapshot;
|
|
2751
|
-
restoreSnapshot(snapshot: WorkbenchSnapshot): void;
|
|
2752
|
-
setPersistenceScope(scope: string | undefined, input?: {
|
|
2753
|
-
carryRegions?: readonly WorkbenchRegion[];
|
|
2754
|
-
}): void;
|
|
2755
|
-
getPersistenceScope(): string | undefined;
|
|
2756
|
-
}
|
|
2757
|
-
|
|
2758
|
-
declare interface WorkbenchLayout {
|
|
2759
|
-
regions: Record<WorkbenchRegion, WorkbenchRegionState>;
|
|
2760
|
-
locationSubPanelSelections?: Record<string, Partial<Record<WorkbenchPanelRegion, string>>>;
|
|
2761
|
-
activeWidgetId?: string;
|
|
2762
|
-
activeLocationWidgetId?: string;
|
|
2763
|
-
activeResourceKey?: string;
|
|
2764
|
-
}
|
|
2765
|
-
|
|
2766
|
-
declare type WorkbenchLayoutModel = LayoutModel & MenuRegistry;
|
|
2767
|
-
|
|
2768
|
-
declare interface WorkbenchLayoutStoreState {
|
|
2769
|
-
layout: WorkbenchLayout;
|
|
2770
|
-
widgets: Record<string, RegisteredWidgetContribution>;
|
|
2771
|
-
placeholders: Partial<Record<WorkbenchRegion, RegisteredPlaceholderContribution>>;
|
|
2772
|
-
}
|
|
2773
|
-
|
|
2774
|
-
declare interface WorkbenchLocationEligibility {
|
|
2775
|
-
modeIds?: string[];
|
|
2776
|
-
resourceKinds?: string[];
|
|
2777
|
-
resourceIds?: string[];
|
|
2778
|
-
canOpen?(resource: ResourceRef): boolean;
|
|
2779
|
-
canOpenLocation?(location: {
|
|
2780
|
-
resource?: ResourceRef;
|
|
2781
|
-
viewId?: string;
|
|
2782
|
-
}): boolean;
|
|
2783
|
-
}
|
|
2784
|
-
|
|
2785
|
-
declare type WorkbenchModeActivationContext = WorkbenchCoreContributionContext;
|
|
2786
|
-
|
|
2787
|
-
declare type WorkbenchModeActivationResult = Disposable_2 | readonly Disposable_2[] | undefined;
|
|
2788
|
-
|
|
2789
|
-
declare interface WorkbenchModeAddablePanel {
|
|
2790
|
-
panelId: string;
|
|
2791
|
-
region: WorkbenchPanelRegion;
|
|
2792
|
-
allowedRegions?: readonly WorkbenchRegion[];
|
|
2793
|
-
pinned?: boolean;
|
|
2794
|
-
}
|
|
2795
|
-
|
|
2796
|
-
declare interface WorkbenchModeAddablePanelContext {
|
|
2797
|
-
layout: WorkbenchLayout;
|
|
2798
|
-
resource?: ResourceRef;
|
|
2799
|
-
}
|
|
2800
|
-
|
|
2801
|
-
declare type WorkbenchModeChangeListener = () => void;
|
|
2802
|
-
|
|
2803
|
-
declare interface WorkbenchModeContribution {
|
|
2804
|
-
id: string;
|
|
2805
|
-
label?: string;
|
|
2806
|
-
defaultTheme?: string;
|
|
2807
|
-
floatingPanels?: "visible" | "hidden";
|
|
2808
|
-
chrome?: Partial<Record<"nav" | "sidenav" | "activity" | "status", string | false>>;
|
|
2809
|
-
panels?: readonly WorkbenchPanelRegion[];
|
|
2810
|
-
/** Region-level layout policy while this mode is active. */
|
|
2811
|
-
regionSettings?: Partial<Record<WorkbenchRegion, WorkbenchRegionSettings>>;
|
|
2812
|
-
resourceKinds?: readonly string[];
|
|
2813
|
-
defaultResource?: ResourceRef | (() => Promise<ResourceRef | undefined> | ResourceRef | undefined);
|
|
2814
|
-
listAddablePanels?(context: WorkbenchModeAddablePanelContext): readonly WorkbenchModeAddablePanel[];
|
|
2815
|
-
activate(ctx: WorkbenchModeActivationContext): WorkbenchModeActivationResult;
|
|
2816
|
-
seed?(ctx: WorkbenchModeActivationContext): void;
|
|
2817
|
-
enter?(ctx: WorkbenchModeActivationContext): WorkbenchModeActivationResult;
|
|
2818
|
-
reconcile?(ctx: WorkbenchModeActivationContext): void;
|
|
2819
|
-
}
|
|
2820
|
-
|
|
2821
|
-
declare interface WorkbenchModePlacementContribution extends WorkbenchPlacementPresentation {
|
|
2822
|
-
readonly id: string;
|
|
2823
|
-
readonly ref: PlacementRef;
|
|
2824
|
-
readonly modeId: string;
|
|
2825
|
-
readonly item: WorkbenchOwnedPlacementItem;
|
|
2826
|
-
readonly region: DockedWorkbenchRegion;
|
|
2827
|
-
readonly order?: number;
|
|
2828
|
-
readonly movableTo?: readonly DockedWorkbenchRegion[];
|
|
2829
|
-
}
|
|
2830
|
-
|
|
2831
|
-
declare interface WorkbenchModePlacementRegistry {
|
|
2832
|
-
registerPlacement(placement: WorkbenchModePlacementContribution): Disposable_2;
|
|
2833
|
-
getPlacement(ref: PlacementRef): WorkbenchModePlacementContribution | undefined;
|
|
2834
|
-
listPlacements(modeId?: string): WorkbenchModePlacementContribution[];
|
|
2835
|
-
openPlacement(input: OpenModePlacementTarget): PlacementIdentity;
|
|
2836
|
-
updatePlacement(identity: PlacementIdentity, input: {
|
|
2837
|
-
resource?: ResourceRef;
|
|
2838
|
-
title?: string;
|
|
2839
|
-
open?: PageOpenIntent;
|
|
2840
|
-
}): void;
|
|
2841
|
-
closePlacement(identity: PlacementIdentity): void;
|
|
2842
|
-
resolvePlacements(modeId: string, context?: OwnedPlacementLocationContext): readonly ResolvedOwnedPlacement<WorkbenchWidgetPlacement>[];
|
|
2843
|
-
onDidChange(listener: () => void): Disposable_2;
|
|
2844
|
-
}
|
|
2845
|
-
|
|
2846
|
-
declare interface WorkbenchModeRegistry {
|
|
2847
|
-
store: WorkbenchStore<WorkbenchModeStoreState>;
|
|
2848
|
-
dispose(): void;
|
|
2849
|
-
registerMode(mode: WorkbenchModeContribution): Disposable_2;
|
|
2850
|
-
getMode(id: string): WorkbenchModeContribution | undefined;
|
|
2851
|
-
listModes(): WorkbenchModeContribution[];
|
|
2852
|
-
getActiveModeId(): string | undefined;
|
|
2853
|
-
isTransitioning(): boolean;
|
|
2854
|
-
setActiveMode(id: string | undefined, input?: {
|
|
2855
|
-
deferSeed?: boolean;
|
|
2856
|
-
}): void;
|
|
2857
|
-
seedActiveMode(): void;
|
|
2858
|
-
onDidChangeActive(listener: WorkbenchModeChangeListener): Disposable_2;
|
|
2859
|
-
}
|
|
2860
|
-
|
|
2861
|
-
declare interface WorkbenchModeStoreState {
|
|
2862
|
-
modes: Record<string, WorkbenchModeContribution>;
|
|
2863
|
-
activeModeId: string | undefined;
|
|
2864
|
-
}
|
|
2865
|
-
|
|
2866
|
-
declare type WorkbenchModuleActivationResult = Disposable_2 | readonly Disposable_2[] | undefined;
|
|
2867
|
-
|
|
2868
|
-
declare type WorkbenchModuleContext = WorkbenchCoreContributionContext;
|
|
2869
|
-
|
|
2870
|
-
declare interface WorkbenchModuleContribution {
|
|
2871
|
-
id: string;
|
|
2872
|
-
source?: ContributionSource;
|
|
2873
|
-
ownerId?: string;
|
|
2874
|
-
activate(ctx: WorkbenchModuleContributionContext): WorkbenchModuleActivationResult;
|
|
2875
|
-
}
|
|
2876
|
-
|
|
2877
|
-
declare type WorkbenchModuleContributionContext = WorkbenchModuleContext;
|
|
2878
|
-
|
|
2879
|
-
declare type WorkbenchModuleLayoutModel = Omit<WorkbenchLayoutModel, "registerPanel" | "registerWidget" | "openPanel" | "openWidget" | "registerPlaceholder" | "registerPanelMenu">;
|
|
2880
|
-
|
|
2881
|
-
declare interface WorkbenchNotification {
|
|
2882
|
-
id?: string;
|
|
2883
|
-
level: WorkbenchNotificationLevel;
|
|
2884
|
-
title: string;
|
|
2885
|
-
message?: string;
|
|
2886
|
-
createdAt?: string;
|
|
2887
|
-
resource?: ResourceRef;
|
|
2888
|
-
actions?: WorkbenchNotificationAction[];
|
|
2889
|
-
metadata?: Record<string, unknown>;
|
|
2890
|
-
}
|
|
2891
|
-
|
|
2892
|
-
declare interface WorkbenchNotificationAction {
|
|
2893
|
-
commandId: string;
|
|
2894
|
-
title: string;
|
|
2895
|
-
args?: unknown;
|
|
2896
|
-
}
|
|
2897
|
-
|
|
2898
|
-
declare type WorkbenchNotificationEvent = {
|
|
2899
|
-
type: "show";
|
|
2900
|
-
id: string;
|
|
2901
|
-
notification: RegisteredWorkbenchNotification;
|
|
2902
|
-
} | {
|
|
2903
|
-
type: "dismiss";
|
|
2904
|
-
id: string;
|
|
2905
|
-
};
|
|
2906
|
-
|
|
2907
|
-
declare type WorkbenchNotificationLevel = "info" | "success" | "warning" | "error";
|
|
2908
|
-
|
|
2909
|
-
declare type WorkbenchNotificationListener = (event: WorkbenchNotificationEvent) => void;
|
|
2910
|
-
|
|
2911
|
-
declare interface WorkbenchNotificationStoreState {
|
|
2912
|
-
notifications: Record<string, RegisteredWorkbenchNotification>;
|
|
2913
|
-
}
|
|
2914
|
-
|
|
2915
|
-
declare interface WorkbenchOverlayContribution extends Omit<WorkbenchPlacementPresentation, "mountStrategy"> {
|
|
2916
|
-
id: string;
|
|
2917
|
-
viewId: string;
|
|
2918
|
-
closable?: boolean;
|
|
2919
|
-
}
|
|
2920
|
-
|
|
2921
|
-
declare interface WorkbenchOverlayRegistry {
|
|
2922
|
-
registerOverlay(overlay: WorkbenchOverlayContribution): Disposable_2;
|
|
2923
|
-
getOverlay(id: string): WorkbenchOverlayContribution | undefined;
|
|
2924
|
-
listOverlays(): WorkbenchOverlayContribution[];
|
|
2925
|
-
openOverlay(id: string, input?: OpenWorkbenchOverlayInput): string;
|
|
2926
|
-
closeOverlay(instanceId: string): void;
|
|
2927
|
-
}
|
|
2928
|
-
|
|
2929
|
-
declare type WorkbenchOwnedPlacementItem = PlacementItem;
|
|
2930
|
-
|
|
2931
|
-
declare interface WorkbenchPageContribution {
|
|
2932
|
-
id: string;
|
|
2933
|
-
ref: PageRef;
|
|
2934
|
-
title?: Localizable<string>;
|
|
2935
|
-
icon?: string;
|
|
2936
|
-
path: string;
|
|
2937
|
-
modeId: string;
|
|
2938
|
-
parentId?: string;
|
|
2939
|
-
resource?: ResourceConstraint;
|
|
2940
|
-
main: WorkbenchPageMain;
|
|
2941
|
-
slots: readonly WorkbenchPageSlot[];
|
|
2942
|
-
}
|
|
2943
|
-
|
|
2944
|
-
declare interface WorkbenchPageLocationController {
|
|
2945
|
-
historyStore: WorkbenchStore<WorkbenchPageLocationHistoryState>;
|
|
2946
|
-
setProject(projectId: string): void;
|
|
2947
|
-
clearProject(): void;
|
|
2948
|
-
isCurrentProjectUrl(projectId: string): boolean;
|
|
2949
|
-
hasCurrentPageUrl(projectId: string): boolean;
|
|
2950
|
-
boot(projectId: string): WorkbenchPageNavigationResult;
|
|
2951
|
-
switchProject(projectId: string): WorkbenchPageNavigationResult;
|
|
2952
|
-
navigate(target: NavigationTargetPage_2): WorkbenchPageNavigationResult;
|
|
2953
|
-
replay(location: PageLocation): WorkbenchPageNavigationResult;
|
|
2954
|
-
navigateToParent(): WorkbenchPageNavigationResult;
|
|
2955
|
-
closePlacement(identity: PlacementIdentity): WorkbenchPageNavigationResult;
|
|
2956
|
-
goBack(): void;
|
|
2957
|
-
goForward(): void;
|
|
2958
|
-
dispose(): void;
|
|
2959
|
-
}
|
|
2960
|
-
|
|
2961
|
-
declare interface WorkbenchPageLocationDiagnostic {
|
|
2962
|
-
code: "page-location-unresolved";
|
|
2963
|
-
source: "boot" | "history" | "navigation" | "project-switch";
|
|
2964
|
-
message: string;
|
|
2965
|
-
}
|
|
2966
|
-
|
|
2967
|
-
declare interface WorkbenchPageLocationHistoryState {
|
|
2968
|
-
canGoBack: boolean;
|
|
2969
|
-
canGoForward: boolean;
|
|
2970
|
-
}
|
|
2971
|
-
|
|
2972
|
-
declare type WorkbenchPageMain = PageMain extends infer Main ? Main extends PageMain ? Omit<Main, "tab"> & {
|
|
2973
|
-
readonly tab?: WorkbenchPlacementPresentation["tab"];
|
|
2974
|
-
} : never : never;
|
|
2975
|
-
|
|
2976
|
-
declare type WorkbenchPageNavigationResult = {
|
|
2977
|
-
ok: true;
|
|
2978
|
-
location: PageLocation;
|
|
2979
|
-
} | {
|
|
2980
|
-
ok: false;
|
|
2981
|
-
diagnostic: WorkbenchPageLocationDiagnostic;
|
|
2982
|
-
};
|
|
2983
|
-
|
|
2984
|
-
declare interface WorkbenchPageRegistry<Value> {
|
|
2985
|
-
store: WorkbenchStore<WorkbenchPageRegistryStoreState<Value>>;
|
|
2986
|
-
registerPage(page: WorkbenchPageContribution): {
|
|
2987
|
-
dispose(): void;
|
|
2988
|
-
};
|
|
2989
|
-
getPage(pageId: string): WorkbenchPageContribution | undefined;
|
|
2990
|
-
listPages(): WorkbenchPageContribution[];
|
|
2991
|
-
pinPlacement(identity: PlacementIdentity): void;
|
|
2992
|
-
openSlot(input: WorkbenchPageSlotOpenInput): void;
|
|
2993
|
-
}
|
|
2994
|
-
|
|
2995
|
-
declare interface WorkbenchPageRegistryStoreState<Value> {
|
|
2996
|
-
pages: Readonly<Record<string, WorkbenchPageContribution>>;
|
|
2997
|
-
pageStates: Readonly<Record<string, WorkbenchPageRuntimeState>>;
|
|
2998
|
-
projectId?: string;
|
|
2999
|
-
location?: PageLocation;
|
|
3000
|
-
activeModeId?: string;
|
|
3001
|
-
activePageId?: string;
|
|
3002
|
-
placements: readonly ResolvedOwnedPlacement<Value>[];
|
|
3003
|
-
reconciliation: OwnedPlacementReconciliation<Value>;
|
|
3004
|
-
}
|
|
3005
|
-
|
|
3006
|
-
declare interface WorkbenchPageRuntimeState {
|
|
3007
|
-
openStaticSlotIds: readonly string[];
|
|
3008
|
-
resourceInstances: Readonly<Record<string, readonly WorkbenchPageSlotInstance[]>>;
|
|
3009
|
-
activePrimaryInstanceKey?: string;
|
|
3010
|
-
}
|
|
3011
|
-
|
|
3012
|
-
declare interface WorkbenchPageSlot extends Omit<PageSlot, "tab"> {
|
|
3013
|
-
readonly tab?: WorkbenchPlacementPresentation["tab"];
|
|
3014
|
-
}
|
|
3015
|
-
|
|
3016
|
-
declare interface WorkbenchPageSlotInstance {
|
|
3017
|
-
instanceKey: string;
|
|
3018
|
-
resource: ResourceRef;
|
|
3019
|
-
section?: FileRendererSectionTarget;
|
|
3020
|
-
open?: PageOpenIntent;
|
|
3021
|
-
}
|
|
3022
|
-
|
|
3023
|
-
declare interface WorkbenchPageSlotOpenInput {
|
|
3024
|
-
pageId: string;
|
|
3025
|
-
slotId: string;
|
|
3026
|
-
resource?: ResourceRef;
|
|
3027
|
-
open?: PageOpenIntent;
|
|
3028
|
-
}
|
|
3029
|
-
|
|
3030
|
-
declare interface WorkbenchPanelContribution {
|
|
3031
|
-
id: string;
|
|
3032
|
-
title: string;
|
|
3033
|
-
icon?: string;
|
|
3034
|
-
region: WorkbenchRegion;
|
|
3035
|
-
fallbackRegion?: WorkbenchRegion;
|
|
3036
|
-
rendererId: string;
|
|
3037
|
-
singleton?: boolean;
|
|
3038
|
-
reuse?: WorkbenchPanelReusePolicy;
|
|
3039
|
-
mountStrategy?: WorkbenchPanelMountStrategy;
|
|
3040
|
-
closable?: boolean;
|
|
3041
|
-
hiddenByDefault?: boolean;
|
|
3042
|
-
regionSize?: WorkbenchRegionSize;
|
|
3043
|
-
regionCollapsible?: boolean;
|
|
3044
|
-
headerBorderBottom?: boolean;
|
|
3045
|
-
resourceKinds?: string[];
|
|
3046
|
-
eligibleLocations?: WorkbenchLocationEligibility;
|
|
3047
|
-
priority?: number;
|
|
3048
|
-
openCommand?: WorkbenchCommandTarget;
|
|
3049
|
-
tab?: WorkbenchPanelTab;
|
|
3050
|
-
config?: unknown;
|
|
3051
|
-
canOpen?(resource: ResourceRef): boolean;
|
|
3052
|
-
ownerId?: string;
|
|
3053
|
-
source?: ContributionSource;
|
|
3054
|
-
panelMenus?: readonly WorkbenchPanelMenuDefinition[];
|
|
3055
|
-
}
|
|
3056
|
-
|
|
3057
|
-
declare interface WorkbenchPanelInstance {
|
|
3058
|
-
instanceId: string;
|
|
3059
|
-
panelId: string;
|
|
3060
|
-
placementIdentity?: PlacementIdentity;
|
|
3061
|
-
viewId?: string;
|
|
3062
|
-
ownerId?: string;
|
|
3063
|
-
source?: ContributionSource;
|
|
3064
|
-
resource?: ResourceRef;
|
|
3065
|
-
section?: FileRendererSectionTarget;
|
|
3066
|
-
resourceKey?: string;
|
|
3067
|
-
ownerResourceKey?: string;
|
|
3068
|
-
title?: string;
|
|
3069
|
-
pinned?: boolean;
|
|
3070
|
-
closable: boolean;
|
|
3071
|
-
mountStrategy?: WorkbenchPanelMountStrategy;
|
|
3072
|
-
hiddenByDefault?: boolean;
|
|
3073
|
-
tabRetention?: WorkbenchTabRetention;
|
|
3074
|
-
tab?: WorkbenchPanelTab;
|
|
3075
|
-
}
|
|
3076
|
-
|
|
3077
|
-
declare type WorkbenchPanelMenuContribution = Omit<WidgetContribution, "region" | "fallbackRegion"> & {
|
|
3078
|
-
region: WorkbenchPanelMenuRegion;
|
|
3079
|
-
fallbackRegion?: WorkbenchPanelMenuRegion;
|
|
3080
|
-
};
|
|
3081
|
-
|
|
3082
|
-
declare interface WorkbenchPanelMenuDefinition {
|
|
3083
|
-
id: string;
|
|
3084
|
-
title: string;
|
|
3085
|
-
icon?: string;
|
|
3086
|
-
side: WorkbenchPanelMenuSide;
|
|
3087
|
-
singleton?: boolean;
|
|
3088
|
-
reuse?: WorkbenchPanelReusePolicy;
|
|
3089
|
-
mountStrategy?: WorkbenchPanelMountStrategy;
|
|
3090
|
-
hiddenByDefault?: boolean;
|
|
3091
|
-
regionSize?: WorkbenchRegionSize;
|
|
3092
|
-
regionCollapsible?: boolean;
|
|
3093
|
-
headerBorderBottom?: boolean;
|
|
3094
|
-
rendererId: string;
|
|
3095
|
-
priority?: number;
|
|
3096
|
-
config?: unknown;
|
|
3097
|
-
}
|
|
3098
|
-
|
|
3099
|
-
declare type WorkbenchPanelMenuOwner = {
|
|
3100
|
-
level: "panel";
|
|
3101
|
-
contributionId?: string;
|
|
3102
|
-
} | {
|
|
3103
|
-
level: "sub-panel";
|
|
3104
|
-
contributionId: string;
|
|
3105
|
-
};
|
|
3106
|
-
|
|
3107
|
-
declare type WorkbenchPanelMenuRegion = (typeof workbenchPanelMenuRegions)[WorkbenchPanelRegion][WorkbenchPanelMenuSide];
|
|
3108
|
-
|
|
3109
|
-
declare const workbenchPanelMenuRegions: {
|
|
3110
|
-
readonly main: {
|
|
3111
|
-
readonly left: "main-left-menu";
|
|
3112
|
-
readonly right: "main-right-menu";
|
|
3113
|
-
};
|
|
3114
|
-
readonly secondary: {
|
|
3115
|
-
readonly left: "secondary-left-menu";
|
|
3116
|
-
readonly right: "secondary-right-menu";
|
|
3117
|
-
};
|
|
3118
|
-
readonly side: {
|
|
3119
|
-
readonly left: "side-left-menu";
|
|
3120
|
-
readonly right: "side-right-menu";
|
|
3121
|
-
};
|
|
3122
|
-
};
|
|
3123
|
-
|
|
3124
|
-
declare type WorkbenchPanelMenuSide = "left" | "right";
|
|
3125
|
-
|
|
3126
|
-
declare interface WorkbenchPanelMenuState {
|
|
3127
|
-
openByMenuId: Record<string, boolean>;
|
|
3128
|
-
}
|
|
3129
|
-
|
|
3130
|
-
declare type WorkbenchPanelMenuStateChangeListener = (state: WorkbenchPanelMenuState) => void;
|
|
3131
|
-
|
|
3132
|
-
declare interface WorkbenchPanelMenuStateController {
|
|
3133
|
-
store: WorkbenchStore<WorkbenchPanelMenuState>;
|
|
3134
|
-
isOpen(menuId: string): boolean;
|
|
3135
|
-
setOpen(menuId: string, open: boolean): void;
|
|
3136
|
-
toggle(menuId: string): void;
|
|
3137
|
-
setPersistenceScope(scope: string | undefined): void;
|
|
3138
|
-
getPersistenceScope(): string | undefined;
|
|
3139
|
-
onDidChange(listener: WorkbenchPanelMenuStateChangeListener): Disposable_2;
|
|
3140
|
-
}
|
|
3141
|
-
|
|
3142
|
-
declare type WorkbenchPanelMountStrategy = WidgetMountStrategy;
|
|
3143
|
-
|
|
3144
|
-
declare type WorkbenchPanelOpenStrategy = {
|
|
3145
|
-
kind: "persistent";
|
|
3146
|
-
position?: WorkbenchTabPosition;
|
|
3147
|
-
} | {
|
|
3148
|
-
kind: "replace-active";
|
|
3149
|
-
} | {
|
|
3150
|
-
kind: "replace-panel";
|
|
3151
|
-
instanceId: string;
|
|
3152
|
-
retention?: WorkbenchTabRetention;
|
|
3153
|
-
} | {
|
|
3154
|
-
kind: "preview";
|
|
3155
|
-
position?: WorkbenchTabPosition;
|
|
3156
|
-
};
|
|
3157
|
-
|
|
3158
|
-
declare type WorkbenchPanelRegion = (typeof workbenchPanelRegions)[number];
|
|
3159
|
-
|
|
3160
|
-
declare const workbenchPanelRegions: readonly ["main", "secondary", "side"];
|
|
3161
|
-
|
|
3162
|
-
declare interface WorkbenchPanelRenderInput {
|
|
3163
|
-
workbench: WorkbenchCore;
|
|
3164
|
-
panel: WorkbenchPanelContribution | PlaceholderContribution | RegisteredPlaceholderContribution;
|
|
3165
|
-
instance: WorkbenchPanelInstance;
|
|
3166
|
-
refresh: () => void;
|
|
3167
|
-
}
|
|
3168
|
-
|
|
3169
|
-
declare type WorkbenchPanelReusePolicy = WidgetReusePolicy;
|
|
3170
|
-
|
|
3171
|
-
declare type WorkbenchPanelTab = WorkbenchWidgetTab;
|
|
3172
|
-
|
|
3173
|
-
declare interface WorkbenchPlaceholderContribution {
|
|
3174
|
-
id: string;
|
|
3175
|
-
viewId: string;
|
|
3176
|
-
title?: string;
|
|
3177
|
-
region: WorkbenchRegion;
|
|
3178
|
-
regionSize?: WorkbenchRegionSize;
|
|
3179
|
-
regionCollapsible?: boolean;
|
|
3180
|
-
config?: unknown;
|
|
3181
|
-
}
|
|
3182
|
-
|
|
3183
|
-
declare interface WorkbenchPlaceholderRegistry {
|
|
3184
|
-
registerPlaceholder(placeholder: WorkbenchPlaceholderContribution, metadata?: ContributionMetadata): Disposable_2;
|
|
3185
|
-
}
|
|
3186
|
-
|
|
3187
|
-
declare interface WorkbenchPlacementPresentation {
|
|
3188
|
-
mountStrategy?: WidgetMountStrategy;
|
|
3189
|
-
hiddenByDefault?: boolean;
|
|
3190
|
-
headerBorderBottom?: boolean;
|
|
3191
|
-
tab?: WorkbenchPanelTab;
|
|
3192
|
-
config?: unknown;
|
|
3193
|
-
}
|
|
3194
|
-
|
|
3195
|
-
declare interface WorkbenchReactViewBody {
|
|
3196
|
-
kind: "react";
|
|
3197
|
-
render: WorkbenchRendererRegistration["render"];
|
|
3198
|
-
}
|
|
3199
|
-
|
|
3200
|
-
declare type WorkbenchRegion = (typeof workbenchRegions)[number];
|
|
3201
|
-
|
|
3202
|
-
declare const workbenchRegions: readonly ["nav", "activity", "sidenav", "main-header", "main-left-menu", "main", "main-right-menu", "secondary-header", "secondary-left-menu", "secondary", "secondary-right-menu", "side-header", "side-left-menu", "side", "side-right-menu", "status", "overlay"];
|
|
3203
|
-
|
|
3204
|
-
/** Region-level layout policy owned by the active mode or the host, never by a placement. */
|
|
3205
|
-
declare type WorkbenchRegionSettings = ModeRegionSettings;
|
|
3206
|
-
|
|
3207
|
-
declare interface WorkbenchRegionSize {
|
|
3208
|
-
defaultPx?: number;
|
|
3209
|
-
minPx?: number;
|
|
3210
|
-
maxPx?: number;
|
|
3211
|
-
}
|
|
3212
|
-
|
|
3213
|
-
declare interface WorkbenchRegionState {
|
|
3214
|
-
id: WorkbenchRegion;
|
|
3215
|
-
visible: boolean;
|
|
3216
|
-
size?: number;
|
|
3217
|
-
widgets: WorkbenchWidgetPlacement[];
|
|
3218
|
-
activeWidgetId?: string;
|
|
3219
|
-
}
|
|
3220
|
-
|
|
3221
|
-
declare interface WorkbenchRendererRegistration {
|
|
3222
|
-
id: string;
|
|
3223
|
-
render: (input: WorkbenchPanelRenderInput) => unknown;
|
|
3224
|
-
}
|
|
3225
|
-
|
|
3226
|
-
declare interface WorkbenchShellController {
|
|
3227
|
-
getRegionState(region: WorkbenchRegion): WorkbenchShellRegionState;
|
|
3228
|
-
setRegionOpen(region: WorkbenchShellOpenRegion, open: boolean): void;
|
|
3229
|
-
setRegionSize(region: WorkbenchRegion, size: number): void;
|
|
3230
|
-
getSidePanelPresentation(): WorkbenchSidePanelPresentation;
|
|
3231
|
-
setSidePanelPresentation(presentation: WorkbenchSidePanelPresentation): void;
|
|
3232
|
-
onDidChange(listener: () => void): Disposable_2;
|
|
3233
|
-
}
|
|
3234
|
-
|
|
3235
|
-
declare type WorkbenchShellOpenRegion = "sidenav" | "secondary" | "side";
|
|
3236
|
-
|
|
3237
|
-
declare interface WorkbenchShellPlacementContribution extends WorkbenchPlacementPresentation {
|
|
3238
|
-
readonly id: string;
|
|
3239
|
-
readonly item: WorkbenchOwnedPlacementItem;
|
|
3240
|
-
readonly region: WorkbenchRegion;
|
|
3241
|
-
readonly order?: number;
|
|
3242
|
-
}
|
|
3243
|
-
|
|
3244
|
-
declare interface WorkbenchShellPlacementRegistry {
|
|
3245
|
-
registerPlacement(placement: WorkbenchShellPlacementContribution): Disposable_2;
|
|
3246
|
-
getPlacement(placementId: string): WorkbenchShellPlacementContribution | undefined;
|
|
3247
|
-
listPlacements(): WorkbenchShellPlacementContribution[];
|
|
3248
|
-
openPlacement(input: OpenWorkbenchShellPlacementInput): PlacementIdentity;
|
|
3249
|
-
updatePlacement(identity: PlacementIdentity, input: {
|
|
3250
|
-
resource?: ResourceRef;
|
|
3251
|
-
title?: string;
|
|
3252
|
-
open?: PageOpenIntent;
|
|
3253
|
-
}): void;
|
|
3254
|
-
closePlacement(identity: PlacementIdentity): void;
|
|
3255
|
-
resolvePlacements(context?: OwnedPlacementLocationContext): readonly ResolvedOwnedPlacement<WorkbenchWidgetPlacement>[];
|
|
3256
|
-
onDidChange(listener: () => void): Disposable_2;
|
|
3257
|
-
}
|
|
3258
|
-
|
|
3259
|
-
declare interface WorkbenchShellRegionState {
|
|
3260
|
-
open: boolean;
|
|
3261
|
-
size?: number;
|
|
3262
|
-
}
|
|
3263
|
-
|
|
3264
|
-
declare type WorkbenchSidePanelChangeListener = (mode: WorkbenchSidePanelMode) => void;
|
|
3265
|
-
|
|
3266
|
-
declare interface WorkbenchSidePanelController {
|
|
3267
|
-
canFloat(): boolean;
|
|
3268
|
-
store: WorkbenchStore<WorkbenchSidePanelState>;
|
|
3269
|
-
getMode(): WorkbenchSidePanelMode;
|
|
3270
|
-
setMode(mode: WorkbenchSidePanelMode): void;
|
|
3271
|
-
onDidChange(listener: WorkbenchSidePanelChangeListener): Disposable_2;
|
|
3272
|
-
}
|
|
3273
|
-
|
|
3274
|
-
declare type WorkbenchSidePanelMode = "floating" | "closed" | "attached";
|
|
3275
|
-
|
|
3276
|
-
declare type WorkbenchSidePanelPresentation = WorkbenchSidePanelMode;
|
|
3277
|
-
|
|
3278
|
-
declare interface WorkbenchSidePanelState {
|
|
3279
|
-
mode: WorkbenchSidePanelMode;
|
|
3280
|
-
}
|
|
3281
|
-
|
|
3282
|
-
declare interface WorkbenchSnapshot {
|
|
3283
|
-
layout: WorkbenchLayout;
|
|
3284
|
-
}
|
|
3285
|
-
|
|
3286
|
-
declare interface WorkbenchStatusBarItem {
|
|
3287
|
-
id: string;
|
|
3288
|
-
viewId: string;
|
|
3289
|
-
slot: WorkbenchStatusBarSlot;
|
|
3290
|
-
order?: number;
|
|
3291
|
-
isVisible?(): boolean;
|
|
3292
|
-
}
|
|
3293
|
-
|
|
3294
|
-
declare interface WorkbenchStatusBarRegistry {
|
|
3295
|
-
store: WorkbenchStore<WorkbenchStatusBarRegistryState>;
|
|
3296
|
-
registerItem(item: WorkbenchStatusBarItem): Disposable_2;
|
|
3297
|
-
getItem(id: string): WorkbenchStatusBarItem | undefined;
|
|
3298
|
-
listItems(): WorkbenchStatusBarItem[];
|
|
3299
|
-
listVisibleItems(slot?: WorkbenchStatusBarSlot): WorkbenchStatusBarItem[];
|
|
3300
|
-
}
|
|
3301
|
-
|
|
3302
|
-
declare interface WorkbenchStatusBarRegistryState {
|
|
3303
|
-
items: Record<string, WorkbenchStatusBarItem>;
|
|
3304
|
-
}
|
|
3305
|
-
|
|
3306
|
-
declare type WorkbenchStatusBarSlot = "leading" | "trailing";
|
|
3307
|
-
|
|
3308
|
-
declare interface WorkbenchStatusRegistry {
|
|
3309
|
-
store: WorkbenchStore<WorkbenchStatusRegistryState>;
|
|
3310
|
-
registerStatusSet(contribution: WorkbenchStatusSetContribution, metadata?: ContributionMetadata): Disposable_2;
|
|
3311
|
-
getStatusSet(id: string): RegisteredWorkbenchStatusSet | undefined;
|
|
3312
|
-
listStatusSets(): RegisteredWorkbenchStatusSet[];
|
|
3313
|
-
getStatuses(id: string): readonly WorkflowStatus[] | undefined;
|
|
3314
|
-
load(id: string): Promise<readonly WorkflowStatus[]>;
|
|
3315
|
-
query(id: string): Promise<readonly WorkflowStatus[]>;
|
|
3316
|
-
save(id: string, statuses: readonly WorkflowStatus[]): Promise<readonly WorkflowStatus[]>;
|
|
3317
|
-
}
|
|
3318
|
-
|
|
3319
|
-
declare interface WorkbenchStatusRegistryState {
|
|
3320
|
-
statusSets: Record<string, RegisteredWorkbenchStatusSet>;
|
|
3321
|
-
values: Record<string, readonly WorkflowStatus[]>;
|
|
3322
|
-
}
|
|
3323
|
-
|
|
3324
|
-
declare interface WorkbenchStatusSetContribution {
|
|
3325
|
-
id: string;
|
|
3326
|
-
title: string;
|
|
3327
|
-
actions?: readonly WorkflowStatusAction[];
|
|
3328
|
-
query(): Promise<readonly WorkflowStatus[]> | readonly WorkflowStatus[];
|
|
3329
|
-
save?(statuses: readonly WorkflowStatus[]): Promise<readonly WorkflowStatus[]> | readonly WorkflowStatus[];
|
|
3330
|
-
}
|
|
3331
|
-
|
|
3332
|
-
declare interface WorkbenchStore<TState> {
|
|
3333
|
-
getState(): TState;
|
|
3334
|
-
getInitialState(): TState;
|
|
3335
|
-
subscribe(listener: WorkbenchStoreListener<TState>): () => void;
|
|
3336
|
-
subscribeSelector<TValue>(selector: WorkbenchStoreSelector<TState, TValue>, listener: WorkbenchStoreSelectorListener<TValue>, options?: {
|
|
3337
|
-
equalityFn?: (left: TValue, right: TValue) => boolean;
|
|
3338
|
-
fireImmediately?: boolean;
|
|
3339
|
-
}): () => void;
|
|
3340
|
-
}
|
|
3341
|
-
|
|
3342
|
-
declare type WorkbenchStoreListener<TState> = (state: TState, previousState: TState) => void;
|
|
3343
|
-
|
|
3344
|
-
declare type WorkbenchStoreSelector<TState, TValue> = (state: TState) => TValue;
|
|
3345
|
-
|
|
3346
|
-
declare type WorkbenchStoreSelectorListener<TValue> = (value: TValue, previousValue: TValue) => void;
|
|
3347
|
-
|
|
3348
|
-
declare type WorkbenchTabAction = ({
|
|
3349
|
-
kind: "command";
|
|
3350
|
-
} & WorkbenchCommandTarget) | {
|
|
3351
|
-
kind: "navigation";
|
|
3352
|
-
target: NavigationTarget;
|
|
3353
|
-
};
|
|
3354
|
-
|
|
3355
|
-
declare interface WorkbenchTabMenuGroup {
|
|
3356
|
-
id: string;
|
|
3357
|
-
rows: readonly WorkbenchTabMenuRow[];
|
|
3358
|
-
}
|
|
3359
|
-
|
|
3360
|
-
declare interface WorkbenchTabMenuRow {
|
|
3361
|
-
id: string;
|
|
3362
|
-
label: string;
|
|
3363
|
-
icon?: string;
|
|
3364
|
-
iconColor?: string;
|
|
3365
|
-
selected?: boolean;
|
|
3366
|
-
disabled?: boolean;
|
|
3367
|
-
action?: WorkbenchTabAction;
|
|
3368
|
-
}
|
|
3369
|
-
|
|
3370
|
-
declare type WorkbenchTabPosition = "start" | "end" | {
|
|
3371
|
-
beforeWidgetId: string;
|
|
3372
|
-
} | {
|
|
3373
|
-
afterWidgetId: string;
|
|
3374
|
-
};
|
|
3375
|
-
|
|
3376
|
-
declare type WorkbenchTabRetention = "preview" | "persistent";
|
|
3377
|
-
|
|
3378
|
-
declare interface WorkbenchTabSnapshot {
|
|
3379
|
-
label?: string;
|
|
3380
|
-
icon?: string;
|
|
3381
|
-
indicator?: {
|
|
3382
|
-
icon: string;
|
|
3383
|
-
color?: string;
|
|
3384
|
-
label?: string;
|
|
3385
|
-
};
|
|
3386
|
-
menu?: readonly WorkbenchTabMenuGroup[];
|
|
3387
|
-
}
|
|
3388
|
-
|
|
3389
|
-
declare interface WorkbenchTerminalController {
|
|
3390
|
-
store: WorkbenchStore<WorkbenchTerminalState>;
|
|
3391
|
-
/** True once the host injected a session opener. */
|
|
3392
|
-
isAvailable(): boolean;
|
|
3393
|
-
setSessionOpener(opener: WorkbenchTerminalSessionOpener | null): void;
|
|
3394
|
-
/** Opens a session; the live adapter stays host-side and only the id is returned. */
|
|
3395
|
-
open(input: {
|
|
3396
|
-
bindingId?: string;
|
|
3397
|
-
request: WorkbenchTerminalSessionRequest;
|
|
3398
|
-
title?: string;
|
|
3399
|
-
}): Promise<{
|
|
3400
|
-
sessionId: string;
|
|
3401
|
-
}>;
|
|
3402
|
-
write(input: {
|
|
3403
|
-
sessionId: string;
|
|
3404
|
-
data: string | Uint8Array;
|
|
3405
|
-
}): void;
|
|
3406
|
-
resize(input: {
|
|
3407
|
-
sessionId: string;
|
|
3408
|
-
cols: number;
|
|
3409
|
-
rows: number;
|
|
3410
|
-
}): void;
|
|
3411
|
-
kill(input: {
|
|
3412
|
-
sessionId: string;
|
|
3413
|
-
signal?: string;
|
|
3414
|
-
}): Promise<void>;
|
|
3415
|
-
killBinding(bindingId: string): Promise<void>;
|
|
3416
|
-
subscribe(sessionId: string, sink: WorkbenchTerminalSessionSink): () => void;
|
|
3417
|
-
getSession(sessionId: string): WorkbenchTerminalSessionModel | undefined;
|
|
3418
|
-
listSessions(): WorkbenchTerminalSessionModel[];
|
|
3419
|
-
/** Kills every live session. Called when the owning workbench is torn down. */
|
|
3420
|
-
dispose(): Promise<void>;
|
|
3421
|
-
}
|
|
3422
|
-
|
|
3423
|
-
declare interface WorkbenchTerminalSessionAdapter {
|
|
3424
|
-
readonly id: string;
|
|
3425
|
-
write(data: string | Uint8Array): void;
|
|
3426
|
-
resize(cols: number, rows: number): void;
|
|
3427
|
-
kill(signal?: string): Promise<void> | void;
|
|
3428
|
-
onData(handler: (chunk: Uint8Array) => void): () => void;
|
|
3429
|
-
/** Foreground process name updates, when the opener can report them (real PTYs). */
|
|
3430
|
-
onTitle?(handler: (title: string) => void): () => void;
|
|
3431
|
-
onExit(handler: (exit: WorkbenchTerminalSessionExit) => void): () => void;
|
|
3432
|
-
onError(handler: (error: WorkbenchTerminalSessionError) => void): () => void;
|
|
3433
|
-
}
|
|
3434
|
-
|
|
3435
|
-
declare interface WorkbenchTerminalSessionError {
|
|
3436
|
-
message: string;
|
|
3437
|
-
}
|
|
3438
|
-
|
|
3439
|
-
declare interface WorkbenchTerminalSessionExit {
|
|
3440
|
-
code: number | null;
|
|
3441
|
-
signal: string | null;
|
|
3442
|
-
}
|
|
3443
|
-
|
|
3444
|
-
declare interface WorkbenchTerminalSessionModel {
|
|
3445
|
-
id: string;
|
|
3446
|
-
title: string;
|
|
3447
|
-
status: WorkbenchTerminalSessionStatus;
|
|
3448
|
-
exit?: WorkbenchTerminalSessionExit;
|
|
3449
|
-
}
|
|
3450
|
-
|
|
3451
|
-
declare type WorkbenchTerminalSessionOpener = (request: WorkbenchTerminalSessionRequest) => Promise<WorkbenchTerminalSessionAdapter>;
|
|
3452
|
-
|
|
3453
|
-
declare interface WorkbenchTerminalSessionRequest {
|
|
3454
|
-
command?: string[];
|
|
3455
|
-
cwd?: string;
|
|
3456
|
-
env?: Record<string, string>;
|
|
3457
|
-
cols: number;
|
|
3458
|
-
rows: number;
|
|
3459
|
-
}
|
|
3460
|
-
|
|
3461
|
-
declare interface WorkbenchTerminalSessionSink {
|
|
3462
|
-
onData?(chunk: Uint8Array): void;
|
|
3463
|
-
onExit?(exit: WorkbenchTerminalSessionExit): void;
|
|
3464
|
-
onError?(error: WorkbenchTerminalSessionError): void;
|
|
3465
|
-
}
|
|
3466
|
-
|
|
3467
|
-
declare type WorkbenchTerminalSessionStatus = "running" | "exited" | "killed";
|
|
3468
|
-
|
|
3469
|
-
declare interface WorkbenchTerminalState {
|
|
3470
|
-
sessionsById: Record<string, WorkbenchTerminalSessionModel>;
|
|
3471
|
-
}
|
|
3472
|
-
|
|
3473
|
-
declare interface WorkbenchThemeStoreState {
|
|
3474
|
-
themes: readonly ThemePreferenceOption[];
|
|
3475
|
-
}
|
|
3476
|
-
|
|
3477
|
-
declare type WorkbenchTreeViews = Pick<TreeRendererRegistry, "getTreeState" | "setNodeExpanded" | "setSectionExpanded" | "setSelectedNode">;
|
|
3478
|
-
|
|
3479
|
-
declare type WorkbenchViewBody = WorkbenchReactViewBody | NativeViewBody<"tree", TreeRendererContribution> | NativeViewBody<"file", FileRendererContribution> | NativeViewBody<"controls", ControlsRendererContribution> | NativeViewBody<"kanban", KanbanRendererContribution> | NativeViewBody<"dataTable", DataTableRendererContribution>;
|
|
3480
|
-
|
|
3481
|
-
declare interface WorkbenchViewContribution {
|
|
3482
|
-
id: string;
|
|
3483
|
-
title: string;
|
|
3484
|
-
icon?: string;
|
|
3485
|
-
body: WorkbenchViewBody;
|
|
3486
|
-
}
|
|
3487
|
-
|
|
3488
|
-
declare interface WorkbenchViewHierarchyNode {
|
|
3489
|
-
type: "view";
|
|
3490
|
-
viewId: string;
|
|
3491
|
-
label?: string;
|
|
3492
|
-
icon?: string;
|
|
3493
|
-
}
|
|
3494
|
-
|
|
3495
|
-
declare interface WorkbenchViewMenuContribution {
|
|
3496
|
-
id: string;
|
|
3497
|
-
ownerViewId: string;
|
|
3498
|
-
viewId: string;
|
|
3499
|
-
side: "left" | "right";
|
|
3500
|
-
priority?: number;
|
|
3501
|
-
mountStrategy?: "active" | "keep-mounted";
|
|
3502
|
-
hiddenByDefault?: boolean;
|
|
3503
|
-
regionSize?: WorkbenchRegionSize;
|
|
3504
|
-
regionCollapsible?: boolean;
|
|
3505
|
-
headerBorderBottom?: boolean;
|
|
3506
|
-
config?: unknown;
|
|
3507
|
-
}
|
|
3508
|
-
|
|
3509
|
-
declare interface WorkbenchViewMenuRegistry {
|
|
3510
|
-
registerViewMenu(menu: WorkbenchViewMenuContribution): Disposable_2;
|
|
3511
|
-
getViewMenu(id: string): WorkbenchViewMenuContribution | undefined;
|
|
3512
|
-
listViewMenus(ownerViewId?: string): WorkbenchViewMenuContribution[];
|
|
3513
|
-
definitionsFor(ownerViewId: string, placementId: string): readonly WorkbenchPanelMenuDefinition[];
|
|
3514
|
-
}
|
|
3515
|
-
|
|
3516
|
-
declare interface WorkbenchViewRegistry {
|
|
3517
|
-
store: WorkbenchStore<WorkbenchViewRegistryStoreState>;
|
|
3518
|
-
registerView(view: WorkbenchViewContribution, metadata?: ContributionMetadata): Disposable_2;
|
|
3519
|
-
getView(viewId: string): RegisteredWorkbenchView | undefined;
|
|
3520
|
-
listViews(): RegisteredWorkbenchView[];
|
|
3521
|
-
refreshView(viewId: string, input?: unknown): void;
|
|
3522
|
-
}
|
|
3523
|
-
|
|
3524
|
-
declare interface WorkbenchViewRegistryStoreState {
|
|
3525
|
-
views: Record<string, RegisteredWorkbenchView>;
|
|
3526
|
-
}
|
|
3527
|
-
|
|
3528
|
-
declare interface WorkbenchWidgetPlacement {
|
|
3529
|
-
widgetId: string;
|
|
3530
|
-
contributionId: string;
|
|
3531
|
-
placementIdentity?: PlacementIdentity;
|
|
3532
|
-
viewId?: string;
|
|
3533
|
-
ownerId?: string;
|
|
3534
|
-
source?: ContributionSource;
|
|
3535
|
-
resource?: ResourceRef;
|
|
3536
|
-
section?: FileRendererSectionTarget;
|
|
3537
|
-
resourceKey?: string;
|
|
3538
|
-
ownerResourceKey?: string;
|
|
3539
|
-
title?: string;
|
|
3540
|
-
pinned?: boolean;
|
|
3541
|
-
closable?: boolean;
|
|
3542
|
-
mountStrategy?: WidgetMountStrategy;
|
|
3543
|
-
hiddenByDefault?: boolean;
|
|
3544
|
-
tabRetention?: WorkbenchTabRetention;
|
|
3545
|
-
tab?: WorkbenchWidgetTab;
|
|
3546
|
-
role?: WorkbenchWidgetRole;
|
|
3547
|
-
}
|
|
3548
|
-
|
|
3549
|
-
declare type WorkbenchWidgetRole = "content" | "location" | "sub-panel" | "panel-menu";
|
|
3550
|
-
|
|
3551
|
-
declare interface WorkbenchWidgetTab {
|
|
3552
|
-
getSnapshot(instance: WorkbenchPanelInstance): WorkbenchTabSnapshot;
|
|
3553
|
-
subscribe?(listener: () => void): {
|
|
3554
|
-
dispose(): void;
|
|
3555
|
-
} | (() => void);
|
|
3556
|
-
refreshEvents?: readonly string[];
|
|
3557
|
-
}
|
|
3558
|
-
|
|
3559
|
-
declare interface WorkflowStatus {
|
|
3560
|
-
id: string;
|
|
3561
|
-
label: string;
|
|
3562
|
-
color: string;
|
|
3563
|
-
icon?: string | null;
|
|
3564
|
-
sortOrder: number;
|
|
3565
|
-
isDefault?: boolean;
|
|
3566
|
-
actions?: readonly string[];
|
|
3567
|
-
}
|
|
3568
|
-
|
|
3569
|
-
declare interface WorkflowStatusAction {
|
|
3570
|
-
id: string;
|
|
3571
|
-
label: string;
|
|
3572
|
-
icon?: string;
|
|
3573
|
-
}
|
|
3574
|
-
|
|
3575
|
-
export { }
|
|
1
|
+
import { $i as Disposable, Bn as MenuItem, Ci as WorkbenchCommandExecutionContext, Dt as RegisteredWorkbenchNotification, E as WorkbenchCore, Fr as WorkbenchPanelRenderInput, Pn as TreeNode, Ur as WorkbenchPanelInstance, Vn as MenuPath, Yt as WorkbenchTerminalController, _i as Command, ar as KanbanRendererCreateSubmission, di as NavigationTargetCommand, hr as FileRendererRefreshEnvelope, ji as ResourceRef$1, jn as TreeContext, k as WorkbenchModuleContext, ui as NavigationTarget$1, vn as WorkbenchPageContribution, yn as WorkbenchPlacementPresentation, yt as PreferenceValue, zt as WorkbenchOwnedPlacementItem } from "./index-DDmpcM-n.js";
|
|
2
|
+
import { i as ReactKanbanRendererContribution, t as ReactAttributeDescriptor } from "./kanban-presentation-CX6Smht6.js";
|
|
3
|
+
import { Localizable, NavigationTarget, ResourceRef, WebviewHostCapability } from "@pstdio/sdk/extensions";
|
|
4
|
+
import { CommandExecuteRequest, CommandExecuteResponse, ExtensionCommandPaletteContribution, ExtensionMenuContribution, WorkbenchExtensionCommandPaletteResourceRecord, WorkbenchExtensionMetadata, WorkbenchExtensionMetadata as WorkbenchExtensionMetadata$1 } from "@pstdio/sdk/api";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
//#region ../pstdio-extensions/src/bridge/contract/capabilities.d.ts
|
|
7
|
+
type HostCapability<TParams = unknown, TResult = unknown> = (params: TParams) => Promise<TResult> | TResult;
|
|
8
|
+
type HostCapabilityRegistry = Partial<Record<WebviewHostCapability, HostCapability>>;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ../pstdio-extensions/src/bridge/contract/index.d.ts
|
|
11
|
+
type ThemePreference = "dark" | "light";
|
|
12
|
+
type HostEventMessage = {
|
|
13
|
+
scope: string;
|
|
14
|
+
payload: unknown;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region ../pstdio-extensions/src/bridge/host/host-event-publisher.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* Host-side fan-in for events pushed into one guest webview. Capability
|
|
20
|
+
* implementations `emit` while the frame owns the transport: events emitted
|
|
21
|
+
* before the guest connection is up are buffered and flushed on `bind`.
|
|
22
|
+
*/
|
|
23
|
+
interface HostEventPublisher {
|
|
24
|
+
emit(message: HostEventMessage): void;
|
|
25
|
+
bind(sink: (message: HostEventMessage) => void): void;
|
|
26
|
+
onDisconnect(listener: () => void): () => void;
|
|
27
|
+
/** Drop the current sink and return to buffering until the next bind. */
|
|
28
|
+
unbind(): void;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/extensions/bridge/bridge-webview-renderer.d.ts
|
|
32
|
+
interface BridgeWebviewRenderContext {
|
|
33
|
+
workbench: WorkbenchCore;
|
|
34
|
+
webviewId: string;
|
|
35
|
+
placement: WorkbenchPanelInstance;
|
|
36
|
+
/** Channel for pushing host events (e.g. terminal output) into this webview. */
|
|
37
|
+
hostEvents: HostEventPublisher;
|
|
38
|
+
}
|
|
39
|
+
type CreateBridgeWebviewHostCapabilities = (context: BridgeWebviewRenderContext) => HostCapabilityRegistry;
|
|
40
|
+
type CreateBridgeWebviewProps = (context: BridgeWebviewRenderContext) => unknown;
|
|
41
|
+
type CreateBridgeWebviewTheme = (context: BridgeWebviewRenderContext) => ThemePreference;
|
|
42
|
+
interface BridgeWebviewConfig {
|
|
43
|
+
title?: string;
|
|
44
|
+
runtimeUrl: string;
|
|
45
|
+
moduleUrl: string;
|
|
46
|
+
styles?: string[];
|
|
47
|
+
capabilities?: string[];
|
|
48
|
+
}
|
|
49
|
+
export declare const getBridgeWebviewHostEventPublisher: (workbench: WorkbenchCore, instance: WorkbenchPanelInstance) => HostEventPublisher;
|
|
50
|
+
export declare const renderBridgeWebviewFrame: (input: {
|
|
51
|
+
context: BridgeWebviewRenderContext;
|
|
52
|
+
createHostCapabilities: CreateBridgeWebviewHostCapabilities;
|
|
53
|
+
createProps: CreateBridgeWebviewProps;
|
|
54
|
+
createTheme?: CreateBridgeWebviewTheme;
|
|
55
|
+
ownerId?: string;
|
|
56
|
+
title: string;
|
|
57
|
+
webview: BridgeWebviewConfig;
|
|
58
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/extensions/bridge/terminal-session-capability.d.ts
|
|
61
|
+
interface CreateTerminalSessionCapabilityInput {
|
|
62
|
+
terminal: WorkbenchTerminalController;
|
|
63
|
+
hostEvents: HostEventPublisher;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Host side of the `terminal.session` webview capability. Sessions live in the
|
|
67
|
+
* workbench terminal controller; only serializable operation payloads and session
|
|
68
|
+
* ids cross the webview boundary. Output/exit events flow through the host event
|
|
69
|
+
* publisher under the `terminal.session` scope.
|
|
70
|
+
*/
|
|
71
|
+
export declare const createTerminalSessionCapability: (input: CreateTerminalSessionCapabilityInput) => HostCapability;
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/extensions/bridge/webview-command-capabilities.d.ts
|
|
74
|
+
interface ExtensionWebviewFileCapabilities {
|
|
75
|
+
delete(params: unknown): Promise<unknown> | unknown;
|
|
76
|
+
list(params: unknown): Promise<unknown> | unknown;
|
|
77
|
+
upload(params: unknown): Promise<unknown> | unknown;
|
|
78
|
+
}
|
|
79
|
+
interface ExtensionWebviewArtifactCapabilities {
|
|
80
|
+
read(params: unknown, context: {
|
|
81
|
+
webviewId: string;
|
|
82
|
+
}): Promise<unknown> | unknown;
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/extensions/bridge/webview-host-capabilities.d.ts
|
|
86
|
+
interface CreateWorkbenchWebviewHostCapabilitiesInput {
|
|
87
|
+
dispatchKeyboardEvent?: (event: KeyboardEventInit) => void;
|
|
88
|
+
workbench: WorkbenchCore;
|
|
89
|
+
placement?: WorkbenchPanelInstance;
|
|
90
|
+
/** Event channel into the guest; terminal.session is only offered when present. */
|
|
91
|
+
hostEvents?: HostEventPublisher;
|
|
92
|
+
}
|
|
93
|
+
export declare const createWorkbenchWebviewHostCapabilities: (input: CreateWorkbenchWebviewHostCapabilitiesInput) => {
|
|
94
|
+
"terminal.session"?: HostCapability | undefined;
|
|
95
|
+
"commands.execute": (params: unknown) => Promise<unknown>;
|
|
96
|
+
"navigation.open": (params: unknown) => Promise<readonly unknown[]>;
|
|
97
|
+
"notification.show": (params: unknown) => RegisteredWorkbenchNotification;
|
|
98
|
+
"preferences.get": (params: unknown) => PreferenceValue | undefined;
|
|
99
|
+
"preferences.set": (params: unknown) => {
|
|
100
|
+
name: string;
|
|
101
|
+
value: PreferenceValue;
|
|
102
|
+
};
|
|
103
|
+
"host.dispatchKeyboardEvent": (params: unknown) => void;
|
|
104
|
+
"placement.close"?: ((params: unknown) => void) | undefined;
|
|
105
|
+
};
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/extensions/host/workbench-extension-command.d.ts
|
|
108
|
+
interface WorkbenchExtensionCommandContext {
|
|
109
|
+
executeCommand(commandId: string, body: CommandExecuteRequest): Promise<unknown> | unknown;
|
|
110
|
+
prepareCommandArgs?(commandId: string, args: unknown, context?: WorkbenchCommandExecutionContext, onArgsChange?: (args: unknown) => void): Promise<unknown> | unknown;
|
|
111
|
+
projectId: string;
|
|
112
|
+
workbench: WorkbenchModuleContext;
|
|
113
|
+
}
|
|
114
|
+
interface ExecuteWorkbenchExtensionCommandInput {
|
|
115
|
+
workspaceId?: string;
|
|
116
|
+
metadata?: Record<string, unknown>;
|
|
117
|
+
params?: Record<string, unknown>;
|
|
118
|
+
resource?: ResourceRef$1;
|
|
119
|
+
slot?: CommandExecuteRequest["slot"];
|
|
120
|
+
}
|
|
121
|
+
export declare const executeWorkbenchExtensionCommandResponse: (context: Pick<WorkbenchExtensionCommandContext, "executeCommand" | "projectId"> & {
|
|
122
|
+
workbench: Pick<WorkbenchModuleContext, "navigation" | "notifications">;
|
|
123
|
+
}, commandId: string, input?: ExecuteWorkbenchExtensionCommandInput) => Promise<unknown>;
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/extensions/contributions/command-palette-resource-contributions.d.ts
|
|
126
|
+
export declare const registerWorkbenchExtensionCommandPaletteResources: (context: WorkbenchExtensionCommandContext, records: readonly WorkbenchExtensionCommandPaletteResourceRecord[]) => {
|
|
127
|
+
dispose(): void;
|
|
128
|
+
};
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region ../pstdio-api-contracts/src/extension-kernel/types/json.d.ts
|
|
131
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
132
|
+
type JsonValue = JsonPrimitive | JsonValue[] | JsonObject;
|
|
133
|
+
type JsonObject = {
|
|
134
|
+
[key: string]: JsonValue;
|
|
135
|
+
};
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region ../pstdio-api-contracts/src/extensions/resource-ref.d.ts
|
|
138
|
+
declare const extensionResourceRefSchema: z.ZodObject<{
|
|
139
|
+
shorthand: z.ZodOptional<z.ZodString>;
|
|
140
|
+
type: z.ZodString;
|
|
141
|
+
id: z.ZodString;
|
|
142
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
143
|
+
label: z.ZodOptional<z.ZodString>;
|
|
144
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
145
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
146
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region ../pstdio-api-contracts/src/extensions/workbench-refs-metadata.d.ts
|
|
150
|
+
declare const pageRefSchema: z.ZodObject<{
|
|
151
|
+
extensionId: z.ZodString;
|
|
152
|
+
kind: z.ZodLiteral<"page">;
|
|
153
|
+
id: z.ZodString;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region ../pstdio-api-contracts/src/extensions/navigation-target-metadata.d.ts
|
|
157
|
+
declare const sectionSchema: z.ZodObject<{
|
|
158
|
+
anchors: z.ZodArray<z.ZodObject<{
|
|
159
|
+
id: z.ZodString;
|
|
160
|
+
heading: z.ZodString;
|
|
161
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
interface MetadataPageTarget {
|
|
165
|
+
kind: "page";
|
|
166
|
+
page: z.infer<typeof pageRefSchema>;
|
|
167
|
+
resource?: z.infer<typeof extensionResourceRefSchema>;
|
|
168
|
+
open?: "preview" | "pin";
|
|
169
|
+
section?: z.infer<typeof sectionSchema>;
|
|
170
|
+
parent?: MetadataPageTarget;
|
|
171
|
+
}
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region ../pstdio-api-contracts/src/extensions/commands.d.ts
|
|
174
|
+
declare const extensionMenuContributionSchema: z.ZodObject<{
|
|
175
|
+
id: z.ZodString;
|
|
176
|
+
extensionId: z.ZodString;
|
|
177
|
+
commandId: z.ZodString;
|
|
178
|
+
slotId: z.ZodString;
|
|
179
|
+
target: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
"workbench.nav.actions": "workbench.nav.actions";
|
|
181
|
+
"workbench.nav.overflow": "workbench.nav.overflow";
|
|
182
|
+
}>>;
|
|
183
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
184
|
+
$l10n: z.ZodString;
|
|
185
|
+
default: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, z.core.$strip>]>;
|
|
187
|
+
group: z.ZodOptional<z.ZodString>;
|
|
188
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
189
|
+
default: "default";
|
|
190
|
+
first: "first";
|
|
191
|
+
last: "last";
|
|
192
|
+
}>>;
|
|
193
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
194
|
+
presentation: z.ZodOptional<z.ZodEnum<{
|
|
195
|
+
"menu-item": "menu-item";
|
|
196
|
+
button: "button";
|
|
197
|
+
"icon-button": "icon-button";
|
|
198
|
+
}>>;
|
|
199
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
200
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
201
|
+
mode: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
202
|
+
source: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
203
|
+
schedule: "schedule";
|
|
204
|
+
automation: "automation";
|
|
205
|
+
api: "api";
|
|
206
|
+
event: "event";
|
|
207
|
+
cli: "cli";
|
|
208
|
+
dashboard: "dashboard";
|
|
209
|
+
"command-panel": "command-panel";
|
|
210
|
+
}>>>;
|
|
211
|
+
viewId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
212
|
+
resourceType: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
213
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
}, z.core.$strip>;
|
|
216
|
+
type ExtensionMenuContribution$1 = z.infer<typeof extensionMenuContributionSchema>;
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region ../pstdio-api-contracts/src/extensions/controls-renderer.d.ts
|
|
219
|
+
declare const extensionControlsRendererRecordSchema: z.ZodObject<{
|
|
220
|
+
id: z.ZodString;
|
|
221
|
+
extensionId: z.ZodString;
|
|
222
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
223
|
+
$l10n: z.ZodString;
|
|
224
|
+
default: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>]>;
|
|
226
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
227
|
+
resourceKind: z.ZodOptional<z.ZodString>;
|
|
228
|
+
refreshEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
229
|
+
emptyTitle: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
230
|
+
$l10n: z.ZodString;
|
|
231
|
+
default: z.ZodOptional<z.ZodString>;
|
|
232
|
+
}, z.core.$strip>]>>;
|
|
233
|
+
emptyDescription: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
234
|
+
$l10n: z.ZodString;
|
|
235
|
+
default: z.ZodOptional<z.ZodString>;
|
|
236
|
+
}, z.core.$strip>]>>;
|
|
237
|
+
queryHandlerId: z.ZodString;
|
|
238
|
+
valueChangeHandlerId: z.ZodOptional<z.ZodString>;
|
|
239
|
+
applyHandlerId: z.ZodOptional<z.ZodString>;
|
|
240
|
+
resetHandlerId: z.ZodOptional<z.ZodString>;
|
|
241
|
+
defaultValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodString>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
242
|
+
x: z.ZodNumber;
|
|
243
|
+
y: z.ZodNumber;
|
|
244
|
+
}, z.core.$strict>]>>>;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
type WorkbenchExtensionControlsRendererRecord = z.infer<typeof extensionControlsRendererRecordSchema>;
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region ../pstdio-api-contracts/src/extensions/data-table-renderer.d.ts
|
|
249
|
+
declare const extensionDataTableRendererRecordSchema: z.ZodObject<{
|
|
250
|
+
id: z.ZodString;
|
|
251
|
+
extensionId: z.ZodString;
|
|
252
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
253
|
+
$l10n: z.ZodString;
|
|
254
|
+
default: z.ZodOptional<z.ZodString>;
|
|
255
|
+
}, z.core.$strip>]>;
|
|
256
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
257
|
+
resourceKind: z.ZodOptional<z.ZodString>;
|
|
258
|
+
refreshEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
259
|
+
emptyTitle: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
260
|
+
$l10n: z.ZodString;
|
|
261
|
+
default: z.ZodOptional<z.ZodString>;
|
|
262
|
+
}, z.core.$strip>]>>;
|
|
263
|
+
emptyDescription: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
264
|
+
$l10n: z.ZodString;
|
|
265
|
+
default: z.ZodOptional<z.ZodString>;
|
|
266
|
+
}, z.core.$strip>]>>;
|
|
267
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
268
|
+
id: z.ZodString;
|
|
269
|
+
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
270
|
+
$l10n: z.ZodString;
|
|
271
|
+
default: z.ZodOptional<z.ZodString>;
|
|
272
|
+
}, z.core.$strip>]>>;
|
|
273
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
274
|
+
$l10n: z.ZodString;
|
|
275
|
+
default: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, z.core.$strip>]>>;
|
|
277
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
278
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
+
stat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
280
|
+
type: z.ZodLiteral<"unique">;
|
|
281
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
282
|
+
type: z.ZodLiteral<"histogram">;
|
|
283
|
+
bins: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
285
|
+
type: z.ZodLiteral<"top-values">;
|
|
286
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
287
|
+
}, z.core.$strip>], "type">>;
|
|
288
|
+
renderer: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
289
|
+
type: z.ZodLiteral<"json">;
|
|
290
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
291
|
+
type: z.ZodLiteral<"color-scale">;
|
|
292
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
293
|
+
value: z.ZodNumber;
|
|
294
|
+
color: z.ZodObject<{
|
|
295
|
+
light: z.ZodString;
|
|
296
|
+
dark: z.ZodString;
|
|
297
|
+
foreground: z.ZodOptional<z.ZodObject<{
|
|
298
|
+
light: z.ZodString;
|
|
299
|
+
dark: z.ZodString;
|
|
300
|
+
}, z.core.$strip>>;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
}, z.core.$strip>>;
|
|
303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
304
|
+
type: z.ZodLiteral<"categorical-color">;
|
|
305
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
306
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
307
|
+
color: z.ZodObject<{
|
|
308
|
+
light: z.ZodString;
|
|
309
|
+
dark: z.ZodString;
|
|
310
|
+
foreground: z.ZodOptional<z.ZodObject<{
|
|
311
|
+
light: z.ZodString;
|
|
312
|
+
dark: z.ZodString;
|
|
313
|
+
}, z.core.$strip>>;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
}, z.core.$strip>>;
|
|
316
|
+
}, z.core.$strip>], "type">>;
|
|
317
|
+
}, z.core.$strip>>>;
|
|
318
|
+
queryHandlerId: z.ZodString;
|
|
319
|
+
selectionMode: z.ZodOptional<z.ZodEnum<{
|
|
320
|
+
none: "none";
|
|
321
|
+
multiple: "multiple";
|
|
322
|
+
}>>;
|
|
323
|
+
selectionActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
324
|
+
id: z.ZodString;
|
|
325
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
326
|
+
$l10n: z.ZodString;
|
|
327
|
+
default: z.ZodOptional<z.ZodString>;
|
|
328
|
+
}, z.core.$strip>]>;
|
|
329
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
330
|
+
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
331
|
+
commandId: z.ZodString;
|
|
332
|
+
}, z.core.$strip>>>;
|
|
333
|
+
rowActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
334
|
+
id: z.ZodString;
|
|
335
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
336
|
+
$l10n: z.ZodString;
|
|
337
|
+
default: z.ZodOptional<z.ZodString>;
|
|
338
|
+
}, z.core.$strip>]>;
|
|
339
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
340
|
+
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
341
|
+
commandId: z.ZodString;
|
|
342
|
+
}, z.core.$strip>>>;
|
|
343
|
+
rowActivationHandlerId: z.ZodOptional<z.ZodString>;
|
|
344
|
+
initialPageSize: z.ZodOptional<z.ZodNumber>;
|
|
345
|
+
pageSizeOptions: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
346
|
+
}, z.core.$strip>;
|
|
347
|
+
type ExtensionDataTableRendererRecord = z.infer<typeof extensionDataTableRendererRecordSchema>;
|
|
348
|
+
type WorkbenchExtensionDataTableRendererRecord = ExtensionDataTableRendererRecord;
|
|
349
|
+
//#endregion
|
|
350
|
+
//#region ../pstdio-api-contracts/src/extensions/kanban-renderer.d.ts
|
|
351
|
+
declare const extensionKanbanRendererRecordSchema: z.ZodObject<{
|
|
352
|
+
id: z.ZodString;
|
|
353
|
+
extensionId: z.ZodString;
|
|
354
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
355
|
+
$l10n: z.ZodString;
|
|
356
|
+
default: z.ZodOptional<z.ZodString>;
|
|
357
|
+
}, z.core.$strip>]>;
|
|
358
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
359
|
+
resourceKind: z.ZodOptional<z.ZodString>;
|
|
360
|
+
refreshEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
361
|
+
emptyTitle: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
362
|
+
$l10n: z.ZodString;
|
|
363
|
+
default: z.ZodOptional<z.ZodString>;
|
|
364
|
+
}, z.core.$strip>]>>;
|
|
365
|
+
emptyDescription: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
366
|
+
$l10n: z.ZodString;
|
|
367
|
+
default: z.ZodOptional<z.ZodString>;
|
|
368
|
+
}, z.core.$strip>]>>;
|
|
369
|
+
extensionInstanceId: z.ZodOptional<z.ZodString>;
|
|
370
|
+
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
371
|
+
id: z.ZodString;
|
|
372
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
373
|
+
$l10n: z.ZodString;
|
|
374
|
+
default: z.ZodOptional<z.ZodString>;
|
|
375
|
+
}, z.core.$strip>]>;
|
|
376
|
+
type: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
377
|
+
kind: z.ZodLiteral<"enum">;
|
|
378
|
+
options: z.ZodArray<z.ZodObject<{
|
|
379
|
+
value: z.ZodString;
|
|
380
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
381
|
+
$l10n: z.ZodString;
|
|
382
|
+
default: z.ZodOptional<z.ZodString>;
|
|
383
|
+
}, z.core.$strip>]>;
|
|
384
|
+
color: z.ZodOptional<z.ZodString>;
|
|
385
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
386
|
+
}, z.core.$strip>>;
|
|
387
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
388
|
+
kind: z.ZodLiteral<"enum-multi">;
|
|
389
|
+
options: z.ZodArray<z.ZodObject<{
|
|
390
|
+
value: z.ZodString;
|
|
391
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
392
|
+
$l10n: z.ZodString;
|
|
393
|
+
default: z.ZodOptional<z.ZodString>;
|
|
394
|
+
}, z.core.$strip>]>;
|
|
395
|
+
color: z.ZodOptional<z.ZodString>;
|
|
396
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
397
|
+
}, z.core.$strip>>;
|
|
398
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
399
|
+
kind: z.ZodLiteral<"status">;
|
|
400
|
+
statuses: z.ZodObject<{
|
|
401
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
402
|
+
kind: z.ZodLiteral<"status">;
|
|
403
|
+
id: z.ZodString;
|
|
404
|
+
}, z.core.$strip>;
|
|
405
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
406
|
+
kind: z.ZodLiteral<"string">;
|
|
407
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
408
|
+
kind: z.ZodLiteral<"date">;
|
|
409
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
410
|
+
kind: z.ZodLiteral<"number">;
|
|
411
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
412
|
+
kind: z.ZodLiteral<"user">;
|
|
413
|
+
}, z.core.$strip>], "kind">;
|
|
414
|
+
filterable: z.ZodOptional<z.ZodBoolean>;
|
|
415
|
+
groupable: z.ZodOptional<z.ZodBoolean>;
|
|
416
|
+
sortable: z.ZodOptional<z.ZodBoolean>;
|
|
417
|
+
displayable: z.ZodOptional<z.ZodBoolean>;
|
|
418
|
+
editable: z.ZodOptional<z.ZodBoolean>;
|
|
419
|
+
display: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
420
|
+
kind: z.ZodLiteral<"badge-list">;
|
|
421
|
+
itemsAttributeId: z.ZodString;
|
|
422
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
423
|
+
kind: z.ZodString;
|
|
424
|
+
}, z.core.$loose>]>>;
|
|
425
|
+
}, z.core.$strip>>>;
|
|
426
|
+
queryHandlerId: z.ZodString;
|
|
427
|
+
attributeChangeHandlerId: z.ZodOptional<z.ZodString>;
|
|
428
|
+
reorderHandlerId: z.ZodOptional<z.ZodString>;
|
|
429
|
+
columnActionHandlerId: z.ZodOptional<z.ZodString>;
|
|
430
|
+
createRow: z.ZodOptional<z.ZodObject<{
|
|
431
|
+
commandId: z.ZodString;
|
|
432
|
+
title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
433
|
+
$l10n: z.ZodString;
|
|
434
|
+
default: z.ZodOptional<z.ZodString>;
|
|
435
|
+
}, z.core.$strip>]>>;
|
|
436
|
+
submitLabel: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
437
|
+
$l10n: z.ZodString;
|
|
438
|
+
default: z.ZodOptional<z.ZodString>;
|
|
439
|
+
}, z.core.$strip>]>>;
|
|
440
|
+
columnParam: z.ZodOptional<z.ZodString>;
|
|
441
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
442
|
+
type: z.ZodString;
|
|
443
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
444
|
+
attributesParam: z.ZodOptional<z.ZodString>;
|
|
445
|
+
attachments: z.ZodOptional<z.ZodObject<{
|
|
446
|
+
commandId: z.ZodString;
|
|
447
|
+
resourceParam: z.ZodString;
|
|
448
|
+
fileParam: z.ZodString;
|
|
449
|
+
}, z.core.$strip>>;
|
|
450
|
+
labels: z.ZodOptional<z.ZodObject<{
|
|
451
|
+
cancel: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
452
|
+
$l10n: z.ZodString;
|
|
453
|
+
default: z.ZodOptional<z.ZodString>;
|
|
454
|
+
}, z.core.$strip>]>>;
|
|
455
|
+
properties: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
456
|
+
$l10n: z.ZodString;
|
|
457
|
+
default: z.ZodOptional<z.ZodString>;
|
|
458
|
+
}, z.core.$strip>]>>;
|
|
459
|
+
submitError: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
460
|
+
$l10n: z.ZodString;
|
|
461
|
+
default: z.ZodOptional<z.ZodString>;
|
|
462
|
+
}, z.core.$strip>]>>;
|
|
463
|
+
removeFile: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
464
|
+
$l10n: z.ZodString;
|
|
465
|
+
default: z.ZodOptional<z.ZodString>;
|
|
466
|
+
}, z.core.$strip>]>>;
|
|
467
|
+
}, z.core.$strip>>;
|
|
468
|
+
}, z.core.$strip>>;
|
|
469
|
+
rowActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
470
|
+
id: z.ZodString;
|
|
471
|
+
label: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
472
|
+
$l10n: z.ZodString;
|
|
473
|
+
default: z.ZodOptional<z.ZodString>;
|
|
474
|
+
}, z.core.$strip>]>;
|
|
475
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
476
|
+
commandId: z.ZodString;
|
|
477
|
+
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
478
|
+
}, z.core.$strip>>>;
|
|
479
|
+
rowActivationHandlerId: z.ZodOptional<z.ZodString>;
|
|
480
|
+
defaultSettings: z.ZodOptional<z.ZodObject<{
|
|
481
|
+
viewMode: z.ZodOptional<z.ZodEnum<{
|
|
482
|
+
board: "board";
|
|
483
|
+
list: "list";
|
|
484
|
+
}>>;
|
|
485
|
+
columnGrouping: z.ZodOptional<z.ZodString>;
|
|
486
|
+
rowGrouping: z.ZodOptional<z.ZodString>;
|
|
487
|
+
ordering: z.ZodOptional<z.ZodObject<{
|
|
488
|
+
attributeId: z.ZodString;
|
|
489
|
+
direction: z.ZodEnum<{
|
|
490
|
+
asc: "asc";
|
|
491
|
+
desc: "desc";
|
|
492
|
+
}>;
|
|
493
|
+
}, z.core.$strip>>;
|
|
494
|
+
displayProperties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
495
|
+
}, z.core.$strip>>;
|
|
496
|
+
defaultFilters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
497
|
+
defaultViews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
498
|
+
id: z.ZodString;
|
|
499
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
500
|
+
$l10n: z.ZodString;
|
|
501
|
+
default: z.ZodOptional<z.ZodString>;
|
|
502
|
+
}, z.core.$strip>]>;
|
|
503
|
+
settings: z.ZodObject<{
|
|
504
|
+
viewMode: z.ZodEnum<{
|
|
505
|
+
board: "board";
|
|
506
|
+
list: "list";
|
|
507
|
+
}>;
|
|
508
|
+
columnGrouping: z.ZodString;
|
|
509
|
+
rowGrouping: z.ZodString;
|
|
510
|
+
ordering: z.ZodObject<{
|
|
511
|
+
attributeId: z.ZodString;
|
|
512
|
+
direction: z.ZodEnum<{
|
|
513
|
+
asc: "asc";
|
|
514
|
+
desc: "desc";
|
|
515
|
+
}>;
|
|
516
|
+
}, z.core.$strip>;
|
|
517
|
+
displayProperties: z.ZodArray<z.ZodString>;
|
|
518
|
+
}, z.core.$strip>;
|
|
519
|
+
filters: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
520
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
521
|
+
}, z.core.$strip>>>;
|
|
522
|
+
defaultActiveViewId: z.ZodOptional<z.ZodString>;
|
|
523
|
+
hideToolbar: z.ZodOptional<z.ZodBoolean>;
|
|
524
|
+
}, z.core.$strip>;
|
|
525
|
+
declare const extensionCommandPaletteResourceRecordSchema: z.ZodObject<{
|
|
526
|
+
id: z.ZodString;
|
|
527
|
+
extensionId: z.ZodString;
|
|
528
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
529
|
+
$l10n: z.ZodString;
|
|
530
|
+
default: z.ZodOptional<z.ZodString>;
|
|
531
|
+
}, z.core.$strip>]>;
|
|
532
|
+
resourceKind: z.ZodOptional<z.ZodString>;
|
|
533
|
+
queryHandlerId: z.ZodString;
|
|
534
|
+
refreshEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
535
|
+
}, z.core.$strip>;
|
|
536
|
+
type WorkbenchExtensionKanbanRendererRecord = z.infer<typeof extensionKanbanRendererRecordSchema>;
|
|
537
|
+
type WorkbenchExtensionCommandPaletteResourceRecord$1 = z.infer<typeof extensionCommandPaletteResourceRecordSchema>;
|
|
538
|
+
//#endregion
|
|
539
|
+
//#region ../pstdio-api-contracts/src/extensions/keybindings.d.ts
|
|
540
|
+
declare const extensionKeybindingRecordSchema: z.ZodObject<{
|
|
541
|
+
id: z.ZodString;
|
|
542
|
+
extensionId: z.ZodString;
|
|
543
|
+
action: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodType<MetadataPageTarget, unknown, z.core.$ZodTypeInternals<MetadataPageTarget, unknown>>, z.ZodObject<{
|
|
544
|
+
kind: z.ZodLiteral<"panel">;
|
|
545
|
+
panel: z.ZodUnion<readonly [z.ZodObject<{
|
|
546
|
+
extensionId: z.ZodString;
|
|
547
|
+
kind: z.ZodLiteral<"placement">;
|
|
548
|
+
id: z.ZodString;
|
|
549
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
550
|
+
kind: z.ZodLiteral<"page-slot">;
|
|
551
|
+
page: z.ZodObject<{
|
|
552
|
+
extensionId: z.ZodString;
|
|
553
|
+
kind: z.ZodLiteral<"page">;
|
|
554
|
+
id: z.ZodString;
|
|
555
|
+
}, z.core.$strip>;
|
|
556
|
+
id: z.ZodString;
|
|
557
|
+
}, z.core.$strip>]>;
|
|
558
|
+
resource: z.ZodOptional<z.ZodObject<{
|
|
559
|
+
shorthand: z.ZodOptional<z.ZodString>;
|
|
560
|
+
type: z.ZodString;
|
|
561
|
+
id: z.ZodString;
|
|
562
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
563
|
+
label: z.ZodOptional<z.ZodString>;
|
|
564
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
565
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
566
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
567
|
+
}, z.core.$strip>>;
|
|
568
|
+
open: z.ZodOptional<z.ZodEnum<{
|
|
569
|
+
preview: "preview";
|
|
570
|
+
pin: "pin";
|
|
571
|
+
}>>;
|
|
572
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
573
|
+
kind: z.ZodLiteral<"command">;
|
|
574
|
+
target: z.ZodObject<{
|
|
575
|
+
command: z.ZodObject<{
|
|
576
|
+
extensionId: z.ZodString;
|
|
577
|
+
kind: z.ZodLiteral<"command">;
|
|
578
|
+
id: z.ZodString;
|
|
579
|
+
}, z.core.$strip>;
|
|
580
|
+
params: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
581
|
+
}, z.core.$strip>;
|
|
582
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
583
|
+
kind: z.ZodLiteral<"href">;
|
|
584
|
+
href: z.ZodString;
|
|
585
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
586
|
+
kind: z.ZodLiteral<"compound">;
|
|
587
|
+
targets: z.ZodArray<z.ZodUnion<readonly [z.ZodType<MetadataPageTarget, unknown, z.core.$ZodTypeInternals<MetadataPageTarget, unknown>>, z.ZodObject<{
|
|
588
|
+
kind: z.ZodLiteral<"panel">;
|
|
589
|
+
panel: z.ZodUnion<readonly [z.ZodObject<{
|
|
590
|
+
extensionId: z.ZodString;
|
|
591
|
+
kind: z.ZodLiteral<"placement">;
|
|
592
|
+
id: z.ZodString;
|
|
593
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
594
|
+
kind: z.ZodLiteral<"page-slot">;
|
|
595
|
+
page: z.ZodObject<{
|
|
596
|
+
extensionId: z.ZodString;
|
|
597
|
+
kind: z.ZodLiteral<"page">;
|
|
598
|
+
id: z.ZodString;
|
|
599
|
+
}, z.core.$strip>;
|
|
600
|
+
id: z.ZodString;
|
|
601
|
+
}, z.core.$strip>]>;
|
|
602
|
+
resource: z.ZodOptional<z.ZodObject<{
|
|
603
|
+
shorthand: z.ZodOptional<z.ZodString>;
|
|
604
|
+
type: z.ZodString;
|
|
605
|
+
id: z.ZodString;
|
|
606
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
607
|
+
label: z.ZodOptional<z.ZodString>;
|
|
608
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
609
|
+
extensionId: z.ZodOptional<z.ZodString>;
|
|
610
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
611
|
+
}, z.core.$strip>>;
|
|
612
|
+
open: z.ZodOptional<z.ZodEnum<{
|
|
613
|
+
preview: "preview";
|
|
614
|
+
pin: "pin";
|
|
615
|
+
}>>;
|
|
616
|
+
}, z.core.$strip>]>>;
|
|
617
|
+
}, z.core.$strip>]>;
|
|
618
|
+
key: z.ZodString;
|
|
619
|
+
canonicalChord: z.ZodString;
|
|
620
|
+
parsed: z.ZodObject<{
|
|
621
|
+
key: z.ZodString;
|
|
622
|
+
ctrl: z.ZodBoolean;
|
|
623
|
+
shift: z.ZodBoolean;
|
|
624
|
+
alt: z.ZodBoolean;
|
|
625
|
+
meta: z.ZodBoolean;
|
|
626
|
+
modifiers: z.ZodArray<z.ZodString>;
|
|
627
|
+
}, z.core.$strip>;
|
|
628
|
+
platformOverrides: z.ZodOptional<z.ZodObject<{
|
|
629
|
+
mac: z.ZodOptional<z.ZodString>;
|
|
630
|
+
linux: z.ZodOptional<z.ZodString>;
|
|
631
|
+
win: z.ZodOptional<z.ZodString>;
|
|
632
|
+
}, z.core.$strip>>;
|
|
633
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
634
|
+
mode: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
635
|
+
source: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
636
|
+
schedule: "schedule";
|
|
637
|
+
automation: "automation";
|
|
638
|
+
api: "api";
|
|
639
|
+
event: "event";
|
|
640
|
+
cli: "cli";
|
|
641
|
+
dashboard: "dashboard";
|
|
642
|
+
"command-panel": "command-panel";
|
|
643
|
+
}>>>;
|
|
644
|
+
viewId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
645
|
+
resourceType: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
646
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
647
|
+
}, z.core.$strip>>;
|
|
648
|
+
}, z.core.$strip>;
|
|
649
|
+
type ExtensionKeybindingRecord = z.infer<typeof extensionKeybindingRecordSchema>;
|
|
650
|
+
//#endregion
|
|
651
|
+
//#region ../pstdio-api-contracts/src/extensions/renderers.d.ts
|
|
652
|
+
declare const extensionTreeRendererRecordSchema: z.ZodObject<{
|
|
653
|
+
id: z.ZodString;
|
|
654
|
+
extensionId: z.ZodString;
|
|
655
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
656
|
+
$l10n: z.ZodString;
|
|
657
|
+
default: z.ZodOptional<z.ZodString>;
|
|
658
|
+
}, z.core.$strip>]>;
|
|
659
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
660
|
+
resourceKind: z.ZodOptional<z.ZodString>;
|
|
661
|
+
refreshEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
662
|
+
emptyTitle: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
663
|
+
$l10n: z.ZodString;
|
|
664
|
+
default: z.ZodOptional<z.ZodString>;
|
|
665
|
+
}, z.core.$strip>]>>;
|
|
666
|
+
emptyDescription: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
667
|
+
$l10n: z.ZodString;
|
|
668
|
+
default: z.ZodOptional<z.ZodString>;
|
|
669
|
+
}, z.core.$strip>]>>;
|
|
670
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
671
|
+
searchPlaceholder: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
672
|
+
$l10n: z.ZodString;
|
|
673
|
+
default: z.ZodOptional<z.ZodString>;
|
|
674
|
+
}, z.core.$strip>]>>;
|
|
675
|
+
headerHandlerId: z.ZodOptional<z.ZodString>;
|
|
676
|
+
bodyHandlerId: z.ZodString;
|
|
677
|
+
childrenHandlerId: z.ZodOptional<z.ZodString>;
|
|
678
|
+
footerHandlerId: z.ZodOptional<z.ZodString>;
|
|
679
|
+
defaultExpandedSectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
680
|
+
defaultExpandedNodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
681
|
+
}, z.core.$strip>;
|
|
682
|
+
declare const extensionFileRendererRecordSchema: z.ZodObject<{
|
|
683
|
+
id: z.ZodString;
|
|
684
|
+
extensionId: z.ZodString;
|
|
685
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
686
|
+
$l10n: z.ZodString;
|
|
687
|
+
default: z.ZodOptional<z.ZodString>;
|
|
688
|
+
}, z.core.$strip>]>;
|
|
689
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
690
|
+
resourceKind: z.ZodOptional<z.ZodString>;
|
|
691
|
+
refreshEventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
692
|
+
emptyTitle: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
693
|
+
$l10n: z.ZodString;
|
|
694
|
+
default: z.ZodOptional<z.ZodString>;
|
|
695
|
+
}, z.core.$strip>]>>;
|
|
696
|
+
emptyDescription: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
697
|
+
$l10n: z.ZodString;
|
|
698
|
+
default: z.ZodOptional<z.ZodString>;
|
|
699
|
+
}, z.core.$strip>]>>;
|
|
700
|
+
loadHandlerId: z.ZodString;
|
|
701
|
+
saveHandlerId: z.ZodOptional<z.ZodString>;
|
|
702
|
+
}, z.core.$strip>;
|
|
703
|
+
type WorkbenchExtensionFileRendererRecord = z.infer<typeof extensionFileRendererRecordSchema>;
|
|
704
|
+
type WorkbenchExtensionTreeRendererRecord = z.infer<typeof extensionTreeRendererRecordSchema>;
|
|
705
|
+
//#endregion
|
|
706
|
+
//#region ../pstdio-api-contracts/src/extensions/settings.d.ts
|
|
707
|
+
declare const extensionSettingDefinitionRecordSchema: z.ZodObject<{
|
|
708
|
+
key: z.ZodString;
|
|
709
|
+
extensionId: z.ZodString;
|
|
710
|
+
type: z.ZodEnum<{
|
|
711
|
+
string: "string";
|
|
712
|
+
number: "number";
|
|
713
|
+
boolean: "boolean";
|
|
714
|
+
object: "object";
|
|
715
|
+
array: "array";
|
|
716
|
+
}>;
|
|
717
|
+
scope: z.ZodEnum<{
|
|
718
|
+
global: "global";
|
|
719
|
+
project: "project";
|
|
720
|
+
}>;
|
|
721
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
722
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
723
|
+
title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
724
|
+
$l10n: z.ZodString;
|
|
725
|
+
default: z.ZodOptional<z.ZodString>;
|
|
726
|
+
}, z.core.$strip>]>>;
|
|
727
|
+
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
728
|
+
$l10n: z.ZodString;
|
|
729
|
+
default: z.ZodOptional<z.ZodString>;
|
|
730
|
+
}, z.core.$strip>]>>;
|
|
731
|
+
}, z.core.$strip>;
|
|
732
|
+
declare const extensionSettingsSectionRecordSchema: z.ZodObject<{
|
|
733
|
+
id: z.ZodString;
|
|
734
|
+
extensionId: z.ZodString;
|
|
735
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
736
|
+
$l10n: z.ZodString;
|
|
737
|
+
default: z.ZodOptional<z.ZodString>;
|
|
738
|
+
}, z.core.$strip>]>;
|
|
739
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
740
|
+
global: "global";
|
|
741
|
+
project: "project";
|
|
742
|
+
}>>;
|
|
743
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
744
|
+
}, z.core.$strip>;
|
|
745
|
+
type ExtensionSettingDefinitionRecord = z.infer<typeof extensionSettingDefinitionRecordSchema>;
|
|
746
|
+
type ExtensionSettingsSectionRecord = z.infer<typeof extensionSettingsSectionRecordSchema>;
|
|
747
|
+
//#endregion
|
|
748
|
+
//#region src/extensions/contributions/controls-renderer-contributions.d.ts
|
|
749
|
+
interface WorkbenchExtensionControlsAdapter {
|
|
750
|
+
/** Supply a fallback resource when the widget placement carries none. */
|
|
751
|
+
resolveResource?: (record: WorkbenchExtensionControlsRendererRecord) => ResourceRef$1 | undefined;
|
|
752
|
+
}
|
|
753
|
+
export declare const registerWorkbenchExtensionControlsRenderers: (context: WorkbenchExtensionCommandContext, records: WorkbenchExtensionControlsRendererRecord[], adapter?: WorkbenchExtensionControlsAdapter) => Disposable;
|
|
754
|
+
//#endregion
|
|
755
|
+
//#region src/extensions/contributions/data-table-renderer-contributions.d.ts
|
|
756
|
+
export declare const registerWorkbenchExtensionDataTableRenderers: (context: WorkbenchExtensionCommandContext, records: WorkbenchExtensionDataTableRendererRecord[]) => Disposable;
|
|
757
|
+
//#endregion
|
|
758
|
+
//#region src/extensions/contributions/extension-contributions.d.ts
|
|
759
|
+
interface WorkbenchExtensionMenuSlotConfig {
|
|
760
|
+
menuPath: MenuPath;
|
|
761
|
+
group?: string;
|
|
762
|
+
overflowLabel?: string;
|
|
763
|
+
}
|
|
764
|
+
type WorkbenchExtensionMenuWhenBuilder = (contribution: ExtensionMenuContribution) => string | undefined;
|
|
765
|
+
type WorkbenchExtensionStringResolver = (value: Localizable<string> | undefined, extensionId: string) => string;
|
|
766
|
+
interface WorkbenchExtensionMenuRegistration {
|
|
767
|
+
command: Command;
|
|
768
|
+
contribution: ExtensionMenuContribution;
|
|
769
|
+
menuItem: MenuItem;
|
|
770
|
+
menuPath: MenuPath;
|
|
771
|
+
targetCommandId: string;
|
|
772
|
+
}
|
|
773
|
+
interface WorkbenchExtensionCommandPaletteRegistration {
|
|
774
|
+
command: Command;
|
|
775
|
+
contribution: ExtensionCommandPaletteContribution;
|
|
776
|
+
menuItem: MenuItem;
|
|
777
|
+
targetCommandId: string;
|
|
778
|
+
}
|
|
779
|
+
interface UnresolvedWorkbenchExtensionMenuContribution {
|
|
780
|
+
contribution: ExtensionMenuContribution;
|
|
781
|
+
targetId: string;
|
|
782
|
+
}
|
|
783
|
+
export declare const emptyWorkbenchExtensionMetadata: {
|
|
784
|
+
commands: never[];
|
|
785
|
+
commandPaletteContributions: never[];
|
|
786
|
+
diagnostics: never[];
|
|
787
|
+
extensions: never[];
|
|
788
|
+
menuContributions: never[];
|
|
789
|
+
modes: never[];
|
|
790
|
+
pages: never[];
|
|
791
|
+
views: never[];
|
|
792
|
+
viewMenus: never[];
|
|
793
|
+
placements: never[];
|
|
794
|
+
resourceKinds: never[];
|
|
795
|
+
navigationItems: never[];
|
|
796
|
+
navigationTrees: never[];
|
|
797
|
+
statusBarItems: never[];
|
|
798
|
+
statuses: never[];
|
|
799
|
+
settingsPanels: never[];
|
|
800
|
+
settingsDefinitions: never[];
|
|
801
|
+
};
|
|
802
|
+
type CommandContributionMetadata = Pick<WorkbenchExtensionMetadata$1, "commands" | "commandPaletteContributions" | "menuContributions">;
|
|
803
|
+
export declare const buildWorkbenchExtensionMenuRegistrations: (input: {
|
|
804
|
+
metadata: CommandContributionMetadata;
|
|
805
|
+
menuSlotsById: ReadonlyMap<string, WorkbenchExtensionMenuSlotConfig>;
|
|
806
|
+
menuTargetsById?: ReadonlyMap<string, WorkbenchExtensionMenuSlotConfig>;
|
|
807
|
+
createCommandId?: (contribution: ExtensionMenuContribution) => string;
|
|
808
|
+
createWhenExpression?: WorkbenchExtensionMenuWhenBuilder;
|
|
809
|
+
resolveString?: WorkbenchExtensionStringResolver;
|
|
810
|
+
}) => {
|
|
811
|
+
registrations: WorkbenchExtensionMenuRegistration[];
|
|
812
|
+
unresolved: UnresolvedWorkbenchExtensionMenuContribution[];
|
|
813
|
+
};
|
|
814
|
+
export declare const buildWorkbenchExtensionCommandPaletteRegistrations: (input: {
|
|
815
|
+
metadata: CommandContributionMetadata;
|
|
816
|
+
createCommandId?: (contribution: ExtensionCommandPaletteContribution) => string;
|
|
817
|
+
resolveString?: WorkbenchExtensionStringResolver;
|
|
818
|
+
}) => WorkbenchExtensionCommandPaletteRegistration[];
|
|
819
|
+
//#endregion
|
|
820
|
+
//#region src/extensions/host/internal-workbench-extension-metadata.d.ts
|
|
821
|
+
type MetadataView = WorkbenchExtensionMetadata$1["views"][number];
|
|
822
|
+
type MetadataWebview = Extract<MetadataView["body"], {
|
|
823
|
+
kind: "webview";
|
|
824
|
+
}>["webview"];
|
|
825
|
+
type MetadataRendererKind = Exclude<MetadataView["body"]["kind"], "webview">;
|
|
826
|
+
interface InternalWorkbenchExtensionPanelMenu {
|
|
827
|
+
id: string;
|
|
828
|
+
extensionId: string;
|
|
829
|
+
ownerPanelId: string;
|
|
830
|
+
viewId: string;
|
|
831
|
+
title: MetadataView["title"];
|
|
832
|
+
side: "left" | "right";
|
|
833
|
+
group?: string;
|
|
834
|
+
placement?: "first" | "default" | "last";
|
|
835
|
+
hostTreeHeader?: "default" | "none";
|
|
836
|
+
hostTreeFooter?: "default" | "none";
|
|
837
|
+
webview?: MetadataWebview;
|
|
838
|
+
renderer?: {
|
|
839
|
+
kind: MetadataRendererKind;
|
|
840
|
+
id: string;
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
interface InternalWorkbenchExtensionPanel {
|
|
844
|
+
id: string;
|
|
845
|
+
extensionId: string;
|
|
846
|
+
title: MetadataView["title"];
|
|
847
|
+
icon?: string;
|
|
848
|
+
webview?: MetadataWebview;
|
|
849
|
+
renderer?: {
|
|
850
|
+
kind: MetadataRendererKind;
|
|
851
|
+
id: string;
|
|
852
|
+
};
|
|
853
|
+
panelMenus?: InternalWorkbenchExtensionPanelMenu[];
|
|
854
|
+
}
|
|
855
|
+
interface InternalWorkbenchExtensionMetadata {
|
|
856
|
+
extensions: WorkbenchExtensionMetadata$1["extensions"];
|
|
857
|
+
commands: WorkbenchExtensionMetadata$1["commands"];
|
|
858
|
+
menuContributions: ExtensionMenuContribution$1[];
|
|
859
|
+
commandPaletteContributions: WorkbenchExtensionMetadata$1["commandPaletteContributions"];
|
|
860
|
+
modes: Array<{
|
|
861
|
+
id: string;
|
|
862
|
+
extensionId: string;
|
|
863
|
+
modeId: string;
|
|
864
|
+
label: WorkbenchExtensionMetadata$1["modes"][number]["label"];
|
|
865
|
+
icon?: string;
|
|
866
|
+
defaultTheme?: string;
|
|
867
|
+
chrome?: Partial<Record<"nav" | "sidenav" | "activity" | "status", string | false>>;
|
|
868
|
+
panelRegions: WorkbenchExtensionMetadata$1["modes"][number]["regions"];
|
|
869
|
+
regionSettings?: WorkbenchExtensionMetadata$1["modes"][number]["regionSettings"];
|
|
870
|
+
floatingPanels?: WorkbenchExtensionMetadata$1["modes"][number]["floatingPanels"];
|
|
871
|
+
}>;
|
|
872
|
+
pages: WorkbenchPageContribution[];
|
|
873
|
+
placements: Array<{
|
|
874
|
+
id: string;
|
|
875
|
+
ref: {
|
|
876
|
+
extensionId: string;
|
|
877
|
+
kind: "placement";
|
|
878
|
+
id: string;
|
|
879
|
+
};
|
|
880
|
+
modeId: string;
|
|
881
|
+
item: WorkbenchOwnedPlacementItem;
|
|
882
|
+
region: "main" | "secondary" | "side";
|
|
883
|
+
order?: number;
|
|
884
|
+
movableTo?: readonly ("main" | "secondary" | "side")[];
|
|
885
|
+
} & WorkbenchPlacementPresentation>;
|
|
886
|
+
panels: InternalWorkbenchExtensionPanel[];
|
|
887
|
+
resourceKinds: Array<{
|
|
888
|
+
id: string;
|
|
889
|
+
extensionId: string;
|
|
890
|
+
label?: WorkbenchExtensionMetadata$1["resourceKinds"][number]["label"];
|
|
891
|
+
icon?: string;
|
|
892
|
+
menuSlots: Record<string, {
|
|
893
|
+
placement: "header-primary" | "header-overflow" | "context-menu";
|
|
894
|
+
external: boolean;
|
|
895
|
+
order?: number;
|
|
896
|
+
}>;
|
|
897
|
+
}>;
|
|
898
|
+
resourceHierarchyProviders: Array<{
|
|
899
|
+
id: string;
|
|
900
|
+
extensionId: string;
|
|
901
|
+
resourceKind: string;
|
|
902
|
+
}>;
|
|
903
|
+
settingsSections: ExtensionSettingsSectionRecord[];
|
|
904
|
+
settingsPanels: Array<{
|
|
905
|
+
id: string;
|
|
906
|
+
extensionId: string;
|
|
907
|
+
viewId: string;
|
|
908
|
+
slotId: string;
|
|
909
|
+
scope: "global" | "project";
|
|
910
|
+
title: MetadataView["title"];
|
|
911
|
+
icon?: string;
|
|
912
|
+
section?: string;
|
|
913
|
+
}>;
|
|
914
|
+
kanbanRenderers: WorkbenchExtensionKanbanRendererRecord[];
|
|
915
|
+
dataTableRenderers: WorkbenchExtensionDataTableRendererRecord[];
|
|
916
|
+
commandPaletteResources: WorkbenchExtensionCommandPaletteResourceRecord$1[];
|
|
917
|
+
treeRenderers: WorkbenchExtensionTreeRendererRecord[];
|
|
918
|
+
fileRenderers: WorkbenchExtensionFileRendererRecord[];
|
|
919
|
+
controlsRenderers: WorkbenchExtensionControlsRendererRecord[];
|
|
920
|
+
keybindings: ExtensionKeybindingRecord[];
|
|
921
|
+
settingsDefinitions: ExtensionSettingDefinitionRecord[];
|
|
922
|
+
statuses: WorkbenchExtensionMetadata$1["statuses"];
|
|
923
|
+
statusBarItems: Array<{
|
|
924
|
+
id: string;
|
|
925
|
+
extensionId: string;
|
|
926
|
+
viewId: string;
|
|
927
|
+
slot: "leading" | "trailing";
|
|
928
|
+
order?: number;
|
|
929
|
+
when?: {
|
|
930
|
+
mode?: string | string[];
|
|
931
|
+
source?: string[];
|
|
932
|
+
viewId?: string | string[];
|
|
933
|
+
resourceType?: string[];
|
|
934
|
+
metadata?: Record<string, unknown>;
|
|
935
|
+
};
|
|
936
|
+
}>;
|
|
937
|
+
diagnostics: WorkbenchExtensionMetadata$1["diagnostics"];
|
|
938
|
+
}
|
|
939
|
+
//#endregion
|
|
940
|
+
//#region src/extensions/contributions/file-renderer-contributions.d.ts
|
|
941
|
+
interface RegisterWorkbenchExtensionFileRenderersInput {
|
|
942
|
+
executeCommand(commandId: string, body: CommandExecuteRequest): Promise<unknown> | unknown;
|
|
943
|
+
metadata: InternalWorkbenchExtensionMetadata;
|
|
944
|
+
projectId: string;
|
|
945
|
+
workbench: WorkbenchModuleContext;
|
|
946
|
+
}
|
|
947
|
+
export declare const fileRendererRefreshEnvelopeFromCommand: (body: CommandExecuteRequest, response: CommandExecuteResponse) => FileRendererRefreshEnvelope | undefined;
|
|
948
|
+
export declare const registerWorkbenchExtensionFileRenderers: (input: RegisterWorkbenchExtensionFileRenderersInput) => {
|
|
949
|
+
dispose(): void;
|
|
950
|
+
};
|
|
951
|
+
//#endregion
|
|
952
|
+
//#region src/extensions/contributions/kanban-renderer-contribution-helpers.d.ts
|
|
953
|
+
type KanbanRendererRow = Awaited<ReturnType<ReactKanbanRendererContribution["executeQuery"]>>[number];
|
|
954
|
+
type RowAction = NonNullable<WorkbenchExtensionKanbanRendererRecord["rowActions"]>[number];
|
|
955
|
+
type Localizer = (value: unknown, fallback?: string) => string;
|
|
956
|
+
//#endregion
|
|
957
|
+
//#region src/extensions/contributions/kanban-renderer-contributions.d.ts
|
|
958
|
+
interface WorkbenchExtensionKanbanRendererAdapter {
|
|
959
|
+
/** Override label resolution. Defaults to workbench's `text(value, fallback)`. */
|
|
960
|
+
resolveLabel?: Localizer;
|
|
961
|
+
/** Post-process an attribute descriptor (after localization). Defaults to identity. */
|
|
962
|
+
decorateAttribute?: (record: WorkbenchExtensionKanbanRendererRecord, attribute: ReactAttributeDescriptor) => ReactAttributeDescriptor;
|
|
963
|
+
/**
|
|
964
|
+
* Translate a row's transport-shaped resource (`{ type, id }`) into a workbench
|
|
965
|
+
* `ResourceRef`. Defaults to the workbench `pstdio://extension-resource/...`
|
|
966
|
+
* scheme — dashboard supplies its own. Returns `undefined` for rows that do not
|
|
967
|
+
* carry an explicit resource.
|
|
968
|
+
*/
|
|
969
|
+
resolveRowResource?: (record: WorkbenchExtensionKanbanRendererRecord, row: KanbanRendererRow) => ResourceRef$1 | undefined;
|
|
970
|
+
/**
|
|
971
|
+
* Synthesize a `ResourceRef` for row-action execution context when the row does
|
|
972
|
+
* not carry an explicit resource. Defaults to a `pstdio://extension-resource/`
|
|
973
|
+
* fallback built from `record.resourceKind` and `row.id`.
|
|
974
|
+
*/
|
|
975
|
+
resolveRowActionResource?: (record: WorkbenchExtensionKanbanRendererRecord, row: KanbanRendererRow) => ResourceRef$1 | undefined;
|
|
976
|
+
/**
|
|
977
|
+
* Override the row-action runner. `runDefault` performs the workbench's standard
|
|
978
|
+
* flow (look up the row-action command, request params if needed, execute it).
|
|
979
|
+
*/
|
|
980
|
+
executeRowAction?: (input: {
|
|
981
|
+
record: WorkbenchExtensionKanbanRendererRecord;
|
|
982
|
+
action: RowAction;
|
|
983
|
+
row: KanbanRendererRow;
|
|
984
|
+
resource: ResourceRef$1 | undefined;
|
|
985
|
+
runDefault: () => Promise<void>;
|
|
986
|
+
}) => void | Promise<void>;
|
|
987
|
+
/**
|
|
988
|
+
* Handle a row click when the renderer has no declared activation handler.
|
|
989
|
+
*/
|
|
990
|
+
onRowClick?: (input: {
|
|
991
|
+
record: WorkbenchExtensionKanbanRendererRecord;
|
|
992
|
+
row: KanbanRendererRow;
|
|
993
|
+
resource: ResourceRef$1 | undefined;
|
|
994
|
+
}) => void;
|
|
995
|
+
/** Called after a successful renderer-owned create form submission. */
|
|
996
|
+
onAfterCreate?: (input: {
|
|
997
|
+
record: WorkbenchExtensionKanbanRendererRecord;
|
|
998
|
+
created: unknown;
|
|
999
|
+
submission: KanbanRendererCreateSubmission;
|
|
1000
|
+
}) => void | Promise<void>;
|
|
1001
|
+
/**
|
|
1002
|
+
* Called after any mutation (attribute change, reorder, column action, default
|
|
1003
|
+
* create) resolves successfully. Hosts that drive refresh via the outer command
|
|
1004
|
+
* pipeline (testbench / workbench) leave this unset; dashboard supplies
|
|
1005
|
+
* `ctx.views.refreshView(id)`.
|
|
1006
|
+
*/
|
|
1007
|
+
onAfterMutation?: (record: WorkbenchExtensionKanbanRendererRecord) => void;
|
|
1008
|
+
}
|
|
1009
|
+
export declare const registerWorkbenchExtensionKanbanRenderers: (context: WorkbenchExtensionCommandContext, records: readonly WorkbenchExtensionKanbanRendererRecord[], adapter?: WorkbenchExtensionKanbanRendererAdapter) => {
|
|
1010
|
+
dispose(): void;
|
|
1011
|
+
};
|
|
1012
|
+
//#endregion
|
|
1013
|
+
//#region src/extensions/contributions/tree-renderer-contribution-types.d.ts
|
|
1014
|
+
type ExtensionTreeRendererRecord = NonNullable<InternalWorkbenchExtensionMetadata["treeRenderers"]>[number];
|
|
1015
|
+
type ExtensionTreeViewRecord = InternalWorkbenchExtensionMetadata["panels"][number] | NonNullable<InternalWorkbenchExtensionMetadata["panels"][number]["panelMenus"]>[number];
|
|
1016
|
+
type ExtensionTreeResource = ResourceRef;
|
|
1017
|
+
//#endregion
|
|
1018
|
+
//#region src/extensions/contributions/tree-renderer-host-defaults.d.ts
|
|
1019
|
+
interface HostTreeDefaultNodesInput {
|
|
1020
|
+
ctx: TreeContext;
|
|
1021
|
+
record: ExtensionTreeRendererRecord;
|
|
1022
|
+
panel: ExtensionTreeViewRecord;
|
|
1023
|
+
}
|
|
1024
|
+
type HostTreeDefaultNodesResolver = (input: HostTreeDefaultNodesInput) => Promise<TreeNode[]> | TreeNode[];
|
|
1025
|
+
//#endregion
|
|
1026
|
+
//#region src/extensions/contributions/tree-renderer-contributions.d.ts
|
|
1027
|
+
interface RegisterWorkbenchExtensionTreeRenderersInput {
|
|
1028
|
+
executeCommand(commandId: string, body: CommandExecuteRequest): Promise<unknown> | unknown;
|
|
1029
|
+
getHostTreeFooterNodes?: HostTreeDefaultNodesResolver;
|
|
1030
|
+
getHostTreeHeaderNodes?: HostTreeDefaultNodesResolver;
|
|
1031
|
+
metadata: InternalWorkbenchExtensionMetadata;
|
|
1032
|
+
projectId: string;
|
|
1033
|
+
/**
|
|
1034
|
+
* Host canonicalization for node resources. A host that gives extension
|
|
1035
|
+
* resources its own URIs (layout scopes, history, and hierarchy key on the
|
|
1036
|
+
* URI) must convert tree node resources the same way, or the same resource
|
|
1037
|
+
* gets a second identity when opened from a tree.
|
|
1038
|
+
*/
|
|
1039
|
+
resolveNodeResource?: (resource: ExtensionTreeResource) => ResourceRef$1;
|
|
1040
|
+
workbench: WorkbenchModuleContext;
|
|
1041
|
+
}
|
|
1042
|
+
export declare const registerWorkbenchExtensionTreeRenderers: (input: RegisterWorkbenchExtensionTreeRenderersInput) => {
|
|
1043
|
+
dispose(): void;
|
|
1044
|
+
};
|
|
1045
|
+
//#endregion
|
|
1046
|
+
//#region src/extensions/host/extension-navigation-target.d.ts
|
|
1047
|
+
interface ToWorkbenchNavigationTargetInput {
|
|
1048
|
+
commandIdOf?(command: Extract<NavigationTarget, {
|
|
1049
|
+
kind: "command";
|
|
1050
|
+
}>["target"]["command"]): string | undefined;
|
|
1051
|
+
commandTargetOf?(target: Extract<NavigationTarget, {
|
|
1052
|
+
kind: "command";
|
|
1053
|
+
}>): NavigationTargetCommand;
|
|
1054
|
+
extensionId?: string;
|
|
1055
|
+
projectId?: string;
|
|
1056
|
+
}
|
|
1057
|
+
type NavigationOperation = Extract<NavigationTarget, {
|
|
1058
|
+
kind: "page" | "panel";
|
|
1059
|
+
}>;
|
|
1060
|
+
export declare function toWorkbenchNavigationTarget(target: NavigationOperation, input?: ToWorkbenchNavigationTargetInput): NavigationOperation;
|
|
1061
|
+
export declare function toWorkbenchNavigationTarget(target: NavigationTarget, input?: ToWorkbenchNavigationTargetInput): NavigationTarget$1;
|
|
1062
|
+
export declare const isExtensionNavigationTarget: (value: unknown) => value is NavigationTarget;
|
|
1063
|
+
export declare const toWorkbenchNavigationTargetResult: (value: unknown, input?: ToWorkbenchNavigationTargetInput) => NavigationTarget$1 | undefined;
|
|
1064
|
+
//#endregion
|
|
1065
|
+
//#region src/extensions/host/workbench-extension-refresh.d.ts
|
|
1066
|
+
type WorkbenchExtensionRendererKind = "tree" | "file" | "controls" | "dataTable" | "kanban";
|
|
1067
|
+
interface RendererRefreshTarget {
|
|
1068
|
+
id: string;
|
|
1069
|
+
kind: WorkbenchExtensionRendererKind;
|
|
1070
|
+
}
|
|
1071
|
+
interface WorkbenchExtensionRefreshEvent extends FileRendererRefreshEnvelope {
|
|
1072
|
+
id: string;
|
|
1073
|
+
}
|
|
1074
|
+
interface RegisterWorkbenchExtensionRendererRefreshEventsInput {
|
|
1075
|
+
metadata: WorkbenchExtensionMetadata$1;
|
|
1076
|
+
subscribe: (listener: (event: WorkbenchExtensionRefreshEvent) => void) => Disposable;
|
|
1077
|
+
workbench: WorkbenchModuleContext;
|
|
1078
|
+
}
|
|
1079
|
+
export declare const refreshWorkbenchExtensionRenderer: (workbench: WorkbenchModuleContext, target: RendererRefreshTarget, envelope?: FileRendererRefreshEnvelope) => void;
|
|
1080
|
+
export declare const registerWorkbenchExtensionRendererRefreshEvents: (input: RegisterWorkbenchExtensionRendererRefreshEventsInput) => Disposable;
|
|
1081
|
+
export declare const refreshOpenWorkbenchExtensionWebviews: (workbench: WorkbenchModuleContext, metadata: WorkbenchExtensionMetadata$1) => void;
|
|
1082
|
+
//#endregion
|
|
1083
|
+
//#region src/extensions/host/workbench-extension-host-types.d.ts
|
|
1084
|
+
interface WorkbenchExtensionHostMenuRegistration extends Omit<WorkbenchExtensionMenuRegistration, "menuItem" | "menuPath"> {
|
|
1085
|
+
menuItems: Array<{
|
|
1086
|
+
menuItem: MenuItem;
|
|
1087
|
+
menuPath: MenuPath;
|
|
1088
|
+
}>;
|
|
1089
|
+
}
|
|
1090
|
+
interface RegisterWorkbenchExtensionContributionsInput {
|
|
1091
|
+
createKeybindingWhenExpression?: (when: ExtensionKeybindingRecord["when"]) => string | undefined;
|
|
1092
|
+
createMenuWhenExpression?: WorkbenchExtensionMenuWhenBuilder;
|
|
1093
|
+
createNavigationWhenExpression?: (when: WorkbenchExtensionMetadata$1["navigationItems"][number]["when"]) => string | undefined;
|
|
1094
|
+
createWebviewHostCapabilities?: CreateBridgeWebviewHostCapabilities;
|
|
1095
|
+
createWebviewHostCapabilityOverrides?: CreateBridgeWebviewHostCapabilities;
|
|
1096
|
+
createWebviewProps?: CreateBridgeWebviewProps;
|
|
1097
|
+
createWebviewTheme?: CreateBridgeWebviewTheme;
|
|
1098
|
+
executeCommand(commandId: string, body: CommandExecuteRequest): Promise<unknown> | unknown;
|
|
1099
|
+
kanbanAdapter?: WorkbenchExtensionKanbanRendererAdapter;
|
|
1100
|
+
menuSlotsById?: ReadonlyMap<string, WorkbenchExtensionMenuSlotConfig>;
|
|
1101
|
+
menuTargetsById?: ReadonlyMap<string, WorkbenchExtensionMenuSlotConfig>;
|
|
1102
|
+
menuRegistrations?: readonly WorkbenchExtensionHostMenuRegistration[];
|
|
1103
|
+
metadata: WorkbenchExtensionMetadata$1;
|
|
1104
|
+
openHref?: (href: string) => unknown;
|
|
1105
|
+
prepareCommandArgs?(commandId: string, args: unknown, context?: WorkbenchCommandExecutionContext, onArgsChange?: (args: unknown) => void): Promise<unknown> | unknown;
|
|
1106
|
+
projectId: string;
|
|
1107
|
+
resolveTreeNodeResource?: RegisterWorkbenchExtensionTreeRenderersInput["resolveNodeResource"];
|
|
1108
|
+
renderWebview?(input: WorkbenchPanelRenderInput): unknown;
|
|
1109
|
+
settingsSectionId?: string;
|
|
1110
|
+
settingsSectionTitle?: string;
|
|
1111
|
+
subscribeRefreshEvents?: (listener: (event: WorkbenchExtensionRefreshEvent) => void) => Disposable;
|
|
1112
|
+
webviewArtifacts?: ExtensionWebviewArtifactCapabilities;
|
|
1113
|
+
webviewFiles?: ExtensionWebviewFileCapabilities;
|
|
1114
|
+
workbench: WorkbenchModuleContext;
|
|
1115
|
+
}
|
|
1116
|
+
//#endregion
|
|
1117
|
+
//#region src/extensions/host/workbench-extension-host.d.ts
|
|
1118
|
+
export declare const registerWorkbenchExtensionContributions: (sourceInput: RegisterWorkbenchExtensionContributionsInput) => {
|
|
1119
|
+
dispose(): void;
|
|
1120
|
+
};
|
|
1121
|
+
//#endregion
|
|
1122
|
+
//#region src/extensions/host/workbench-extension-metadata-ref.d.ts
|
|
1123
|
+
export declare const toWorkbenchWhenExpression: (when: WorkbenchExtensionMetadata$1["navigationItems"][number]["when"] | WorkbenchExtensionMetadata$1["statusBarItems"][number]["when"]) => {
|
|
1124
|
+
mode: string | string[] | undefined;
|
|
1125
|
+
source: ("schedule" | "automation" | "api" | "event" | "cli" | "dashboard" | "command-panel")[] | undefined;
|
|
1126
|
+
viewId: string | string[] | undefined;
|
|
1127
|
+
resourceType: string[] | undefined;
|
|
1128
|
+
metadata: Record<string, unknown> | undefined;
|
|
1129
|
+
} | undefined;
|
|
1130
|
+
//#endregion
|
|
1131
|
+
export type { BridgeWebviewConfig, BridgeWebviewRenderContext, CreateBridgeWebviewHostCapabilities, CreateBridgeWebviewProps, CreateBridgeWebviewTheme, ExtensionWebviewArtifactCapabilities, ExtensionWebviewFileCapabilities, RegisterWorkbenchExtensionContributionsInput, RegisterWorkbenchExtensionFileRenderersInput, RegisterWorkbenchExtensionRendererRefreshEventsInput, RegisterWorkbenchExtensionTreeRenderersInput, ToWorkbenchNavigationTargetInput, WorkbenchExtensionCommandContext, WorkbenchExtensionCommandPaletteRegistration, WorkbenchExtensionControlsAdapter, WorkbenchExtensionHostMenuRegistration, WorkbenchExtensionKanbanRendererAdapter, WorkbenchExtensionMenuRegistration, WorkbenchExtensionMenuSlotConfig, WorkbenchExtensionMenuWhenBuilder, WorkbenchExtensionMetadata, WorkbenchExtensionRendererKind };
|
|
1132
|
+
export {};
|