@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/react.d.ts
CHANGED
|
@@ -1,2846 +1,398 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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
|
-
declare
|
|
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
|
-
declare
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
declare
|
|
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
|
-
declare
|
|
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
|
-
declare
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
declare
|
|
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
|
-
export declare const
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
declare
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
declare type DataTableRendererColumnStat = {
|
|
400
|
-
type: "unique";
|
|
401
|
-
} | {
|
|
402
|
-
type: "histogram";
|
|
403
|
-
bins?: number;
|
|
404
|
-
} | {
|
|
405
|
-
type: "top-values";
|
|
406
|
-
limit?: number;
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
declare interface DataTableRendererContribution {
|
|
410
|
-
id: string;
|
|
411
|
-
title: string;
|
|
412
|
-
resourceKind?: string;
|
|
413
|
-
columns?: DataTableRendererColumn[];
|
|
414
|
-
selectionMode?: "none" | "multiple";
|
|
415
|
-
selectionActions?: DataTableRendererSelectionAction[];
|
|
416
|
-
rowActions?: DataTableRendererRowAction[];
|
|
417
|
-
initialPageSize?: number;
|
|
418
|
-
pageSizeOptions?: number[];
|
|
419
|
-
emptyTitle?: string;
|
|
420
|
-
emptyDescription?: string;
|
|
421
|
-
executeQuery(context: DataTableRendererQueryContext): Promise<DataTableRendererQueryResult> | DataTableRendererQueryResult;
|
|
422
|
-
subscribe?: (listener: () => void) => Disposable_2 | (() => void);
|
|
423
|
-
onRowActivate?: (row: DataTableRendererRow) => Promise<void> | void;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
declare interface DataTableRendererQueryContext {
|
|
427
|
-
resource?: ResourceRef;
|
|
428
|
-
modeId?: string;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
declare interface DataTableRendererQueryResult {
|
|
432
|
-
rows: DataTableRendererRow[];
|
|
433
|
-
columns?: DataTableRendererColumn[];
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
declare interface DataTableRendererRow {
|
|
437
|
-
id: string;
|
|
438
|
-
values: Record<string, unknown>;
|
|
439
|
-
resource?: ResourceRef;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
declare interface DataTableRendererRowAction {
|
|
443
|
-
id: string;
|
|
444
|
-
label: string;
|
|
445
|
-
icon?: unknown;
|
|
446
|
-
destructive?: boolean;
|
|
447
|
-
run(row: DataTableRendererRow): Promise<void> | void;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
declare interface DataTableRendererSelectionAction {
|
|
451
|
-
id: string;
|
|
452
|
-
label: string;
|
|
453
|
-
icon?: unknown;
|
|
454
|
-
destructive?: boolean;
|
|
455
|
-
run(rows: DataTableRendererRow[]): Promise<void> | void;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
declare interface DataTableRendererThemeColor {
|
|
459
|
-
light: string;
|
|
460
|
-
dark: string;
|
|
461
|
-
foreground?: {
|
|
462
|
-
light: string;
|
|
463
|
-
dark: string;
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
declare interface Disposable_2 {
|
|
468
|
-
dispose(): void;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
export declare const disposeWorkbenchModuleHostRegistrations: (registrations: Map<string, WorkbenchModuleHostRegistration>) => void;
|
|
472
|
-
|
|
473
|
-
declare type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
|
|
474
|
-
|
|
475
|
-
declare interface EnumOption {
|
|
476
|
-
value: string;
|
|
477
|
-
label: string;
|
|
478
|
-
color?: string;
|
|
479
|
-
icon?: string | null;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
declare type EnumOptions = EnumOption[] | EnumOptionsSource;
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* Reactive options source for enum / enum-multi attributes. Mirrors React's
|
|
486
|
-
* useSyncExternalStore contract so a contribution can hand its options off as
|
|
487
|
-
* a live collection instead of a frozen array.
|
|
488
|
-
*/
|
|
489
|
-
declare interface EnumOptionsSource {
|
|
490
|
-
subscribe: (listener: () => void) => () => void;
|
|
491
|
-
getSnapshot: () => EnumOption[];
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* Core-owned contract for file icon theme registrations. Structurally identical
|
|
496
|
-
* to @pstdio/ui's FileIconThemePreferenceOption; the React layer bridges the two
|
|
497
|
-
* so core does not depend on UI package ownership.
|
|
498
|
-
*/
|
|
499
|
-
declare interface FileIconThemeFont {
|
|
500
|
-
fontFamily: string;
|
|
501
|
-
src: {
|
|
502
|
-
url: string;
|
|
503
|
-
format?: string;
|
|
504
|
-
}[];
|
|
505
|
-
weight?: string;
|
|
506
|
-
style?: string;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
declare interface FileIconThemePreferenceOption {
|
|
510
|
-
id: string;
|
|
511
|
-
title?: string;
|
|
512
|
-
definitions: Record<string, unknown>;
|
|
513
|
-
fileExtensions: Record<string, string>;
|
|
514
|
-
fileNames: Record<string, string>;
|
|
515
|
-
defaults: {
|
|
516
|
-
file?: string;
|
|
517
|
-
folder?: string;
|
|
518
|
-
};
|
|
519
|
-
fonts: FileIconThemeFont[];
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
declare interface FileIconThemeRegistry {
|
|
523
|
-
store: WorkbenchStore<WorkbenchFileIconThemeStoreState>;
|
|
524
|
-
register(themes: readonly FileIconThemePreferenceOption[]): Disposable_2;
|
|
525
|
-
listThemes(): readonly FileIconThemePreferenceOption[];
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
declare interface FileRendererContent {
|
|
529
|
-
fileName?: string;
|
|
530
|
-
/** Workspace-relative path shown above the file preview. */
|
|
531
|
-
filePath?: string;
|
|
532
|
-
mimeType?: string;
|
|
533
|
-
content?: string;
|
|
534
|
-
dataUrl?: string;
|
|
535
|
-
placeholder?: string;
|
|
536
|
-
/** Override contribution-level save support for one loaded file. */
|
|
537
|
-
editable?: boolean;
|
|
538
|
-
/** Request Monaco for text that automatic dispatch would open as markdown. */
|
|
539
|
-
textRenderer?: "automatic" | "monaco";
|
|
540
|
-
/** Represent a deliberate no-file selection without an editable blank document. */
|
|
541
|
-
emptyState?: {
|
|
542
|
-
title: string;
|
|
543
|
-
description?: string;
|
|
544
|
-
};
|
|
545
|
-
/** Ordered backing-store revision when one is available. */
|
|
546
|
-
revision?: string;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
declare interface FileRendererContribution {
|
|
550
|
-
id: string;
|
|
551
|
-
title: string;
|
|
552
|
-
resourceKind?: string;
|
|
553
|
-
/** Resolve the file's content (and identity) for the bound resource. */
|
|
554
|
-
load(resource: ResourceRef | undefined): Promise<FileRendererContent> | FileRendererContent;
|
|
555
|
-
/** Persist edited text. Absent ⇒ read-only. Never called for images. */
|
|
556
|
-
save?(resource: ResourceRef | undefined, content: string, origin?: FileRendererRefreshOrigin): Promise<FileRendererSaveResult | undefined> | FileRendererSaveResult | void;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
declare interface FileRendererRefreshOrigin {
|
|
560
|
-
rendererId: string;
|
|
561
|
-
instanceId: string;
|
|
562
|
-
operationId: string;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
declare interface FileRendererSaveResult {
|
|
566
|
-
revision?: string;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
export declare const isCommandFilesParamValue: (value: unknown) => value is CommandFilesParamValue;
|
|
570
|
-
|
|
571
|
-
declare interface KanbanRendererContribution<TRow extends KanbanRendererRow = KanbanRendererRow, TNode = unknown, TIcon = unknown> {
|
|
572
|
-
id: string;
|
|
573
|
-
title: string;
|
|
574
|
-
resourceKind?: string;
|
|
575
|
-
/** Host-owned scope for persisted display settings. */
|
|
576
|
-
storageScope?: string;
|
|
577
|
-
/**
|
|
578
|
-
* Declarative attribute schema. The renderer dispatches filter / group /
|
|
579
|
-
* sort / display / inline-edit behavior on each descriptor's `type.kind`.
|
|
580
|
-
*
|
|
581
|
-
* Pass an `AttributesSource` ({ subscribe, getSnapshot }) instead of a
|
|
582
|
-
* static array to let the contribution mutate its schema at runtime —
|
|
583
|
-
* `WorkbenchKanbanView` subscribes so additions / removals / kind changes
|
|
584
|
-
* propagate live without re-registering the renderer.
|
|
585
|
-
*/
|
|
586
|
-
attributes: AttributeDescriptor<TNode>[] | AttributesSource<TNode>;
|
|
587
|
-
/** Per-board-column overrides (color, drag/create rules, custom actions). */
|
|
588
|
-
getBoardColumnConfig?: (groupKey: string) => BoardColumnConfig<TIcon>;
|
|
589
|
-
hideToolbar?: boolean;
|
|
590
|
-
emptyTitle?: string;
|
|
591
|
-
emptyDescription?: string;
|
|
592
|
-
/** Initial settings/filters applied when the kanban renderer mounts. */
|
|
593
|
-
defaultSettings?: Partial<KanbanRendererSettings>;
|
|
594
|
-
defaultFilters?: KanbanRendererFilterState;
|
|
595
|
-
defaultViews?: KanbanRendererSavedView[];
|
|
596
|
-
defaultActiveViewId?: string;
|
|
597
|
-
/**
|
|
598
|
-
* Data source. Receives the current display state so backends can paginate
|
|
599
|
-
* / filter / sort. The renderer re-applies filter / sort / group locally,
|
|
600
|
-
* so this can return unfiltered rows in simple cases.
|
|
601
|
-
*/
|
|
602
|
-
executeQuery(state: KanbanRendererQueryState): Promise<TRow[]> | TRow[];
|
|
603
|
-
subscribe?: (listener: () => void) => Disposable_2 | (() => void);
|
|
604
|
-
/** Row activation surfaced by the renderer (mirrored from <KanbanRenderer>). */
|
|
605
|
-
onRowActivate?: (row: TRow) => Promise<void> | void;
|
|
606
|
-
/** Per-row right-click context menu actions (mirrored from <KanbanRenderer>). */
|
|
607
|
-
getRowContextMenuActions?: (row: TRow) => ResourceContextAction<TNode>[];
|
|
608
|
-
/**
|
|
609
|
-
* Fires for inline attribute edits AND for cross-column drag-to-reorder on
|
|
610
|
-
* the board (the renderer passes the grouping attribute id + the target
|
|
611
|
-
* column value).
|
|
612
|
-
*/
|
|
613
|
-
onAttributeChange?: (rowId: string, attributeId: string, value: unknown) => Promise<void> | void;
|
|
614
|
-
/** Manual within-column reorder (only fires when ordering is manual). */
|
|
615
|
-
onReorder?: (rowId: string, beforeRowId?: string) => Promise<void> | void;
|
|
616
|
-
createRow?: KanbanRendererCreateRowConfig;
|
|
617
|
-
onCreateRow?: (submission: KanbanRendererCreateSubmission) => Promise<void> | void;
|
|
618
|
-
onColumnAction?: (columnId: string, actionId: string) => Promise<void> | void;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
declare interface KanbanRendererCreateField {
|
|
622
|
-
id: string;
|
|
623
|
-
label: string;
|
|
624
|
-
description?: string;
|
|
625
|
-
placeholder?: string;
|
|
626
|
-
type: KanbanRendererCreateFieldType;
|
|
627
|
-
required?: boolean;
|
|
628
|
-
defaultValue?: unknown;
|
|
629
|
-
options?: EnumOption[];
|
|
630
|
-
/** `files` fields only. */
|
|
631
|
-
multiple?: boolean;
|
|
632
|
-
accept?: string;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
declare type KanbanRendererCreateFieldType = "text" | "longtext" | "markdown" | "number" | "boolean" | "select" | "multi-select" | "files";
|
|
636
|
-
|
|
637
|
-
/** Chrome copy is supplied by the caller so the dialog ships no strings of its own. */
|
|
638
|
-
declare interface KanbanRendererCreateLabels {
|
|
639
|
-
cancel: string;
|
|
640
|
-
properties: string;
|
|
641
|
-
submitError: string;
|
|
642
|
-
removeFile: string;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
declare interface KanbanRendererCreateRowConfig {
|
|
646
|
-
title: string;
|
|
647
|
-
submitLabel: string;
|
|
648
|
-
fields: KanbanRendererCreateField[];
|
|
649
|
-
labels: KanbanRendererCreateLabels;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
declare interface KanbanRendererCreateSubmission {
|
|
653
|
-
columnId: string;
|
|
654
|
-
columnAttributeId?: string;
|
|
655
|
-
/** Declared field values, excluding `files` fields — those arrive as `files`. */
|
|
656
|
-
values: Record<string, unknown>;
|
|
657
|
-
/** Every editable attribute the user set, keyed by attribute id. */
|
|
658
|
-
attributeValues: Record<string, unknown>;
|
|
659
|
-
files: File[];
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
declare type KanbanRendererFilterState = Record<string, string[]>;
|
|
663
|
-
|
|
664
|
-
declare interface KanbanRendererOrdering {
|
|
665
|
-
attributeId: string | typeof MANUAL_ORDERING;
|
|
666
|
-
direction: SortDirection;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
declare interface KanbanRendererQueryState {
|
|
670
|
-
settings: KanbanRendererSettings;
|
|
671
|
-
filters: KanbanRendererFilterState;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
declare interface KanbanRendererRow {
|
|
675
|
-
id: string;
|
|
676
|
-
title: string;
|
|
677
|
-
/**
|
|
678
|
-
* Optional navigation handle. When set, the renderer's default click handler
|
|
679
|
-
* routes through the contribution's onRowActivate (which typically opens the
|
|
680
|
-
* resource via the workbench).
|
|
681
|
-
*/
|
|
682
|
-
resource?: unknown;
|
|
683
|
-
attributes: Record<string, unknown>;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
declare interface KanbanRendererSavedView {
|
|
687
|
-
id: string;
|
|
688
|
-
title: string;
|
|
689
|
-
settings: KanbanRendererSettings;
|
|
690
|
-
filters: KanbanRendererFilterState;
|
|
691
|
-
isDefault?: boolean;
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
declare interface KanbanRendererSettings {
|
|
695
|
-
viewMode: ViewMode;
|
|
696
|
-
columnGrouping: string | typeof NO_GROUPING;
|
|
697
|
-
rowGrouping: string | typeof NO_GROUPING;
|
|
698
|
-
ordering: KanbanRendererOrdering;
|
|
699
|
-
displayProperties: string[];
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
declare interface Keybinding {
|
|
703
|
-
/** Action the chord executes through the shared navigation executor. */
|
|
704
|
-
action: NavigationTarget;
|
|
705
|
-
keybinding: KeybindingSequence;
|
|
706
|
-
when?: string;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
declare interface KeybindingRegistry {
|
|
710
|
-
store: WorkbenchStore<KeybindingRegistryStoreState>;
|
|
711
|
-
registerKeybinding(keybinding: Keybinding, metadata?: ContributionMetadata): Disposable_2;
|
|
712
|
-
listKeybindings(): RegisteredKeybinding[];
|
|
713
|
-
listActiveKeybindings(): RegisteredKeybinding[];
|
|
714
|
-
/** Chords bound to plain command actions, for rendering shortcut hints beside commands. */
|
|
715
|
-
listCommandKeybindings(): {
|
|
716
|
-
commandId: string;
|
|
717
|
-
keybinding: KeybindingSequence;
|
|
718
|
-
}[];
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
declare interface KeybindingRegistryStoreState {
|
|
722
|
-
keybindings: RegisteredKeybinding[];
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
declare type KeybindingSequence = string | string[];
|
|
726
|
-
|
|
727
|
-
declare interface LayoutModel {
|
|
728
|
-
store: WorkbenchStore<WorkbenchLayoutStoreState>;
|
|
729
|
-
registerPlaceholder(placeholder: PlaceholderContribution, metadata?: ContributionMetadata): {
|
|
730
|
-
dispose(): void;
|
|
731
|
-
};
|
|
732
|
-
registerPanel(panel: WorkbenchPanelContribution, metadata?: ContributionMetadata): {
|
|
733
|
-
dispose(): void;
|
|
734
|
-
};
|
|
735
|
-
registerWidget(widget: WidgetContribution, metadata?: ContributionMetadata): {
|
|
736
|
-
dispose(): void;
|
|
737
|
-
};
|
|
738
|
-
registerPanelMenu(panelMenu: WorkbenchPanelMenuContribution, metadata?: ContributionMetadata): {
|
|
739
|
-
dispose(): void;
|
|
740
|
-
};
|
|
741
|
-
unregisterWidget(id: string, options?: {
|
|
742
|
-
removePlacements?: boolean;
|
|
743
|
-
persist?: boolean;
|
|
744
|
-
}): void;
|
|
745
|
-
getPlaceholder(regionId: WorkbenchRegion_2): RegisteredPlaceholderContribution | undefined;
|
|
746
|
-
getWidget(id: string): RegisteredWidgetContribution | undefined;
|
|
747
|
-
getPanel(id: string): WorkbenchPanelContribution | undefined;
|
|
748
|
-
getRegionSize(regionId: WorkbenchRegion_2): WorkbenchRegionSize | undefined;
|
|
749
|
-
getRegionSettings(regionId: WorkbenchRegion_2): WorkbenchRegionSettings | undefined;
|
|
750
|
-
getRegionCollapsible(regionId: WorkbenchRegion_2): boolean;
|
|
751
|
-
getRegionHeaderBorderBottom(regionId: WorkbenchRegion_2): boolean;
|
|
752
|
-
setRegionVisible(regionId: WorkbenchRegion_2, visible: boolean): void;
|
|
753
|
-
setRegionSize(regionId: WorkbenchRegion_2, size: number): void;
|
|
754
|
-
listPlaceholders(): RegisteredPlaceholderContribution[];
|
|
755
|
-
listWidgets(): RegisteredWidgetContribution[];
|
|
756
|
-
listPanels(): WorkbenchPanelContribution[];
|
|
757
|
-
listPanelInstances(region?: WorkbenchRegion_2): WorkbenchPanelInstance[];
|
|
758
|
-
getActivePanel(region?: WorkbenchRegion_2): WorkbenchPanelInstance | undefined;
|
|
759
|
-
openWidget(id: string, input?: OpenWidgetInput): WorkbenchWidgetPlacement;
|
|
760
|
-
openPanel(id: string, input?: OpenWorkbenchPanelInput): WorkbenchPanelInstance;
|
|
761
|
-
updatePanel(instanceId: string, input: OpenWorkbenchPanelInput): WorkbenchPanelInstance;
|
|
762
|
-
reorderPanel(instanceId: string, position: WorkbenchTabPosition): void;
|
|
763
|
-
activatePanel(instanceId: string): WorkbenchPanelInstance;
|
|
764
|
-
closePanel(instanceId: string): WorkbenchPanelInstance | undefined;
|
|
765
|
-
updateWidgetPlacement(widgetId: string, input: OpenWidgetInput): WorkbenchWidgetPlacement;
|
|
766
|
-
reorderWidget(widgetId: string, position: WorkbenchTabPosition): void;
|
|
767
|
-
expirePreviewTabs(ownerResourceKey?: string): void;
|
|
768
|
-
activateWidget(widgetId: string): WorkbenchWidgetPlacement;
|
|
769
|
-
setRegionActiveWidget(regionId: WorkbenchRegion_2, widgetId: string | undefined): void;
|
|
770
|
-
closeWidget(widgetId: string): WorkbenchWidgetPlacement | undefined;
|
|
771
|
-
removeWidgetPlacement(widgetId: string): WorkbenchWidgetPlacement | undefined;
|
|
772
|
-
clearRegion(regionId: WorkbenchRegion_2): void;
|
|
773
|
-
resetRegions(): void;
|
|
774
|
-
getLayout(): WorkbenchLayout;
|
|
775
|
-
restoreLayout(layout: WorkbenchLayout): void;
|
|
776
|
-
setPersistenceScope(scope: LayoutScope | undefined, input?: {
|
|
777
|
-
carryRegionState?: readonly WorkbenchRegion_2[];
|
|
778
|
-
}): void;
|
|
779
|
-
getPersistenceScope(): LayoutScope | undefined;
|
|
780
|
-
/** True when the current persistence scope already stores a layout. A new scope returns false. */
|
|
781
|
-
/** Whether anything is stored for the active scope right now. */
|
|
782
|
-
hasPersistedLayout(): boolean;
|
|
783
|
-
/**
|
|
784
|
-
* Whether the active scope was entered with a layout the user already had. Unlike
|
|
785
|
-
* `hasPersistedLayout`, writes made while entering a mode do not change the answer.
|
|
786
|
-
*/
|
|
787
|
-
enteredWithPersistedLayout(): boolean;
|
|
788
|
-
/** Moves owned panel menus beside their owner's current region and removes orphan menus. */
|
|
789
|
-
reconcilePanelMenus(): void;
|
|
790
|
-
onWillChangePersistenceScope(listener: (scope: LayoutScope | undefined) => void): {
|
|
791
|
-
dispose(): void;
|
|
792
|
-
};
|
|
793
|
-
onDidChangePersistenceScope(listener: (scope: LayoutScope | undefined) => void): {
|
|
794
|
-
dispose(): void;
|
|
795
|
-
};
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
declare type LayoutScope = string;
|
|
799
|
-
|
|
800
|
-
export declare const listWorkbenchMenuItems: (workbench: WorkbenchCore, menuPath: MenuPath, context?: WorkbenchMenuItemContext) => WorkbenchMenuItem[];
|
|
801
|
-
|
|
802
|
-
declare const MANUAL_ORDERING = "manual";
|
|
803
|
-
|
|
804
|
-
declare interface MenuItem {
|
|
805
|
-
commandId: string;
|
|
806
|
-
sourceCommandId?: string;
|
|
807
|
-
label?: string;
|
|
808
|
-
description?: string;
|
|
809
|
-
icon?: string;
|
|
810
|
-
iconSrc?: string;
|
|
811
|
-
overflowLabel?: string;
|
|
812
|
-
when?: string;
|
|
813
|
-
group?: string;
|
|
814
|
-
order?: number;
|
|
815
|
-
args?: unknown;
|
|
816
|
-
readOnly?: boolean;
|
|
817
|
-
/** Marks a menu action that navigates outside the app, rendered with a trailing external-link icon. */
|
|
818
|
-
external?: boolean;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
declare type MenuPath = readonly string[];
|
|
822
|
-
|
|
823
|
-
declare interface MenuRegistry {
|
|
824
|
-
menuStore: WorkbenchStore<MenuRegistryStoreState>;
|
|
825
|
-
registerMenuItem(path: MenuPath, item: MenuItem, metadata?: ContributionMetadata): Disposable_2;
|
|
826
|
-
listMenuItems(path: MenuPath): RegisteredMenuItem[];
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
declare interface MenuRegistryStoreState {
|
|
830
|
-
itemsByPath: Record<string, RegisteredMenuItem[]>;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
declare type NativeViewBody<Kind extends string, Contribution> = {
|
|
834
|
-
kind: Kind;
|
|
835
|
-
} & Omit<Contribution, "id" | "title" | "icon">;
|
|
836
|
-
|
|
837
|
-
declare interface NavigationParser {
|
|
838
|
-
id: string;
|
|
839
|
-
priority?: number;
|
|
840
|
-
canParse(location: string): boolean;
|
|
841
|
-
parse(location: string): NavigationTarget;
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
declare interface NavigationRegistry {
|
|
845
|
-
store: WorkbenchStore<NavigationRegistryStoreState>;
|
|
846
|
-
registerParser(parser: NavigationParser, metadata?: ContributionMetadata): Disposable_2;
|
|
847
|
-
listParsers(): RegisteredNavigationParser[];
|
|
848
|
-
resolveLocation(location: string): NavigationTarget;
|
|
849
|
-
openTarget(target: NavigationTarget): Promise<readonly unknown[]>;
|
|
850
|
-
/** Opens a page location through the shared executor. */
|
|
851
|
-
openPage(target: Omit<NavigationTargetPage, "kind">): Promise<readonly unknown[]>;
|
|
852
|
-
/** Opens or activates an owned panel through the shared executor. */
|
|
853
|
-
openPanel(target: DistributiveOmit<NavigationTargetPanel, "kind">): Promise<readonly unknown[]>;
|
|
854
|
-
navigate(location: string): Promise<readonly unknown[]>;
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
declare interface NavigationRegistryStoreState {
|
|
858
|
-
parsers: Record<string, RegisteredNavigationParser>;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
declare type NavigationTarget = NavigationTargetItem | NavigationTargetCompound;
|
|
862
|
-
|
|
863
|
-
declare interface NavigationTargetCommand {
|
|
864
|
-
kind: "command";
|
|
865
|
-
commandId: string;
|
|
866
|
-
args?: unknown;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
declare interface NavigationTargetCompound {
|
|
870
|
-
kind: "compound";
|
|
871
|
-
targets: readonly (NavigationTargetPage | NavigationTargetPanel)[];
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
declare interface NavigationTargetHref {
|
|
875
|
-
kind: "href";
|
|
876
|
-
href: string;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
declare type NavigationTargetItem = NavigationTargetPage | NavigationTargetPanel | NavigationTargetCommand | NavigationTargetHref;
|
|
880
|
-
|
|
881
|
-
declare type NavigationTargetPage = NavigationTargetPage_2;
|
|
882
|
-
|
|
883
|
-
declare type NavigationTargetPanel = NavigationTargetPanel_2 | NavigationTargetShellPanel;
|
|
884
|
-
|
|
885
|
-
declare interface NavigationTargetShellPanel {
|
|
886
|
-
kind: "panel";
|
|
887
|
-
panel: ShellPlacementRef;
|
|
888
|
-
resource?: NavigationTargetPanel_2["resource"];
|
|
889
|
-
open?: NavigationTargetPanel_2["open"];
|
|
890
|
-
title?: string;
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
declare interface NavigationTreeContext {
|
|
894
|
-
resource?: ResourceRef;
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
declare interface NavigationTreeContribution {
|
|
898
|
-
id: string;
|
|
899
|
-
/** Prefix projected section and node ids when they come from an independent tree renderer. */
|
|
900
|
-
idScope?: string;
|
|
901
|
-
owner: NavigationTreeOwner;
|
|
902
|
-
sourceExtensionId: string;
|
|
903
|
-
declarationIndex: number;
|
|
904
|
-
slot?: NavigationTreeSlot;
|
|
905
|
-
viewId?: string;
|
|
906
|
-
defaultExpandedSectionIds?: string[];
|
|
907
|
-
getSections?(context: NavigationTreeContext): Promise<TreeViewSection[]> | TreeViewSection[];
|
|
908
|
-
getChildren?(node: TreeNode, context: NavigationTreeContext): Promise<TreeNode[]> | TreeNode[];
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
declare interface NavigationTreeOwner {
|
|
912
|
-
kind: "mode" | "page";
|
|
913
|
-
id: string;
|
|
914
|
-
extensionId: string;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
declare interface NavigationTreeRegistry {
|
|
918
|
-
registerContribution(contribution: NavigationTreeContribution): Disposable_2;
|
|
919
|
-
resolveOwner(kind: NavigationTreeOwner["kind"], id: string): NavigationTreeOwner | undefined;
|
|
920
|
-
getSections(owner: NavigationTreeOwner, slot?: NavigationTreeSlot, context?: NavigationTreeContext): Promise<TreeViewSection[]>;
|
|
921
|
-
getChildren(node: TreeNode, context?: NavigationTreeContext): Promise<TreeNode[]>;
|
|
922
|
-
getDefaultExpandedSectionIds(owner: NavigationTreeOwner): string[];
|
|
923
|
-
onDidChange(listener: () => void): Disposable_2;
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
declare type NavigationTreeSlot = "header" | "content" | "footer";
|
|
927
|
-
|
|
928
|
-
declare const NO_GROUPING = "none";
|
|
929
|
-
|
|
930
|
-
export declare const normalizeWorkbenchKeybinding: (keybinding: KeybindingSequence) => KeybindingSequence;
|
|
931
|
-
|
|
932
|
-
declare interface NotificationRegistry {
|
|
933
|
-
store: WorkbenchStore<WorkbenchNotificationStoreState>;
|
|
934
|
-
show(notification: WorkbenchNotification, metadata?: ContributionMetadata): RegisteredWorkbenchNotification;
|
|
935
|
-
dismiss(id: string): boolean;
|
|
936
|
-
clear(): void;
|
|
937
|
-
listNotifications(): RegisteredWorkbenchNotification[];
|
|
938
|
-
subscribe(listener: WorkbenchNotificationListener): Disposable_2;
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
declare interface OpenModePlacementTarget {
|
|
942
|
-
panel: PlacementRef;
|
|
943
|
-
resource?: ResourceRef;
|
|
944
|
-
open?: PageOpenIntent;
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
declare interface OpenWidgetInput {
|
|
948
|
-
viewId?: string | null;
|
|
949
|
-
resource?: ResourceRef | null;
|
|
950
|
-
title?: string;
|
|
951
|
-
region?: WorkbenchRegion_2;
|
|
952
|
-
role?: WorkbenchWidgetRole;
|
|
953
|
-
ownerId?: string;
|
|
954
|
-
source?: ContributionSource;
|
|
955
|
-
pinned?: boolean;
|
|
956
|
-
closable?: boolean;
|
|
957
|
-
mountStrategy?: WidgetMountStrategy;
|
|
958
|
-
hiddenByDefault?: boolean;
|
|
959
|
-
tabRetention?: WorkbenchTabRetention;
|
|
960
|
-
tabPosition?: WorkbenchTabPosition;
|
|
961
|
-
tab?: WorkbenchWidgetTab;
|
|
962
|
-
replaceActive?: boolean;
|
|
963
|
-
replaceWidgetId?: string;
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
declare interface OpenWorkbenchOverlayInput {
|
|
967
|
-
resource?: ResourceRef;
|
|
968
|
-
title?: string;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
declare interface OpenWorkbenchPanelInput {
|
|
972
|
-
/** Set by the view registry. Low-level layout callers should leave this undefined. */
|
|
973
|
-
viewId?: string | null;
|
|
974
|
-
/** `null` explicitly clears an existing singleton placement's resource binding. */
|
|
975
|
-
resource?: ResourceRef | null;
|
|
976
|
-
title?: string;
|
|
977
|
-
region?: WorkbenchRegion_2;
|
|
978
|
-
role?: WorkbenchWidgetRole;
|
|
979
|
-
pinned?: boolean;
|
|
980
|
-
closable?: boolean;
|
|
981
|
-
mountStrategy?: WorkbenchPanelMountStrategy;
|
|
982
|
-
hiddenByDefault?: boolean;
|
|
983
|
-
tab?: WorkbenchPanelTab;
|
|
984
|
-
strategy?: WorkbenchPanelOpenStrategy;
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
declare interface OpenWorkbenchShellPlacementInput {
|
|
988
|
-
placementId: string;
|
|
989
|
-
resource?: ResourceRef;
|
|
990
|
-
open?: PageOpenIntent;
|
|
991
|
-
title?: string;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
export declare const openWorkbenchTerminal: (ctx: WorkbenchCoreContributionContext, input?: OpenWorkbenchTerminalOptions) => WorkbenchPanelInstance;
|
|
995
|
-
|
|
996
|
-
declare interface OpenWorkbenchTerminalOptions {
|
|
997
|
-
resource?: ResourceRef;
|
|
998
|
-
reveal?: boolean;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
declare interface OwnedPlacementLocationContext {
|
|
1002
|
-
modeId: string;
|
|
1003
|
-
pageId?: string;
|
|
1004
|
-
projectId?: string;
|
|
1005
|
-
location?: PageLocation;
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
declare interface OwnedPlacementReconciliation<Value> {
|
|
1009
|
-
add: readonly ResolvedOwnedPlacement<Value>[];
|
|
1010
|
-
retain: readonly ResolvedOwnedPlacement<Value>[];
|
|
1011
|
-
update: readonly OwnedPlacementUpdate<Value>[];
|
|
1012
|
-
activate: readonly ResolvedOwnedPlacement<Value>[];
|
|
1013
|
-
remove: readonly ResolvedOwnedPlacement<Value>[];
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
declare interface OwnedPlacementUpdate<Value> {
|
|
1017
|
-
current: ResolvedOwnedPlacement<Value>;
|
|
1018
|
-
desired: ResolvedOwnedPlacement<Value>;
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
declare type ParamValue_2 = Parameters<NonNullable<ParamEditorProps["onChange"]>>[1];
|
|
1022
|
-
|
|
1023
|
-
export declare const paramValueToPreference: (schema: PreferencePropertySchema, value: ParamValue_2) => PreferenceValue;
|
|
1024
|
-
|
|
1025
|
-
declare interface PlaceholderContribution {
|
|
1026
|
-
id: string;
|
|
1027
|
-
title: string;
|
|
1028
|
-
region: WorkbenchRegion_2;
|
|
1029
|
-
rendererId: string;
|
|
1030
|
-
regionSize?: WorkbenchRegionSize;
|
|
1031
|
-
regionCollapsible?: boolean;
|
|
1032
|
-
config?: unknown;
|
|
1033
|
-
priority?: number;
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
export declare interface PreferenceParamEntry {
|
|
1037
|
-
name: string;
|
|
1038
|
-
schema: PreferencePropertySchema;
|
|
1039
|
-
label?: string;
|
|
1040
|
-
/** Current value; falls back to the schema default when omitted. */
|
|
1041
|
-
value?: PreferenceValue;
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
declare interface PreferencePropertySchema {
|
|
1045
|
-
type: "boolean" | "number" | "string" | "array" | "object";
|
|
1046
|
-
enum?: PreferenceValue[];
|
|
1047
|
-
default?: PreferenceValue;
|
|
1048
|
-
scope: PreferenceScope;
|
|
1049
|
-
description?: string;
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
declare interface PreferenceRegistry {
|
|
1053
|
-
store: WorkbenchStore<PreferenceRegistryStoreState>;
|
|
1054
|
-
registerSchema(schema: PreferenceSchemaContribution, metadata?: ContributionMetadata): Disposable_2;
|
|
1055
|
-
getSchema(name: string): RegisteredPreferenceSchema | undefined;
|
|
1056
|
-
setValue(name: string, value: PreferenceValue, scope: PreferenceScopeRef): void;
|
|
1057
|
-
getValue(name: string, scope?: PreferenceScopeRef): PreferenceValue | undefined;
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
declare interface PreferenceRegistryStoreState {
|
|
1061
|
-
schemas: Record<string, RegisteredPreferenceSchema>;
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
declare interface PreferenceSchemaContribution {
|
|
1065
|
-
properties: Record<string, PreferencePropertySchema>;
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
export declare const preferenceSchemaToParams: (entries: PreferenceParamEntry[]) => Param[];
|
|
1069
|
-
|
|
1070
|
-
declare type PreferenceScope = "default" | "user" | "project" | "repo" | "workspace" | "extension" | "session";
|
|
1071
|
-
|
|
1072
|
-
declare interface PreferenceScopeRef {
|
|
1073
|
-
scope: PreferenceScope;
|
|
1074
|
-
scopeId?: string;
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
declare type PreferenceValue = boolean | number | string | string[] | number[] | boolean[] | Record<string, unknown>;
|
|
1078
|
-
|
|
1079
|
-
export declare type ReactAttributeDescriptor = AttributeDescriptor<ReactNode>;
|
|
1080
|
-
|
|
1081
|
-
export declare type ReactAttributesSource = AttributesSource<ReactNode>;
|
|
1082
|
-
|
|
1083
|
-
export declare type ReactBoardColumnConfig = BoardColumnConfig<ReactColumnIcon>;
|
|
1084
|
-
|
|
1085
|
-
declare type ReactColumnIcon = ComponentType<{
|
|
1086
|
-
size?: number | string;
|
|
1087
|
-
}>;
|
|
1088
|
-
|
|
1089
|
-
export declare type ReactKanbanRendererContribution<TRow extends KanbanRendererRow = KanbanRendererRow> = KanbanRendererContribution<TRow, ReactNode, ReactColumnIcon>;
|
|
1090
|
-
|
|
1091
|
-
export declare type ReactResourceContextAction = ResourceContextAction<ReactNode>;
|
|
1092
|
-
|
|
1093
|
-
/** Narrows an editor value back to what a command param can carry. */
|
|
1094
|
-
export declare const readCommandParamValue: (value: ParamValue, entry?: CommandParamEntry) => CommandParamValue;
|
|
1095
|
-
|
|
1096
|
-
declare interface RegisteredCommand extends RegisteredContributionMetadata {
|
|
1097
|
-
command: Command;
|
|
1098
|
-
handler: CommandHandler;
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
declare interface RegisteredContributionMetadata {
|
|
1102
|
-
source: ContributionSource;
|
|
1103
|
-
ownerId: string;
|
|
1104
|
-
priority: number;
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
declare interface RegisteredDataTableRendererContribution extends DataTableRendererContribution, RegisteredContributionMetadata {
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
declare interface RegisteredKeybinding extends Keybinding, RegisteredContributionMetadata {
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
declare interface RegisteredMenuItem extends MenuItem, RegisteredContributionMetadata {
|
|
1114
|
-
path: MenuPath;
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
declare type RegisteredNavigationParser = Omit<NavigationParser, "priority"> & RegisteredContributionMetadata;
|
|
1118
|
-
|
|
1119
|
-
declare type RegisteredPlaceholderContribution = Omit<PlaceholderContribution, "priority"> & RegisteredContributionMetadata;
|
|
1120
|
-
|
|
1121
|
-
declare type RegisteredPreferenceSchema = PreferencePropertySchema & {
|
|
1122
|
-
ownerId: string;
|
|
1123
|
-
source: string;
|
|
1124
|
-
};
|
|
1125
|
-
|
|
1126
|
-
declare interface RegisteredResourceKind extends ResourceKindContribution, RegisteredContributionMetadata {
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
declare type RegisteredSettingsPanel = SettingsPanelContribution & RegisteredContributionMetadata;
|
|
1130
|
-
|
|
1131
|
-
declare type RegisteredSettingsSection = SettingsSectionContribution & RegisteredContributionMetadata;
|
|
1132
|
-
|
|
1133
|
-
declare interface RegisteredTreeRendererContribution extends TreeRendererContribution, RegisteredContributionMetadata {
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
declare type RegisteredWidgetContribution = Omit<WidgetContribution, "priority" | "singleton" | "reuse"> & {
|
|
1137
|
-
ownedPanelMenuIds?: readonly string[];
|
|
1138
|
-
singleton: boolean;
|
|
1139
|
-
reuse: WidgetReusePolicy;
|
|
1140
|
-
} & RegisteredContributionMetadata;
|
|
1141
|
-
|
|
1142
|
-
declare interface RegisteredWorkbenchNotification extends RegisteredContributionMetadata {
|
|
1143
|
-
id: string;
|
|
1144
|
-
level: WorkbenchNotificationLevel;
|
|
1145
|
-
title: string;
|
|
1146
|
-
message?: string;
|
|
1147
|
-
createdAt: string;
|
|
1148
|
-
resource?: ResourceRef;
|
|
1149
|
-
actions?: WorkbenchNotificationAction[];
|
|
1150
|
-
metadata?: Record<string, unknown>;
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
declare type RegisteredWorkbenchStatusSet = WorkbenchStatusSetContribution & RegisteredContributionMetadata;
|
|
1154
|
-
|
|
1155
|
-
declare type RegisteredWorkbenchView = WorkbenchViewContribution & RegisteredContributionMetadata;
|
|
1156
|
-
|
|
1157
|
-
declare interface ResolvedOwnedPlacement<Value = unknown> {
|
|
1158
|
-
identity: PlacementIdentity;
|
|
1159
|
-
region: WorkbenchRegion_2;
|
|
1160
|
-
order: number;
|
|
1161
|
-
value: Value;
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
declare type ResolvedResourceHierarchyProvider = Required<ResourceHierarchyProvider>;
|
|
1165
|
-
|
|
1166
|
-
declare interface ResourceBrowseEntry {
|
|
1167
|
-
resource: ResourceRef;
|
|
1168
|
-
searchText?: string;
|
|
1169
|
-
description?: string;
|
|
1170
|
-
group?: string;
|
|
1171
|
-
order?: number;
|
|
1172
|
-
activate?: (resource: ResourceRef) => unknown | Promise<unknown>;
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
/** Row-level context menu action surfaced by the renderer. */
|
|
1176
|
-
declare interface ResourceContextAction<TNode = unknown> {
|
|
1177
|
-
key: string;
|
|
1178
|
-
label: string;
|
|
1179
|
-
onClick: () => Promise<void> | void;
|
|
1180
|
-
isDisabled?: boolean;
|
|
1181
|
-
icon?: TNode;
|
|
1182
|
-
endContent?: TNode;
|
|
1183
|
-
separatorBefore?: boolean;
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
declare interface ResourceHierarchyCycle {
|
|
1187
|
-
code: typeof resourceHierarchyCycleCode;
|
|
1188
|
-
path: WorkbenchHierarchyNode[];
|
|
1189
|
-
repeatedUri: string;
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
declare const resourceHierarchyCycleCode = "resource_hierarchy_cycle";
|
|
1193
|
-
|
|
1194
|
-
declare interface ResourceHierarchyProvider {
|
|
1195
|
-
id: string;
|
|
1196
|
-
priority?: number;
|
|
1197
|
-
canResolve(resource: ResourceRef): boolean;
|
|
1198
|
-
getParent(resource: ResourceRef): WorkbenchHierarchyNode | undefined;
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
declare interface ResourceKindContribution {
|
|
1202
|
-
kind: string;
|
|
1203
|
-
label: string;
|
|
1204
|
-
icon?: string;
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
declare interface ResourceListContext {
|
|
1208
|
-
primary?: ResourceRef;
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
declare interface ResourceProvider {
|
|
1212
|
-
id: string;
|
|
1213
|
-
kind: string;
|
|
1214
|
-
list(query: string, context: ResourceListContext): readonly ResourceBrowseEntry[];
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
declare interface ResourceRegistry {
|
|
1218
|
-
store: WorkbenchStore<ResourceRegistryStoreState>;
|
|
1219
|
-
registerKind(kind: ResourceKindContribution, metadata?: ContributionMetadata): Disposable_2;
|
|
1220
|
-
getKind(kind: string): RegisteredResourceKind | undefined;
|
|
1221
|
-
listKinds(): RegisteredResourceKind[];
|
|
1222
|
-
registerProvider(provider: ResourceProvider): Disposable_2;
|
|
1223
|
-
listProviders(): ResourceProvider[];
|
|
1224
|
-
listResources(query: string): readonly ResourceBrowseEntry[];
|
|
1225
|
-
registerHierarchyProvider(provider: ResourceHierarchyProvider): Disposable_2;
|
|
1226
|
-
listHierarchyProviders(): ResolvedResourceHierarchyProvider[];
|
|
1227
|
-
walkHierarchy(resource: ResourceRef | undefined): WorkbenchHierarchyNode[];
|
|
1228
|
-
onDidDetectHierarchyCycle(listener: (cycle: ResourceHierarchyCycle) => void): Disposable_2;
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
declare interface ResourceRegistryStoreState {
|
|
1232
|
-
kinds: Record<string, RegisteredResourceKind>;
|
|
1233
|
-
providers: Record<string, ResourceProvider>;
|
|
1234
|
-
hierarchyProviders: Record<string, ResolvedResourceHierarchyProvider>;
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
/** Auto-rendered as a param editor from the registered preference schema. */
|
|
1238
|
-
declare interface SchemaSettingsPanel extends SettingsPanelBase {
|
|
1239
|
-
kind: "schema";
|
|
1240
|
-
preferences: SettingsPanelPreference[];
|
|
1241
|
-
/** "live" persists on change (default); "apply" stages edits behind Save/Discard. */
|
|
1242
|
-
save?: "live" | "apply";
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
/** A "+ create"-style action surfaced on a section or a collection's parent node. */
|
|
1246
|
-
declare interface SettingsAction {
|
|
1247
|
-
id: string;
|
|
1248
|
-
label: string;
|
|
1249
|
-
icon?: string;
|
|
1250
|
-
run(): void | Promise<void>;
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
declare interface SettingsCollectionGroupBy<TItem> {
|
|
1254
|
-
key(item: TItem): string;
|
|
1255
|
-
order?: string[];
|
|
1256
|
-
label(key: string): string;
|
|
1257
|
-
icon?(key: string): string | undefined;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
declare interface SettingsPanelBase {
|
|
1261
|
-
id: string;
|
|
1262
|
-
title: string;
|
|
1263
|
-
description?: string;
|
|
1264
|
-
/** Section id this panel belongs to. */
|
|
1265
|
-
section?: string;
|
|
1266
|
-
icon?: string;
|
|
1267
|
-
/** Lower sorts first; ties fall back to contribution priority then registration order. */
|
|
1268
|
-
order?: number;
|
|
1269
|
-
scope?: SettingsScope;
|
|
1270
|
-
when?: string;
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
declare type SettingsPanelContribution = SchemaSettingsPanel | ViewSettingsPanel | CollectionSettingsPanel;
|
|
1274
|
-
|
|
1275
|
-
/** A preference this panel edits; a bare string uses the preference name as its label. */
|
|
1276
|
-
declare type SettingsPanelPreference = string | {
|
|
1277
|
-
name: string;
|
|
1278
|
-
label?: string;
|
|
1279
|
-
};
|
|
1280
|
-
|
|
1281
|
-
declare interface SettingsRegistry {
|
|
1282
|
-
store: WorkbenchStore<SettingsRegistryStoreState>;
|
|
1283
|
-
registerSection(section: SettingsSectionContribution, metadata?: ContributionMetadata): Disposable_2;
|
|
1284
|
-
registerPanel<TItem = unknown>(panel: SchemaSettingsPanel | ViewSettingsPanel | CollectionSettingsPanel<TItem>, metadata?: ContributionMetadata): Disposable_2;
|
|
1285
|
-
getSection(id: string): RegisteredSettingsSection | undefined;
|
|
1286
|
-
getPanel(id: string): RegisteredSettingsPanel | undefined;
|
|
1287
|
-
listSections(): RegisteredSettingsSection[];
|
|
1288
|
-
listPanels(): RegisteredSettingsPanel[];
|
|
1289
|
-
resolveCollectionItem(panelId: string, itemId: string): Promise<unknown | undefined>;
|
|
1290
|
-
getCollectionItem(panelId: string, itemId: string): unknown | undefined;
|
|
1291
|
-
/** Signal that a collection's backing data changed so the surface refreshes. */
|
|
1292
|
-
refresh(): void;
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
declare interface SettingsRegistryStoreState {
|
|
1296
|
-
sections: Record<string, RegisteredSettingsSection>;
|
|
1297
|
-
panels: Record<string, RegisteredSettingsPanel>;
|
|
1298
|
-
/** Bumped by refresh() so the surface re-reads collection items() after backing data changes. */
|
|
1299
|
-
revision: number;
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
/** Settings are stored either per-user (global) or per-project. Projectless surfaces show only global entries. */
|
|
1303
|
-
declare type SettingsScope = "global" | "project";
|
|
1304
|
-
|
|
1305
|
-
/** An ordered sidenav container. Headerless when `title` is omitted. */
|
|
1306
|
-
declare interface SettingsSectionContribution {
|
|
1307
|
-
id: string;
|
|
1308
|
-
title?: string;
|
|
1309
|
-
order?: number;
|
|
1310
|
-
scope?: SettingsScope;
|
|
1311
|
-
actions?: SettingsAction[];
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
/** Core-only panel ref for host-owned shell placements. Extensions cannot address them. */
|
|
1315
|
-
declare interface ShellPlacementRef {
|
|
1316
|
-
kind: "shell-placement";
|
|
1317
|
-
id: string;
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
|
-
declare type SortDirection = "asc" | "desc";
|
|
1321
|
-
|
|
1322
|
-
export declare const syncWorkbenchModuleHostRegistrations: (workbench: WorkbenchCore, registrations: Map<string, WorkbenchModuleHostRegistration>, modules: readonly WorkbenchModuleContribution[]) => void;
|
|
1323
|
-
|
|
1324
|
-
/**
|
|
1325
|
-
* Core-owned contract for theme registrations. Structurally identical to
|
|
1326
|
-
* @pstdio/ui's ThemePreferenceOption; the React layer bridges the two so core
|
|
1327
|
-
* does not depend on UI package ownership.
|
|
1328
|
-
*/
|
|
1329
|
-
declare type ThemePreference = string;
|
|
1330
|
-
|
|
1331
|
-
declare type ThemePreferenceMode = "light" | "dark";
|
|
1332
|
-
|
|
1333
|
-
declare interface ThemePreferenceOption {
|
|
1334
|
-
id: ThemePreference;
|
|
1335
|
-
title?: string;
|
|
1336
|
-
mode: ThemePreferenceMode;
|
|
1337
|
-
tokens?: ThemePreferenceTokens;
|
|
1338
|
-
monacoTheme?: unknown;
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
declare type ThemePreferenceTokens = Record<string, string>;
|
|
1342
|
-
|
|
1343
|
-
declare interface ThemeRegistry {
|
|
1344
|
-
store: WorkbenchStore<WorkbenchThemeStoreState>;
|
|
1345
|
-
register(themes: readonly ThemePreferenceOption[]): Disposable_2;
|
|
1346
|
-
listThemes(): readonly ThemePreferenceOption[];
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
declare interface TreeAction {
|
|
1350
|
-
id: string;
|
|
1351
|
-
label?: string;
|
|
1352
|
-
icon?: string;
|
|
1353
|
-
commandId?: string;
|
|
1354
|
-
args?: unknown;
|
|
1355
|
-
params?: CommandParamSchema;
|
|
1356
|
-
submitLabel?: string;
|
|
1357
|
-
when?: string;
|
|
1358
|
-
disabled?: boolean;
|
|
1359
|
-
run?(args?: unknown): Promise<void> | void;
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
export declare interface TreeActionParamsRequest {
|
|
1363
|
-
request: CommandParamsRequest;
|
|
1364
|
-
run: (args: unknown) => Promise<void>;
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
declare interface TreeContext extends TreeQueryContext {
|
|
1368
|
-
state: Readonly<TreeRendererState>;
|
|
1369
|
-
refresh(): void;
|
|
1370
|
-
setSelectedNode(nodeId: string | undefined): void;
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
declare interface TreeMoveEndpoint {
|
|
1374
|
-
kind: "section" | "node";
|
|
1375
|
-
sectionId: string;
|
|
1376
|
-
id: string;
|
|
1377
|
-
moveScope?: string;
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
declare type TreeMovePolicy = (move: {
|
|
1381
|
-
source: TreeMoveEndpoint;
|
|
1382
|
-
destination: TreeMoveEndpoint;
|
|
1383
|
-
}) => boolean;
|
|
1384
|
-
|
|
1385
|
-
declare interface TreeNode {
|
|
1386
|
-
id: string;
|
|
1387
|
-
selected?: boolean;
|
|
1388
|
-
/** Host-owned customization boundary. Extension callbacks cannot set it. */
|
|
1389
|
-
moveScope?: string;
|
|
1390
|
-
label: string;
|
|
1391
|
-
icon?: string;
|
|
1392
|
-
iconElement?: unknown;
|
|
1393
|
-
iconColor?: string;
|
|
1394
|
-
iconTooltip?: string;
|
|
1395
|
-
endContent?: unknown;
|
|
1396
|
-
commandId?: string;
|
|
1397
|
-
resource?: ResourceRef;
|
|
1398
|
-
target?: NavigationTarget;
|
|
1399
|
-
/** Visual row variant for non-data rows such as placeholders. */
|
|
1400
|
-
rowVariant?: TreeNodeRowVariant;
|
|
1401
|
-
inlineInput?: TreeNodeInlineInput;
|
|
1402
|
-
actions?: TreeAction[];
|
|
1403
|
-
contextMenuActions?: TreeAction[];
|
|
1404
|
-
contextMenuPath?: MenuPath;
|
|
1405
|
-
menuPath?: MenuPath;
|
|
1406
|
-
menuPlacement?: "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "left-start";
|
|
1407
|
-
showContextMenuTrigger?: boolean;
|
|
1408
|
-
collapsible?: boolean;
|
|
1409
|
-
disabled?: boolean;
|
|
1410
|
-
children?: TreeNode[];
|
|
1411
|
-
description?: string;
|
|
1412
|
-
contextValue?: string;
|
|
1413
|
-
hiddenByDefault?: boolean;
|
|
1414
|
-
/** When true, the node (e.g. a header/footer row) opts in to the tree's hide/show customization menu. */
|
|
1415
|
-
canHide?: boolean;
|
|
1416
|
-
/** When false, the node stays fixed within its Sidenav group. */
|
|
1417
|
-
canReorder?: boolean;
|
|
1418
|
-
/** Allow this node to be moved to another tree location. */
|
|
1419
|
-
canDrag?: boolean;
|
|
1420
|
-
/** Allow movable nodes to be dropped on this node. */
|
|
1421
|
-
canDrop?: boolean;
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
declare interface TreeNodeInlineInput {
|
|
1425
|
-
ariaLabel: string;
|
|
1426
|
-
defaultValue?: string;
|
|
1427
|
-
placeholder?: string;
|
|
1428
|
-
onCommit(value: string): Promise<void> | void;
|
|
1429
|
-
onCancel?(): void;
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
declare type TreeNodeRowVariant = "empty-state";
|
|
1433
|
-
|
|
1434
|
-
declare interface TreeQueryContext {
|
|
1435
|
-
filter?: string;
|
|
1436
|
-
resource?: ResourceRef;
|
|
1437
|
-
/** Widget/view contribution id for trees rendered through a view-backed widget. */
|
|
1438
|
-
viewId?: string;
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
declare interface TreeRendererContribution {
|
|
1442
|
-
id: string;
|
|
1443
|
-
title: string;
|
|
1444
|
-
icon?: string;
|
|
1445
|
-
searchable?: boolean;
|
|
1446
|
-
searchPlaceholder?: string;
|
|
1447
|
-
when?: string;
|
|
1448
|
-
defaultExpandedSectionIds?: string[];
|
|
1449
|
-
defaultExpandedNodeIds?: string[];
|
|
1450
|
-
getBody(ctx: TreeContext): Promise<TreeViewSection[]> | TreeViewSection[];
|
|
1451
|
-
getHeader?(ctx: TreeContext): Promise<TreeViewSection[]> | TreeViewSection[];
|
|
1452
|
-
getFooter?(ctx: TreeContext): Promise<TreeViewSection[]> | TreeViewSection[];
|
|
1453
|
-
getChildren(node: TreeNode, ctx: TreeContext): Promise<TreeNode[]> | TreeNode[];
|
|
1454
|
-
canMove?: TreeMovePolicy;
|
|
1455
|
-
moveNode?(source: TreeNode, target: TreeNode | undefined, ctx: TreeContext): Promise<void> | void;
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
declare type TreeRendererImplementation = (input: WorkbenchPanelRenderInput & {
|
|
1459
|
-
treeId: string;
|
|
1460
|
-
}) => unknown;
|
|
1461
|
-
|
|
1462
|
-
declare interface TreeRendererRefreshEvent {
|
|
1463
|
-
treeId: string;
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
declare type TreeRendererRefreshListener = (event: TreeRendererRefreshEvent) => void;
|
|
1467
|
-
|
|
1468
|
-
declare interface TreeRendererRegistry {
|
|
1469
|
-
treeStore: WorkbenchStore<TreeRendererStoreState>;
|
|
1470
|
-
registerTreeRenderer(view: TreeRendererContribution, metadata?: ContributionMetadata): Disposable_2;
|
|
1471
|
-
setTreeRendererImplementation(impl: TreeRendererImplementation): void;
|
|
1472
|
-
getTreeRenderer(id: string): RegisteredTreeRendererContribution | undefined;
|
|
1473
|
-
listTreeRenderers(): RegisteredTreeRendererContribution[];
|
|
1474
|
-
getBody(id: string, ctx?: TreeQueryContext): Promise<TreeViewSection[]>;
|
|
1475
|
-
getHeader(id: string, ctx?: TreeQueryContext): Promise<TreeViewSection[]>;
|
|
1476
|
-
getFooter(id: string, ctx?: TreeQueryContext): Promise<TreeViewSection[]>;
|
|
1477
|
-
getChildren(id: string, node: TreeNode, ctx?: TreeQueryContext): Promise<TreeNode[]>;
|
|
1478
|
-
getTreeState(id: string): TreeRendererState;
|
|
1479
|
-
setNodeExpanded(id: string, nodeId: string, expanded: boolean): void;
|
|
1480
|
-
setSectionExpanded(id: string, sectionId: string, expanded: boolean): void;
|
|
1481
|
-
setSelectedNode(id: string, nodeId: string | undefined): void;
|
|
1482
|
-
setLoading(id: string, loading: boolean): void;
|
|
1483
|
-
refresh(id: string): void;
|
|
1484
|
-
onDidRefresh(listener: TreeRendererRefreshListener): Disposable_2;
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
|
-
declare interface TreeRendererState {
|
|
1488
|
-
expandedNodeIds: string[];
|
|
1489
|
-
expandedSectionIds: string[];
|
|
1490
|
-
selectedNodeId?: string;
|
|
1491
|
-
loading?: boolean;
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
declare interface TreeRendererStoreState {
|
|
1495
|
-
trees: Record<string, RegisteredTreeRendererContribution>;
|
|
1496
|
-
statesByTreeId: Record<string, TreeRendererState>;
|
|
1497
|
-
refreshKeysByTreeId: Record<string, number>;
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
declare interface TreeSectionEmptyState {
|
|
1501
|
-
title: string;
|
|
1502
|
-
description?: string;
|
|
1503
|
-
icon?: string;
|
|
1504
|
-
}
|
|
1505
|
-
|
|
1506
|
-
declare interface TreeViewSection {
|
|
1507
|
-
id: string;
|
|
1508
|
-
/** Host-owned customization boundary. Extension callbacks cannot set it. */
|
|
1509
|
-
moveScope?: string;
|
|
1510
|
-
label?: string;
|
|
1511
|
-
actions?: TreeAction[];
|
|
1512
|
-
collapsible?: boolean;
|
|
1513
|
-
emptyState?: TreeSectionEmptyState;
|
|
1514
|
-
nodes: TreeNode[];
|
|
1515
|
-
hiddenByDefault?: boolean;
|
|
1516
|
-
/** When true, the section (category) opts in to the tree's hide/show customization menu. */
|
|
1517
|
-
canHide?: boolean;
|
|
1518
|
-
/** When false, the section stays fixed within the Sidenav main region. */
|
|
1519
|
-
canReorder?: boolean;
|
|
1520
|
-
}
|
|
1521
|
-
|
|
1522
|
-
export declare const useWorkbenchResourceActionResolver: (workbench: WorkbenchCoreContributionContext) => (resource: ResourceRef) => ResourceContextAction_2[];
|
|
1523
|
-
|
|
1524
|
-
export declare const useWorkbenchStore: <TState, TSlice>(store: WorkbenchStore<TState>, selector: (state: TState) => TSlice) => TSlice;
|
|
1525
|
-
|
|
1526
|
-
export declare const useWorkbenchThemePreferences: (workbench: WorkbenchCore) => (ThemePreferenceOption | {
|
|
1527
|
-
id: string;
|
|
1528
|
-
mode: "light";
|
|
1529
|
-
} | {
|
|
1530
|
-
id: string;
|
|
1531
|
-
mode: "dark";
|
|
1532
|
-
})[];
|
|
1533
|
-
|
|
1534
|
-
/**
|
|
1535
|
-
* Core-owned contracts for kanban renderer contributions. @pstdio/ui's
|
|
1536
|
-
* KanbanRenderer props are structurally identical; the React layer bridges the
|
|
1537
|
-
* two, so drift surfaces as a compile error there instead of coupling core's
|
|
1538
|
-
* API shape to UI package ownership.
|
|
1539
|
-
*/
|
|
1540
|
-
declare type ViewMode = "board" | "list";
|
|
1541
|
-
|
|
1542
|
-
declare interface ViewSettingsPanel extends SettingsPanelBase {
|
|
1543
|
-
kind: "view";
|
|
1544
|
-
viewId: string;
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
declare interface WidgetContribution {
|
|
1548
|
-
id: string;
|
|
1549
|
-
title: string;
|
|
1550
|
-
icon?: string;
|
|
1551
|
-
region: WorkbenchRegion_2;
|
|
1552
|
-
fallbackRegion?: WorkbenchRegion_2;
|
|
1553
|
-
singleton?: boolean;
|
|
1554
|
-
reuse?: WidgetReusePolicy;
|
|
1555
|
-
mountStrategy?: WidgetMountStrategy;
|
|
1556
|
-
closable?: boolean;
|
|
1557
|
-
hiddenByDefault?: boolean;
|
|
1558
|
-
regionSize?: WorkbenchRegionSize;
|
|
1559
|
-
regionCollapsible?: boolean;
|
|
1560
|
-
headerBorderBottom?: boolean;
|
|
1561
|
-
resourceKinds?: string[];
|
|
1562
|
-
priority?: number;
|
|
1563
|
-
rendererId: string;
|
|
1564
|
-
openCommand?: WorkbenchCommandTarget;
|
|
1565
|
-
eligibleLocations?: WorkbenchLocationEligibility;
|
|
1566
|
-
panelMenuOwner?: WorkbenchPanelMenuOwner;
|
|
1567
|
-
tab?: WorkbenchWidgetTab;
|
|
1568
|
-
config?: unknown;
|
|
1569
|
-
canOpen?(resource: ResourceRef): boolean;
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
declare type WidgetMountStrategy = "active" | "keep-mounted";
|
|
1573
|
-
|
|
1574
|
-
declare type WidgetReusePolicy = "resource" | "none";
|
|
1575
|
-
|
|
1576
|
-
export declare const Workbench: (props: WorkbenchProps) => JSX.Element;
|
|
1577
|
-
|
|
1578
|
-
export declare const WORKBENCH_SETTINGS_NAV_WIDGET_ID = "workbench.settings.nav";
|
|
1579
|
-
|
|
1580
|
-
export declare const WORKBENCH_SETTINGS_OPEN_COMMAND_ID = "workbench.settings.open";
|
|
1581
|
-
|
|
1582
|
-
export declare const WORKBENCH_SETTINGS_PANEL_WIDGET_ID = "workbench.settings.panel";
|
|
1583
|
-
|
|
1584
|
-
export declare const WORKBENCH_SETTINGS_WIDGET_ID = "workbench.settings";
|
|
1585
|
-
|
|
1586
|
-
export declare const WORKBENCH_TERMINAL_OPEN_COMMAND_ID = "workbench.terminal.open";
|
|
1587
|
-
|
|
1588
|
-
/** Suggested secondary-region size for hosts that mount the terminal (createWorkbench regionSettings). */
|
|
1589
|
-
export declare const WORKBENCH_TERMINAL_PANEL_SIZE: {
|
|
1590
|
-
defaultPx: number;
|
|
1591
|
-
minPx: number;
|
|
1592
|
-
};
|
|
1593
|
-
|
|
1594
|
-
export declare const WORKBENCH_TERMINAL_WIDGET_ID = "workbench.terminal";
|
|
1595
|
-
|
|
1596
|
-
export declare const WorkbenchAttachedSidePanel: (props: WorkbenchSidePanelProps) => JSX.Element;
|
|
1597
|
-
|
|
1598
|
-
declare type WorkbenchBreadcrumbChangeListener = () => void;
|
|
1599
|
-
|
|
1600
|
-
declare interface WorkbenchBreadcrumbController {
|
|
1601
|
-
store: WorkbenchStore<WorkbenchBreadcrumbState>;
|
|
1602
|
-
setItems(items: WorkbenchBreadcrumbItem[]): Disposable_2;
|
|
1603
|
-
clearItems(): void;
|
|
1604
|
-
getItems(): WorkbenchBreadcrumbItem[] | undefined;
|
|
1605
|
-
onDidChange(listener: WorkbenchBreadcrumbChangeListener): Disposable_2;
|
|
1606
|
-
}
|
|
1607
|
-
|
|
1608
|
-
declare interface WorkbenchBreadcrumbItem {
|
|
1609
|
-
title: unknown;
|
|
1610
|
-
icon?: string;
|
|
1611
|
-
indicator?: "session-status";
|
|
1612
|
-
url?: string;
|
|
1613
|
-
onClick?: () => void;
|
|
1614
|
-
resource?: ResourceRef;
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
|
-
declare interface WorkbenchBreadcrumbState {
|
|
1618
|
-
items: WorkbenchBreadcrumbItem[] | undefined;
|
|
1619
|
-
}
|
|
1620
|
-
|
|
1621
|
-
export declare const WorkbenchBreadcrumbView: (props: WorkbenchBreadcrumbViewProps) => JSX.Element | null;
|
|
1622
|
-
|
|
1623
|
-
declare interface WorkbenchBreadcrumbViewProps {
|
|
1624
|
-
workbench: WorkbenchCore;
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
declare interface WorkbenchCommandExecutionContext {
|
|
1628
|
-
resource?: ResourceRef;
|
|
1629
|
-
source?: "panel-add";
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
declare interface WorkbenchCommandExecutionError {
|
|
1633
|
-
commandId: string;
|
|
1634
|
-
args: unknown;
|
|
1635
|
-
error: unknown;
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
declare type WorkbenchCommandExecutionErrorListener = (event: WorkbenchCommandExecutionError) => void;
|
|
1639
|
-
|
|
1640
|
-
export declare const WorkbenchCommandPalette: (props: WorkbenchCommandPaletteProps) => JSX.Element;
|
|
1641
|
-
|
|
1642
|
-
declare type WorkbenchCommandPaletteChangeListener = (open: boolean) => void;
|
|
1643
|
-
|
|
1644
|
-
declare interface WorkbenchCommandPaletteController {
|
|
1645
|
-
store: WorkbenchStore<WorkbenchCommandPaletteState>;
|
|
1646
|
-
isOpen(): boolean;
|
|
1647
|
-
getView(): WorkbenchCommandPaletteView;
|
|
1648
|
-
getInitialQuery(): string;
|
|
1649
|
-
getParamsRequest(): WorkbenchCommandParamsRequest | null;
|
|
1650
|
-
open(input?: WorkbenchCommandPaletteOpenInput): void;
|
|
1651
|
-
close(): void;
|
|
1652
|
-
toggle(): void;
|
|
1653
|
-
requestParams(request: WorkbenchCommandParamsRequest): void;
|
|
1654
|
-
clearParams(): void;
|
|
1655
|
-
onDidChange(listener: WorkbenchCommandPaletteChangeListener): Disposable_2;
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
declare interface WorkbenchCommandPaletteOpenInput {
|
|
1659
|
-
view?: WorkbenchCommandPaletteView;
|
|
1660
|
-
initialQuery?: string;
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
|
-
declare interface WorkbenchCommandPaletteProps {
|
|
1664
|
-
workbench: WorkbenchCore;
|
|
1665
|
-
open: boolean;
|
|
1666
|
-
menuPath?: MenuPath;
|
|
1667
|
-
initialQuery?: string;
|
|
1668
|
-
renderParamField?: CommandParamFieldRenderer;
|
|
1669
|
-
onClose: () => void;
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
|
-
declare interface WorkbenchCommandPaletteState {
|
|
1673
|
-
open: boolean;
|
|
1674
|
-
view: WorkbenchCommandPaletteView;
|
|
1675
|
-
initialQuery: string;
|
|
1676
|
-
paramsRequest: WorkbenchCommandParamsRequest | null;
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
declare type WorkbenchCommandPaletteView = "main" | "theme";
|
|
1680
|
-
|
|
1681
|
-
declare interface WorkbenchCommandParamsRequest {
|
|
1682
|
-
record: {
|
|
1683
|
-
command: {
|
|
1684
|
-
id: string;
|
|
1685
|
-
label: string;
|
|
1686
|
-
params?: CommandParamSchema;
|
|
1687
|
-
};
|
|
1688
|
-
};
|
|
1689
|
-
label: string;
|
|
1690
|
-
args?: unknown;
|
|
1691
|
-
context?: WorkbenchCommandExecutionContext;
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
|
-
declare interface WorkbenchCommandTarget {
|
|
1695
|
-
commandId: string;
|
|
1696
|
-
args?: unknown;
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
declare interface WorkbenchCompositionAddablePanel extends WorkbenchModeAddablePanel {
|
|
1700
|
-
contribution: RegisteredWidgetContribution;
|
|
1701
|
-
open?(resource?: ResourceRef): void;
|
|
1702
|
-
}
|
|
1703
|
-
|
|
1704
|
-
declare interface WorkbenchCompositionController {
|
|
1705
|
-
panelsFor(region: WorkbenchPanelRegion): WorkbenchCompositionRegionPanels;
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
|
-
declare interface WorkbenchCompositionRegionPanels {
|
|
1709
|
-
open: readonly WorkbenchWidgetPlacement[];
|
|
1710
|
-
addable: readonly WorkbenchCompositionAddablePanel[];
|
|
1711
|
-
closable: readonly string[];
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
declare interface WorkbenchCore extends WorkbenchCoreContributionContext {
|
|
1715
|
-
host: WorkbenchHost;
|
|
1716
|
-
layout: WorkbenchLayoutModel;
|
|
1717
|
-
registerModule(module: WorkbenchModuleContribution): Disposable_2;
|
|
1718
|
-
unregisterModule(moduleId: string): void;
|
|
1719
|
-
}
|
|
1720
|
-
|
|
1721
|
-
declare interface WorkbenchCoreContributionContext {
|
|
1722
|
-
pinPlacement(identity: PlacementIdentity): void;
|
|
1723
|
-
closePlacement(identity: PlacementIdentity): void;
|
|
1724
|
-
breadcrumbs: WorkbenchBreadcrumbController;
|
|
1725
|
-
commandPalette: WorkbenchCommandPaletteController;
|
|
1726
|
-
commandPaletteResources: CommandPaletteResourceRegistry;
|
|
1727
|
-
commands: CommandRegistry;
|
|
1728
|
-
composition: WorkbenchCompositionController;
|
|
1729
|
-
context: ContextKeyService;
|
|
1730
|
-
focus: WorkbenchFocusController;
|
|
1731
|
-
keybindings: KeybindingRegistry;
|
|
1732
|
-
layout: WorkbenchModuleLayoutModel;
|
|
1733
|
-
modes: WorkbenchModeRegistry;
|
|
1734
|
-
modePlacements: WorkbenchModePlacementRegistry;
|
|
1735
|
-
shellPlacements: WorkbenchShellPlacementRegistry;
|
|
1736
|
-
navigation: NavigationRegistry;
|
|
1737
|
-
navigationTrees: NavigationTreeRegistry;
|
|
1738
|
-
notifications: NotificationRegistry;
|
|
1739
|
-
overlays: WorkbenchOverlayRegistry;
|
|
1740
|
-
placeholders: WorkbenchPlaceholderRegistry;
|
|
1741
|
-
pageLocations: WorkbenchPageLocationController;
|
|
1742
|
-
pages: WorkbenchPageRegistry<WorkbenchWidgetPlacement>;
|
|
1743
|
-
panelMenuState: WorkbenchPanelMenuStateController;
|
|
1744
|
-
preferences: PreferenceRegistry;
|
|
1745
|
-
treeViews: WorkbenchTreeViews;
|
|
1746
|
-
resources: ResourceRegistry;
|
|
1747
|
-
views: WorkbenchViewRegistry;
|
|
1748
|
-
viewMenus: WorkbenchViewMenuRegistry;
|
|
1749
|
-
settings: SettingsRegistry;
|
|
1750
|
-
statusBar: WorkbenchStatusBarRegistry;
|
|
1751
|
-
statuses: WorkbenchStatusRegistry;
|
|
1752
|
-
shell: WorkbenchShellController;
|
|
1753
|
-
sidePanel: WorkbenchSidePanelController;
|
|
1754
|
-
terminal: WorkbenchTerminalController;
|
|
1755
|
-
themes: ThemeRegistry;
|
|
1756
|
-
fileIconThemes: FileIconThemeRegistry;
|
|
1757
|
-
getPrimaryResource(): ResourceRef | undefined;
|
|
1758
|
-
onDidChangePrimaryResource(listener: (resource: ResourceRef | undefined) => void): Disposable_2;
|
|
1759
|
-
getActiveResource(): ResourceRef | undefined;
|
|
1760
|
-
onDidChangeActiveResource(listener: (resource: ResourceRef | undefined) => void): Disposable_2;
|
|
1761
|
-
registerChildModule(module: WorkbenchModuleContribution): Disposable_2;
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
|
-
export declare const WorkbenchDataTableView: (props: WorkbenchDataTableViewProps) => JSX.Element;
|
|
1765
|
-
|
|
1766
|
-
declare interface WorkbenchDataTableViewProps {
|
|
1767
|
-
workbench: WorkbenchCore;
|
|
1768
|
-
contribution: RegisteredDataTableRendererContribution;
|
|
1769
|
-
placement: WorkbenchPanelInstance;
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
declare interface WorkbenchFileIconThemeStoreState {
|
|
1773
|
-
themes: readonly FileIconThemePreferenceOption[];
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
export declare const WorkbenchFloatingSidePanel: (props: WorkbenchSidePanelProps) => JSX.Element | null;
|
|
1777
|
-
|
|
1778
|
-
declare type WorkbenchFocusChangeListener = (region: WorkbenchFocusRegionId | undefined) => void;
|
|
1779
|
-
|
|
1780
|
-
declare interface WorkbenchFocusController {
|
|
1781
|
-
store: WorkbenchStore<WorkbenchFocusState>;
|
|
1782
|
-
setActiveRegion(region: WorkbenchFocusRegionId): void;
|
|
1783
|
-
clearFocus(): void;
|
|
1784
|
-
getActiveRegion(): WorkbenchFocusRegionId | undefined;
|
|
1785
|
-
onDidChange(listener: WorkbenchFocusChangeListener): Disposable_2;
|
|
1786
|
-
}
|
|
1787
|
-
|
|
1788
|
-
export declare const WorkbenchFocusRegion: (props: WorkbenchFocusRegionProps) => JSX.Element;
|
|
1789
|
-
|
|
1790
|
-
declare type WorkbenchFocusRegionId = (typeof workbenchFocusRegions)[number];
|
|
1791
|
-
|
|
1792
|
-
declare interface WorkbenchFocusRegionProps extends BoxProps {
|
|
1793
|
-
workbench: WorkbenchCore;
|
|
1794
|
-
region: WorkbenchFocusRegionId;
|
|
1795
|
-
children: ReactNode;
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
declare const workbenchFocusRegions: readonly ["activity", "sidenav", "main", "secondary", "side", "status"];
|
|
1799
|
-
|
|
1800
|
-
declare interface WorkbenchFocusState {
|
|
1801
|
-
activeRegion: WorkbenchFocusRegionId | undefined;
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
export declare const WorkbenchHeaderActions: (props: WorkbenchHeaderActionsProps) => JSX.Element | null;
|
|
1805
|
-
|
|
1806
|
-
declare interface WorkbenchHeaderActionsProps {
|
|
1807
|
-
workbench: WorkbenchCore;
|
|
1808
|
-
menuPath: MenuPath;
|
|
1809
|
-
controlSize?: "2xs" | "xs";
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
declare type WorkbenchHierarchyNode = ResourceRef | WorkbenchViewHierarchyNode;
|
|
1813
|
-
|
|
1814
|
-
declare interface WorkbenchHost {
|
|
1815
|
-
getSnapshot(): WorkbenchSnapshot;
|
|
1816
|
-
restoreSnapshot(snapshot: WorkbenchSnapshot): void;
|
|
1817
|
-
setPersistenceScope(scope: string | undefined, input?: {
|
|
1818
|
-
carryRegions?: readonly WorkbenchRegion_2[];
|
|
1819
|
-
}): void;
|
|
1820
|
-
getPersistenceScope(): string | undefined;
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
export declare interface WorkbenchHotkeyRegistration {
|
|
1824
|
-
id: string;
|
|
1825
|
-
hotkey: KeybindingSequence;
|
|
1826
|
-
enabled: boolean;
|
|
1827
|
-
ignoreInputs: boolean;
|
|
1828
|
-
execute(): Promise<unknown>;
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
export declare const WorkbenchIcon: (props: WorkbenchIconProps) => JSX.Element | null;
|
|
1832
|
-
|
|
1833
|
-
declare interface WorkbenchIconProps extends Omit<IconProps, "as" | "size"> {
|
|
1834
|
-
name?: string;
|
|
1835
|
-
size?: number | string;
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
export declare const WorkbenchKeybindingDispatcher: (props: WorkbenchKeybindingDispatcherProps) => null;
|
|
1839
|
-
|
|
1840
|
-
declare interface WorkbenchKeybindingDispatcherProps {
|
|
1841
|
-
workbench: WorkbenchCore;
|
|
1842
|
-
disabled?: boolean;
|
|
1843
|
-
commandIds?: readonly string[];
|
|
1844
|
-
}
|
|
1845
|
-
|
|
1846
|
-
declare interface WorkbenchLayout {
|
|
1847
|
-
regions: Record<WorkbenchRegion_2, WorkbenchRegionState>;
|
|
1848
|
-
locationSubPanelSelections?: Record<string, Partial<Record<WorkbenchPanelRegion, string>>>;
|
|
1849
|
-
activeWidgetId?: string;
|
|
1850
|
-
activeLocationWidgetId?: string;
|
|
1851
|
-
activeResourceKey?: string;
|
|
1852
|
-
}
|
|
1853
|
-
|
|
1854
|
-
declare type WorkbenchLayoutModel = LayoutModel & MenuRegistry;
|
|
1855
|
-
|
|
1856
|
-
declare interface WorkbenchLayoutStoreState {
|
|
1857
|
-
layout: WorkbenchLayout;
|
|
1858
|
-
widgets: Record<string, RegisteredWidgetContribution>;
|
|
1859
|
-
placeholders: Partial<Record<WorkbenchRegion_2, RegisteredPlaceholderContribution>>;
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
declare interface WorkbenchLocationEligibility {
|
|
1863
|
-
modeIds?: string[];
|
|
1864
|
-
resourceKinds?: string[];
|
|
1865
|
-
resourceIds?: string[];
|
|
1866
|
-
canOpen?(resource: ResourceRef): boolean;
|
|
1867
|
-
canOpenLocation?(location: {
|
|
1868
|
-
resource?: ResourceRef;
|
|
1869
|
-
viewId?: string;
|
|
1870
|
-
}): boolean;
|
|
1871
|
-
}
|
|
1872
|
-
|
|
1873
|
-
export declare interface WorkbenchMenuItem {
|
|
1874
|
-
id: string;
|
|
1875
|
-
commandId: string;
|
|
1876
|
-
label: string;
|
|
1877
|
-
description?: string;
|
|
1878
|
-
icon: string | undefined;
|
|
1879
|
-
iconSrc?: string;
|
|
1880
|
-
overflowLabel?: string;
|
|
1881
|
-
group: string | undefined;
|
|
1882
|
-
args: unknown;
|
|
1883
|
-
disabled: boolean;
|
|
1884
|
-
separatorBefore?: boolean;
|
|
1885
|
-
readOnly?: true;
|
|
1886
|
-
}
|
|
1887
|
-
|
|
1888
|
-
declare interface WorkbenchMenuItemContext {
|
|
1889
|
-
resource?: ResourceRef | undefined;
|
|
1890
|
-
}
|
|
1891
|
-
|
|
1892
|
-
declare type WorkbenchModeActivationContext = WorkbenchCoreContributionContext;
|
|
1893
|
-
|
|
1894
|
-
declare type WorkbenchModeActivationResult = Disposable_2 | readonly Disposable_2[] | undefined;
|
|
1895
|
-
|
|
1896
|
-
declare interface WorkbenchModeAddablePanel {
|
|
1897
|
-
panelId: string;
|
|
1898
|
-
region: WorkbenchPanelRegion;
|
|
1899
|
-
allowedRegions?: readonly WorkbenchRegion_2[];
|
|
1900
|
-
pinned?: boolean;
|
|
1901
|
-
}
|
|
1902
|
-
|
|
1903
|
-
declare interface WorkbenchModeAddablePanelContext {
|
|
1904
|
-
layout: WorkbenchLayout;
|
|
1905
|
-
resource?: ResourceRef;
|
|
1906
|
-
}
|
|
1907
|
-
|
|
1908
|
-
declare type WorkbenchModeChangeListener = () => void;
|
|
1909
|
-
|
|
1910
|
-
declare interface WorkbenchModeContribution {
|
|
1911
|
-
id: string;
|
|
1912
|
-
label?: string;
|
|
1913
|
-
defaultTheme?: string;
|
|
1914
|
-
floatingPanels?: "visible" | "hidden";
|
|
1915
|
-
chrome?: Partial<Record<"nav" | "sidenav" | "activity" | "status", string | false>>;
|
|
1916
|
-
panels?: readonly WorkbenchPanelRegion[];
|
|
1917
|
-
/** Region-level layout policy while this mode is active. */
|
|
1918
|
-
regionSettings?: Partial<Record<WorkbenchRegion_2, WorkbenchRegionSettings>>;
|
|
1919
|
-
resourceKinds?: readonly string[];
|
|
1920
|
-
defaultResource?: ResourceRef | (() => Promise<ResourceRef | undefined> | ResourceRef | undefined);
|
|
1921
|
-
listAddablePanels?(context: WorkbenchModeAddablePanelContext): readonly WorkbenchModeAddablePanel[];
|
|
1922
|
-
activate(ctx: WorkbenchModeActivationContext): WorkbenchModeActivationResult;
|
|
1923
|
-
seed?(ctx: WorkbenchModeActivationContext): void;
|
|
1924
|
-
enter?(ctx: WorkbenchModeActivationContext): WorkbenchModeActivationResult;
|
|
1925
|
-
reconcile?(ctx: WorkbenchModeActivationContext): void;
|
|
1926
|
-
}
|
|
1927
|
-
|
|
1928
|
-
declare interface WorkbenchModePlacementContribution extends WorkbenchPlacementPresentation {
|
|
1929
|
-
readonly id: string;
|
|
1930
|
-
readonly ref: PlacementRef;
|
|
1931
|
-
readonly modeId: string;
|
|
1932
|
-
readonly item: WorkbenchOwnedPlacementItem;
|
|
1933
|
-
readonly region: DockedWorkbenchRegion;
|
|
1934
|
-
readonly order?: number;
|
|
1935
|
-
readonly movableTo?: readonly DockedWorkbenchRegion[];
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
declare interface WorkbenchModePlacementRegistry {
|
|
1939
|
-
registerPlacement(placement: WorkbenchModePlacementContribution): Disposable_2;
|
|
1940
|
-
getPlacement(ref: PlacementRef): WorkbenchModePlacementContribution | undefined;
|
|
1941
|
-
listPlacements(modeId?: string): WorkbenchModePlacementContribution[];
|
|
1942
|
-
openPlacement(input: OpenModePlacementTarget): PlacementIdentity;
|
|
1943
|
-
updatePlacement(identity: PlacementIdentity, input: {
|
|
1944
|
-
resource?: ResourceRef;
|
|
1945
|
-
title?: string;
|
|
1946
|
-
open?: PageOpenIntent;
|
|
1947
|
-
}): void;
|
|
1948
|
-
closePlacement(identity: PlacementIdentity): void;
|
|
1949
|
-
resolvePlacements(modeId: string, context?: OwnedPlacementLocationContext): readonly ResolvedOwnedPlacement<WorkbenchWidgetPlacement>[];
|
|
1950
|
-
onDidChange(listener: () => void): Disposable_2;
|
|
1951
|
-
}
|
|
1952
|
-
|
|
1953
|
-
declare interface WorkbenchModeRegistry {
|
|
1954
|
-
store: WorkbenchStore<WorkbenchModeStoreState>;
|
|
1955
|
-
dispose(): void;
|
|
1956
|
-
registerMode(mode: WorkbenchModeContribution): Disposable_2;
|
|
1957
|
-
getMode(id: string): WorkbenchModeContribution | undefined;
|
|
1958
|
-
listModes(): WorkbenchModeContribution[];
|
|
1959
|
-
getActiveModeId(): string | undefined;
|
|
1960
|
-
isTransitioning(): boolean;
|
|
1961
|
-
setActiveMode(id: string | undefined, input?: {
|
|
1962
|
-
deferSeed?: boolean;
|
|
1963
|
-
}): void;
|
|
1964
|
-
seedActiveMode(): void;
|
|
1965
|
-
onDidChangeActive(listener: WorkbenchModeChangeListener): Disposable_2;
|
|
1966
|
-
}
|
|
1967
|
-
|
|
1968
|
-
declare interface WorkbenchModeStoreState {
|
|
1969
|
-
modes: Record<string, WorkbenchModeContribution>;
|
|
1970
|
-
activeModeId: string | undefined;
|
|
1971
|
-
}
|
|
1972
|
-
|
|
1973
|
-
declare type WorkbenchModuleActivationResult = Disposable_2 | readonly Disposable_2[] | undefined;
|
|
1974
|
-
|
|
1975
|
-
declare type WorkbenchModuleContext = WorkbenchCoreContributionContext;
|
|
1976
|
-
|
|
1977
|
-
declare interface WorkbenchModuleContribution {
|
|
1978
|
-
id: string;
|
|
1979
|
-
source?: ContributionSource;
|
|
1980
|
-
ownerId?: string;
|
|
1981
|
-
activate(ctx: WorkbenchModuleContributionContext): WorkbenchModuleActivationResult;
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
|
-
declare type WorkbenchModuleContributionContext = WorkbenchModuleContext;
|
|
1985
|
-
|
|
1986
|
-
export declare const WorkbenchModuleHost: (props: WorkbenchModuleHostProps) => null;
|
|
1987
|
-
|
|
1988
|
-
export declare interface WorkbenchModuleHostProps {
|
|
1989
|
-
workbench: WorkbenchCore;
|
|
1990
|
-
modules: readonly WorkbenchModuleContribution[];
|
|
1991
|
-
}
|
|
1992
|
-
|
|
1993
|
-
export declare interface WorkbenchModuleHostRegistration {
|
|
1994
|
-
disposable: Disposable_2;
|
|
1995
|
-
}
|
|
1996
|
-
|
|
1997
|
-
declare type WorkbenchModuleLayoutModel = Omit<WorkbenchLayoutModel, "registerPanel" | "registerWidget" | "openPanel" | "openWidget" | "registerPlaceholder" | "registerPanelMenu">;
|
|
1998
|
-
|
|
1999
|
-
declare interface WorkbenchNotification {
|
|
2000
|
-
id?: string;
|
|
2001
|
-
level: WorkbenchNotificationLevel;
|
|
2002
|
-
title: string;
|
|
2003
|
-
message?: string;
|
|
2004
|
-
createdAt?: string;
|
|
2005
|
-
resource?: ResourceRef;
|
|
2006
|
-
actions?: WorkbenchNotificationAction[];
|
|
2007
|
-
metadata?: Record<string, unknown>;
|
|
2008
|
-
}
|
|
2009
|
-
|
|
2010
|
-
declare interface WorkbenchNotificationAction {
|
|
2011
|
-
commandId: string;
|
|
2012
|
-
title: string;
|
|
2013
|
-
args?: unknown;
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
declare type WorkbenchNotificationEvent = {
|
|
2017
|
-
type: "show";
|
|
2018
|
-
id: string;
|
|
2019
|
-
notification: RegisteredWorkbenchNotification;
|
|
2020
|
-
} | {
|
|
2021
|
-
type: "dismiss";
|
|
2022
|
-
id: string;
|
|
2023
|
-
};
|
|
2024
|
-
|
|
2025
|
-
export declare const WorkbenchNotificationHost: (props: WorkbenchNotificationHostProps) => null;
|
|
2026
|
-
|
|
2027
|
-
declare interface WorkbenchNotificationHostProps {
|
|
2028
|
-
workbench: WorkbenchCore;
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
|
-
declare type WorkbenchNotificationLevel = "info" | "success" | "warning" | "error";
|
|
2032
|
-
|
|
2033
|
-
declare type WorkbenchNotificationListener = (event: WorkbenchNotificationEvent) => void;
|
|
2034
|
-
|
|
2035
|
-
declare interface WorkbenchNotificationStoreState {
|
|
2036
|
-
notifications: Record<string, RegisteredWorkbenchNotification>;
|
|
2037
|
-
}
|
|
2038
|
-
|
|
2039
|
-
declare interface WorkbenchOverlayContribution extends Omit<WorkbenchPlacementPresentation, "mountStrategy"> {
|
|
2040
|
-
id: string;
|
|
2041
|
-
viewId: string;
|
|
2042
|
-
closable?: boolean;
|
|
2043
|
-
}
|
|
2044
|
-
|
|
2045
|
-
export declare const WorkbenchOverlayLayer: (props: WorkbenchOverlayLayerProps) => JSX.Element | null;
|
|
2046
|
-
|
|
2047
|
-
declare interface WorkbenchOverlayLayerProps {
|
|
2048
|
-
workbench: WorkbenchCore;
|
|
2049
|
-
}
|
|
2050
|
-
|
|
2051
|
-
declare interface WorkbenchOverlayRegistry {
|
|
2052
|
-
registerOverlay(overlay: WorkbenchOverlayContribution): Disposable_2;
|
|
2053
|
-
getOverlay(id: string): WorkbenchOverlayContribution | undefined;
|
|
2054
|
-
listOverlays(): WorkbenchOverlayContribution[];
|
|
2055
|
-
openOverlay(id: string, input?: OpenWorkbenchOverlayInput): string;
|
|
2056
|
-
closeOverlay(instanceId: string): void;
|
|
2057
|
-
}
|
|
2058
|
-
|
|
2059
|
-
export declare interface WorkbenchOverlayWidgetConfig {
|
|
2060
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "cover" | "full";
|
|
2061
|
-
placement?: "center" | "top" | "bottom";
|
|
2062
|
-
scrollBehavior?: "inside" | "outside";
|
|
2063
|
-
closeOnEscape?: boolean;
|
|
2064
|
-
closeOnInteractOutside?: boolean;
|
|
2065
|
-
/** Controls dialog semantics. Every workbench overlay blocks background pointer input. */
|
|
2066
|
-
modal?: boolean;
|
|
2067
|
-
preventScroll?: boolean;
|
|
2068
|
-
trapFocus?: boolean;
|
|
2069
|
-
motionPreset?: "scale" | "slide-in-bottom" | "slide-in-top" | "slide-in-left" | "slide-in-right" | "none";
|
|
2070
|
-
role?: "dialog" | "alertdialog";
|
|
2071
|
-
contentHeight?: string;
|
|
2072
|
-
contentMaxHeight?: string;
|
|
2073
|
-
contentMinHeight?: string;
|
|
2074
|
-
contentWidth?: string;
|
|
2075
|
-
contentMaxWidth?: string;
|
|
2076
|
-
closeTriggerTop?: string;
|
|
2077
|
-
}
|
|
2078
|
-
|
|
2079
|
-
declare type WorkbenchOwnedPlacementItem = PlacementItem;
|
|
2080
|
-
|
|
2081
|
-
declare interface WorkbenchPageContribution {
|
|
2082
|
-
id: string;
|
|
2083
|
-
ref: PageRef;
|
|
2084
|
-
title?: Localizable<string>;
|
|
2085
|
-
icon?: string;
|
|
2086
|
-
path: string;
|
|
2087
|
-
modeId: string;
|
|
2088
|
-
parentId?: string;
|
|
2089
|
-
resource?: ResourceConstraint;
|
|
2090
|
-
main: WorkbenchPageMain;
|
|
2091
|
-
slots: readonly WorkbenchPageSlot[];
|
|
2092
|
-
}
|
|
2093
|
-
|
|
2094
|
-
declare interface WorkbenchPageLocationController {
|
|
2095
|
-
historyStore: WorkbenchStore<WorkbenchPageLocationHistoryState>;
|
|
2096
|
-
setProject(projectId: string): void;
|
|
2097
|
-
clearProject(): void;
|
|
2098
|
-
isCurrentProjectUrl(projectId: string): boolean;
|
|
2099
|
-
hasCurrentPageUrl(projectId: string): boolean;
|
|
2100
|
-
boot(projectId: string): WorkbenchPageNavigationResult;
|
|
2101
|
-
switchProject(projectId: string): WorkbenchPageNavigationResult;
|
|
2102
|
-
navigate(target: NavigationTargetPage_2): WorkbenchPageNavigationResult;
|
|
2103
|
-
replay(location: PageLocation): WorkbenchPageNavigationResult;
|
|
2104
|
-
navigateToParent(): WorkbenchPageNavigationResult;
|
|
2105
|
-
closePlacement(identity: PlacementIdentity): WorkbenchPageNavigationResult;
|
|
2106
|
-
goBack(): void;
|
|
2107
|
-
goForward(): void;
|
|
2108
|
-
dispose(): void;
|
|
2109
|
-
}
|
|
2110
|
-
|
|
2111
|
-
declare interface WorkbenchPageLocationDiagnostic {
|
|
2112
|
-
code: "page-location-unresolved";
|
|
2113
|
-
source: "boot" | "history" | "navigation" | "project-switch";
|
|
2114
|
-
message: string;
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
declare interface WorkbenchPageLocationHistoryState {
|
|
2118
|
-
canGoBack: boolean;
|
|
2119
|
-
canGoForward: boolean;
|
|
2120
|
-
}
|
|
2121
|
-
|
|
2122
|
-
declare type WorkbenchPageMain = PageMain extends infer Main ? Main extends PageMain ? Omit<Main, "tab"> & {
|
|
2123
|
-
readonly tab?: WorkbenchPlacementPresentation["tab"];
|
|
2124
|
-
} : never : never;
|
|
2125
|
-
|
|
2126
|
-
declare type WorkbenchPageNavigationResult = {
|
|
2127
|
-
ok: true;
|
|
2128
|
-
location: PageLocation;
|
|
2129
|
-
} | {
|
|
2130
|
-
ok: false;
|
|
2131
|
-
diagnostic: WorkbenchPageLocationDiagnostic;
|
|
2132
|
-
};
|
|
2133
|
-
|
|
2134
|
-
declare interface WorkbenchPageRegistry<Value> {
|
|
2135
|
-
store: WorkbenchStore<WorkbenchPageRegistryStoreState<Value>>;
|
|
2136
|
-
registerPage(page: WorkbenchPageContribution): {
|
|
2137
|
-
dispose(): void;
|
|
2138
|
-
};
|
|
2139
|
-
getPage(pageId: string): WorkbenchPageContribution | undefined;
|
|
2140
|
-
listPages(): WorkbenchPageContribution[];
|
|
2141
|
-
pinPlacement(identity: PlacementIdentity): void;
|
|
2142
|
-
openSlot(input: WorkbenchPageSlotOpenInput): void;
|
|
2143
|
-
}
|
|
2144
|
-
|
|
2145
|
-
declare interface WorkbenchPageRegistryStoreState<Value> {
|
|
2146
|
-
pages: Readonly<Record<string, WorkbenchPageContribution>>;
|
|
2147
|
-
pageStates: Readonly<Record<string, WorkbenchPageRuntimeState>>;
|
|
2148
|
-
projectId?: string;
|
|
2149
|
-
location?: PageLocation;
|
|
2150
|
-
activeModeId?: string;
|
|
2151
|
-
activePageId?: string;
|
|
2152
|
-
placements: readonly ResolvedOwnedPlacement<Value>[];
|
|
2153
|
-
reconciliation: OwnedPlacementReconciliation<Value>;
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2156
|
-
declare interface WorkbenchPageRuntimeState {
|
|
2157
|
-
openStaticSlotIds: readonly string[];
|
|
2158
|
-
resourceInstances: Readonly<Record<string, readonly WorkbenchPageSlotInstance[]>>;
|
|
2159
|
-
activePrimaryInstanceKey?: string;
|
|
2160
|
-
}
|
|
2161
|
-
|
|
2162
|
-
declare interface WorkbenchPageSlot extends Omit<PageSlot, "tab"> {
|
|
2163
|
-
readonly tab?: WorkbenchPlacementPresentation["tab"];
|
|
2164
|
-
}
|
|
2165
|
-
|
|
2166
|
-
declare interface WorkbenchPageSlotInstance {
|
|
2167
|
-
instanceKey: string;
|
|
2168
|
-
resource: ResourceRef;
|
|
2169
|
-
section?: FileRendererSectionTarget;
|
|
2170
|
-
open?: PageOpenIntent;
|
|
2171
|
-
}
|
|
2172
|
-
|
|
2173
|
-
declare interface WorkbenchPageSlotOpenInput {
|
|
2174
|
-
pageId: string;
|
|
2175
|
-
slotId: string;
|
|
2176
|
-
resource?: ResourceRef;
|
|
2177
|
-
open?: PageOpenIntent;
|
|
2178
|
-
}
|
|
2179
|
-
|
|
2180
|
-
declare interface WorkbenchPanelContribution {
|
|
2181
|
-
id: string;
|
|
2182
|
-
title: string;
|
|
2183
|
-
icon?: string;
|
|
2184
|
-
region: WorkbenchRegion_2;
|
|
2185
|
-
fallbackRegion?: WorkbenchRegion_2;
|
|
2186
|
-
rendererId: string;
|
|
2187
|
-
singleton?: boolean;
|
|
2188
|
-
reuse?: WorkbenchPanelReusePolicy;
|
|
2189
|
-
mountStrategy?: WorkbenchPanelMountStrategy;
|
|
2190
|
-
closable?: boolean;
|
|
2191
|
-
hiddenByDefault?: boolean;
|
|
2192
|
-
regionSize?: WorkbenchRegionSize;
|
|
2193
|
-
regionCollapsible?: boolean;
|
|
2194
|
-
headerBorderBottom?: boolean;
|
|
2195
|
-
resourceKinds?: string[];
|
|
2196
|
-
eligibleLocations?: WorkbenchLocationEligibility;
|
|
2197
|
-
priority?: number;
|
|
2198
|
-
openCommand?: WorkbenchCommandTarget;
|
|
2199
|
-
tab?: WorkbenchPanelTab;
|
|
2200
|
-
config?: unknown;
|
|
2201
|
-
canOpen?(resource: ResourceRef): boolean;
|
|
2202
|
-
ownerId?: string;
|
|
2203
|
-
source?: ContributionSource;
|
|
2204
|
-
panelMenus?: readonly WorkbenchPanelMenuDefinition[];
|
|
2205
|
-
}
|
|
2206
|
-
|
|
2207
|
-
declare interface WorkbenchPanelInstance {
|
|
2208
|
-
instanceId: string;
|
|
2209
|
-
panelId: string;
|
|
2210
|
-
placementIdentity?: PlacementIdentity;
|
|
2211
|
-
viewId?: string;
|
|
2212
|
-
ownerId?: string;
|
|
2213
|
-
source?: ContributionSource;
|
|
2214
|
-
resource?: ResourceRef;
|
|
2215
|
-
section?: FileRendererSectionTarget;
|
|
2216
|
-
resourceKey?: string;
|
|
2217
|
-
ownerResourceKey?: string;
|
|
2218
|
-
title?: string;
|
|
2219
|
-
pinned?: boolean;
|
|
2220
|
-
closable: boolean;
|
|
2221
|
-
mountStrategy?: WorkbenchPanelMountStrategy;
|
|
2222
|
-
hiddenByDefault?: boolean;
|
|
2223
|
-
tabRetention?: WorkbenchTabRetention;
|
|
2224
|
-
tab?: WorkbenchPanelTab;
|
|
2225
|
-
}
|
|
2226
|
-
|
|
2227
|
-
declare type WorkbenchPanelMenuContribution = Omit<WidgetContribution, "region" | "fallbackRegion"> & {
|
|
2228
|
-
region: WorkbenchPanelMenuRegion;
|
|
2229
|
-
fallbackRegion?: WorkbenchPanelMenuRegion;
|
|
2230
|
-
};
|
|
2231
|
-
|
|
2232
|
-
declare interface WorkbenchPanelMenuDefinition {
|
|
2233
|
-
id: string;
|
|
2234
|
-
title: string;
|
|
2235
|
-
icon?: string;
|
|
2236
|
-
side: WorkbenchPanelMenuSide;
|
|
2237
|
-
singleton?: boolean;
|
|
2238
|
-
reuse?: WorkbenchPanelReusePolicy;
|
|
2239
|
-
mountStrategy?: WorkbenchPanelMountStrategy;
|
|
2240
|
-
hiddenByDefault?: boolean;
|
|
2241
|
-
regionSize?: WorkbenchRegionSize;
|
|
2242
|
-
regionCollapsible?: boolean;
|
|
2243
|
-
headerBorderBottom?: boolean;
|
|
2244
|
-
rendererId: string;
|
|
2245
|
-
priority?: number;
|
|
2246
|
-
config?: unknown;
|
|
2247
|
-
}
|
|
2248
|
-
|
|
2249
|
-
declare type WorkbenchPanelMenuOwner = {
|
|
2250
|
-
level: "panel";
|
|
2251
|
-
contributionId?: string;
|
|
2252
|
-
} | {
|
|
2253
|
-
level: "sub-panel";
|
|
2254
|
-
contributionId: string;
|
|
2255
|
-
};
|
|
2256
|
-
|
|
2257
|
-
declare type WorkbenchPanelMenuRegion = (typeof workbenchPanelMenuRegions)[WorkbenchPanelRegion][WorkbenchPanelMenuSide];
|
|
2258
|
-
|
|
2259
|
-
declare const workbenchPanelMenuRegions: {
|
|
2260
|
-
readonly main: {
|
|
2261
|
-
readonly left: "main-left-menu";
|
|
2262
|
-
readonly right: "main-right-menu";
|
|
2263
|
-
};
|
|
2264
|
-
readonly secondary: {
|
|
2265
|
-
readonly left: "secondary-left-menu";
|
|
2266
|
-
readonly right: "secondary-right-menu";
|
|
2267
|
-
};
|
|
2268
|
-
readonly side: {
|
|
2269
|
-
readonly left: "side-left-menu";
|
|
2270
|
-
readonly right: "side-right-menu";
|
|
2271
|
-
};
|
|
2272
|
-
};
|
|
2273
|
-
|
|
2274
|
-
declare type WorkbenchPanelMenuSide = "left" | "right";
|
|
2275
|
-
|
|
2276
|
-
declare interface WorkbenchPanelMenuState {
|
|
2277
|
-
openByMenuId: Record<string, boolean>;
|
|
2278
|
-
}
|
|
2279
|
-
|
|
2280
|
-
declare type WorkbenchPanelMenuStateChangeListener = (state: WorkbenchPanelMenuState) => void;
|
|
2281
|
-
|
|
2282
|
-
declare interface WorkbenchPanelMenuStateController {
|
|
2283
|
-
store: WorkbenchStore<WorkbenchPanelMenuState>;
|
|
2284
|
-
isOpen(menuId: string): boolean;
|
|
2285
|
-
setOpen(menuId: string, open: boolean): void;
|
|
2286
|
-
toggle(menuId: string): void;
|
|
2287
|
-
setPersistenceScope(scope: string | undefined): void;
|
|
2288
|
-
getPersistenceScope(): string | undefined;
|
|
2289
|
-
onDidChange(listener: WorkbenchPanelMenuStateChangeListener): Disposable_2;
|
|
2290
|
-
}
|
|
2291
|
-
|
|
2292
|
-
declare type WorkbenchPanelMountStrategy = WidgetMountStrategy;
|
|
2293
|
-
|
|
2294
|
-
declare type WorkbenchPanelOpenStrategy = {
|
|
2295
|
-
kind: "persistent";
|
|
2296
|
-
position?: WorkbenchTabPosition;
|
|
2297
|
-
} | {
|
|
2298
|
-
kind: "replace-active";
|
|
2299
|
-
} | {
|
|
2300
|
-
kind: "replace-panel";
|
|
2301
|
-
instanceId: string;
|
|
2302
|
-
retention?: WorkbenchTabRetention;
|
|
2303
|
-
} | {
|
|
2304
|
-
kind: "preview";
|
|
2305
|
-
position?: WorkbenchTabPosition;
|
|
2306
|
-
};
|
|
2307
|
-
|
|
2308
|
-
declare type WorkbenchPanelRegion = (typeof workbenchPanelRegions)[number];
|
|
2309
|
-
|
|
2310
|
-
declare const workbenchPanelRegions: readonly ["main", "secondary", "side"];
|
|
2311
|
-
|
|
2312
|
-
export declare interface WorkbenchPanelRenderInput {
|
|
2313
|
-
workbench: WorkbenchCore;
|
|
2314
|
-
panel: WorkbenchPanelContribution | PlaceholderContribution | RegisteredPlaceholderContribution;
|
|
2315
|
-
instance: WorkbenchPanelInstance;
|
|
2316
|
-
refresh: () => void;
|
|
2317
|
-
}
|
|
2318
|
-
|
|
2319
|
-
declare type WorkbenchPanelReusePolicy = WidgetReusePolicy;
|
|
2320
|
-
|
|
2321
|
-
declare type WorkbenchPanelTab = WorkbenchWidgetTab;
|
|
2322
|
-
|
|
2323
|
-
declare interface WorkbenchPlaceholderContribution {
|
|
2324
|
-
id: string;
|
|
2325
|
-
viewId: string;
|
|
2326
|
-
title?: string;
|
|
2327
|
-
region: WorkbenchRegion_2;
|
|
2328
|
-
regionSize?: WorkbenchRegionSize;
|
|
2329
|
-
regionCollapsible?: boolean;
|
|
2330
|
-
config?: unknown;
|
|
2331
|
-
}
|
|
2332
|
-
|
|
2333
|
-
declare interface WorkbenchPlaceholderRegistry {
|
|
2334
|
-
registerPlaceholder(placeholder: WorkbenchPlaceholderContribution, metadata?: ContributionMetadata): Disposable_2;
|
|
2335
|
-
}
|
|
2336
|
-
|
|
2337
|
-
declare interface WorkbenchPlacementPresentation {
|
|
2338
|
-
mountStrategy?: WidgetMountStrategy;
|
|
2339
|
-
hiddenByDefault?: boolean;
|
|
2340
|
-
headerBorderBottom?: boolean;
|
|
2341
|
-
tab?: WorkbenchPanelTab;
|
|
2342
|
-
config?: unknown;
|
|
2343
|
-
}
|
|
2344
|
-
|
|
2345
|
-
export declare const WorkbenchPreferencesForm: (props: WorkbenchPreferencesFormProps) => JSX.Element;
|
|
2346
|
-
|
|
2347
|
-
export declare interface WorkbenchPreferencesFormProps {
|
|
2348
|
-
preferences: PreferenceRegistry;
|
|
2349
|
-
/** Preference names to edit; an object form overrides the displayed label. */
|
|
2350
|
-
names: (string | {
|
|
2351
|
-
name: string;
|
|
2352
|
-
label?: string;
|
|
2353
|
-
})[];
|
|
2354
|
-
/** Resolves the scopeId for a preference's scope (e.g. "project" -> active project id). */
|
|
2355
|
-
resolveScopeId?: (scope: PreferenceScope) => string | undefined;
|
|
2356
|
-
/** "live" persists on change (default); "apply" stages edits behind Save/Discard. */
|
|
2357
|
-
mode?: "live" | "apply";
|
|
2358
|
-
}
|
|
2359
|
-
|
|
2360
|
-
declare interface WorkbenchProps {
|
|
2361
|
-
workbench: WorkbenchCore;
|
|
2362
|
-
/** Host chrome above all workbench regions, inside the current theme. */
|
|
2363
|
-
titleBar?: ReactNode;
|
|
2364
|
-
renderParamField?: CommandParamFieldRenderer;
|
|
2365
|
-
/** Icon shown in the closed Side Panel's bubble launcher. */
|
|
2366
|
-
sidePanelBubbleIcon?: ReactNode;
|
|
2367
|
-
/** Host action for opening the closed Side Panel from its bubble launcher. */
|
|
2368
|
-
onOpenSidePanel?: () => void;
|
|
2369
|
-
}
|
|
2370
|
-
|
|
2371
|
-
declare interface WorkbenchReactViewBody {
|
|
2372
|
-
kind: "react";
|
|
2373
|
-
render: WorkbenchRendererRegistration["render"];
|
|
2374
|
-
}
|
|
2375
|
-
|
|
2376
|
-
export declare const WorkbenchRegion: (props: WorkbenchRegionProps) => JSX.Element;
|
|
2377
|
-
|
|
2378
|
-
declare type WorkbenchRegion_2 = (typeof workbenchRegions)[number];
|
|
2379
|
-
|
|
2380
|
-
declare interface WorkbenchRegionProps {
|
|
2381
|
-
workbench: WorkbenchCore;
|
|
2382
|
-
region: WorkbenchRegion_2;
|
|
2383
|
-
title?: string;
|
|
2384
|
-
pointerEvents?: "auto" | "none";
|
|
2385
|
-
transparent?: boolean;
|
|
2386
|
-
}
|
|
2387
|
-
|
|
2388
|
-
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"];
|
|
2389
|
-
|
|
2390
|
-
/** Region-level layout policy owned by the active mode or the host, never by a placement. */
|
|
2391
|
-
declare type WorkbenchRegionSettings = ModeRegionSettings;
|
|
2392
|
-
|
|
2393
|
-
declare interface WorkbenchRegionSize {
|
|
2394
|
-
defaultPx?: number;
|
|
2395
|
-
minPx?: number;
|
|
2396
|
-
maxPx?: number;
|
|
2397
|
-
}
|
|
2398
|
-
|
|
2399
|
-
declare interface WorkbenchRegionState {
|
|
2400
|
-
id: WorkbenchRegion_2;
|
|
2401
|
-
visible: boolean;
|
|
2402
|
-
size?: number;
|
|
2403
|
-
widgets: WorkbenchWidgetPlacement[];
|
|
2404
|
-
activeWidgetId?: string;
|
|
2405
|
-
}
|
|
2406
|
-
|
|
2407
|
-
export declare const WorkbenchRegionTabs: (props: WorkbenchRegionTabsProps) => JSX.Element | null;
|
|
2408
|
-
|
|
2409
|
-
declare interface WorkbenchRegionTabsProps {
|
|
2410
|
-
workbench: WorkbenchCore;
|
|
2411
|
-
region: WorkbenchRegion_2;
|
|
2412
|
-
visibilityStorageKey?: string;
|
|
2413
|
-
}
|
|
2414
|
-
|
|
2415
|
-
declare interface WorkbenchRendererRegistration {
|
|
2416
|
-
id: string;
|
|
2417
|
-
render: (input: WorkbenchPanelRenderInput) => unknown;
|
|
2418
|
-
}
|
|
2419
|
-
|
|
2420
|
-
export declare interface WorkbenchSettingsModuleOptions {
|
|
2421
|
-
/** Maps a preference scope (e.g. "project") to its scope id; project entries hide until this resolves. */
|
|
2422
|
-
resolveScopeId?: (scope: PreferenceScope) => string | undefined;
|
|
2423
|
-
/** Heading shown at the top of the settings overlay. */
|
|
2424
|
-
title?: string;
|
|
2425
|
-
}
|
|
2426
|
-
|
|
2427
|
-
declare interface WorkbenchShellController {
|
|
2428
|
-
getRegionState(region: WorkbenchRegion_2): WorkbenchShellRegionState;
|
|
2429
|
-
setRegionOpen(region: WorkbenchShellOpenRegion, open: boolean): void;
|
|
2430
|
-
setRegionSize(region: WorkbenchRegion_2, size: number): void;
|
|
2431
|
-
getSidePanelPresentation(): WorkbenchSidePanelPresentation;
|
|
2432
|
-
setSidePanelPresentation(presentation: WorkbenchSidePanelPresentation): void;
|
|
2433
|
-
onDidChange(listener: () => void): Disposable_2;
|
|
2434
|
-
}
|
|
2435
|
-
|
|
2436
|
-
declare type WorkbenchShellOpenRegion = "sidenav" | "secondary" | "side";
|
|
2437
|
-
|
|
2438
|
-
declare interface WorkbenchShellPlacementContribution extends WorkbenchPlacementPresentation {
|
|
2439
|
-
readonly id: string;
|
|
2440
|
-
readonly item: WorkbenchOwnedPlacementItem;
|
|
2441
|
-
readonly region: WorkbenchRegion_2;
|
|
2442
|
-
readonly order?: number;
|
|
2443
|
-
}
|
|
2444
|
-
|
|
2445
|
-
declare interface WorkbenchShellPlacementRegistry {
|
|
2446
|
-
registerPlacement(placement: WorkbenchShellPlacementContribution): Disposable_2;
|
|
2447
|
-
getPlacement(placementId: string): WorkbenchShellPlacementContribution | undefined;
|
|
2448
|
-
listPlacements(): WorkbenchShellPlacementContribution[];
|
|
2449
|
-
openPlacement(input: OpenWorkbenchShellPlacementInput): PlacementIdentity;
|
|
2450
|
-
updatePlacement(identity: PlacementIdentity, input: {
|
|
2451
|
-
resource?: ResourceRef;
|
|
2452
|
-
title?: string;
|
|
2453
|
-
open?: PageOpenIntent;
|
|
2454
|
-
}): void;
|
|
2455
|
-
closePlacement(identity: PlacementIdentity): void;
|
|
2456
|
-
resolvePlacements(context?: OwnedPlacementLocationContext): readonly ResolvedOwnedPlacement<WorkbenchWidgetPlacement>[];
|
|
2457
|
-
onDidChange(listener: () => void): Disposable_2;
|
|
2458
|
-
}
|
|
2459
|
-
|
|
2460
|
-
declare interface WorkbenchShellRegionState {
|
|
2461
|
-
open: boolean;
|
|
2462
|
-
size?: number;
|
|
2463
|
-
}
|
|
2464
|
-
|
|
2465
|
-
declare type WorkbenchSidePanelChangeListener = (mode: WorkbenchSidePanelMode) => void;
|
|
2466
|
-
|
|
2467
|
-
declare interface WorkbenchSidePanelController {
|
|
2468
|
-
canFloat(): boolean;
|
|
2469
|
-
store: WorkbenchStore<WorkbenchSidePanelState>;
|
|
2470
|
-
getMode(): WorkbenchSidePanelMode;
|
|
2471
|
-
setMode(mode: WorkbenchSidePanelMode): void;
|
|
2472
|
-
onDidChange(listener: WorkbenchSidePanelChangeListener): Disposable_2;
|
|
2473
|
-
}
|
|
2474
|
-
|
|
2475
|
-
declare type WorkbenchSidePanelMode = "floating" | "closed" | "attached";
|
|
2476
|
-
|
|
2477
|
-
declare type WorkbenchSidePanelPresentation = WorkbenchSidePanelMode;
|
|
2478
|
-
|
|
2479
|
-
declare interface WorkbenchSidePanelProps {
|
|
2480
|
-
workbench: WorkbenchCore;
|
|
2481
|
-
contentSlotRef: (node: HTMLDivElement | null) => void;
|
|
2482
|
-
bottomOffset?: string;
|
|
2483
|
-
header?: ReactNode;
|
|
2484
|
-
bubbleIcon?: ReactNode;
|
|
2485
|
-
onOpen?: () => void;
|
|
2486
|
-
}
|
|
2487
|
-
|
|
2488
|
-
declare interface WorkbenchSidePanelState {
|
|
2489
|
-
mode: WorkbenchSidePanelMode;
|
|
2490
|
-
}
|
|
2491
|
-
|
|
2492
|
-
declare interface WorkbenchSnapshot {
|
|
2493
|
-
layout: WorkbenchLayout;
|
|
2494
|
-
}
|
|
2495
|
-
|
|
2496
|
-
declare interface WorkbenchStatusBarItem {
|
|
2497
|
-
id: string;
|
|
2498
|
-
viewId: string;
|
|
2499
|
-
slot: WorkbenchStatusBarSlot;
|
|
2500
|
-
order?: number;
|
|
2501
|
-
isVisible?(): boolean;
|
|
2502
|
-
}
|
|
2503
|
-
|
|
2504
|
-
declare interface WorkbenchStatusBarRegistry {
|
|
2505
|
-
store: WorkbenchStore<WorkbenchStatusBarRegistryState>;
|
|
2506
|
-
registerItem(item: WorkbenchStatusBarItem): Disposable_2;
|
|
2507
|
-
getItem(id: string): WorkbenchStatusBarItem | undefined;
|
|
2508
|
-
listItems(): WorkbenchStatusBarItem[];
|
|
2509
|
-
listVisibleItems(slot?: WorkbenchStatusBarSlot): WorkbenchStatusBarItem[];
|
|
2510
|
-
}
|
|
2511
|
-
|
|
2512
|
-
declare interface WorkbenchStatusBarRegistryState {
|
|
2513
|
-
items: Record<string, WorkbenchStatusBarItem>;
|
|
2514
|
-
}
|
|
2515
|
-
|
|
2516
|
-
declare type WorkbenchStatusBarSlot = "leading" | "trailing";
|
|
2517
|
-
|
|
2518
|
-
declare interface WorkbenchStatusRegistry {
|
|
2519
|
-
store: WorkbenchStore<WorkbenchStatusRegistryState>;
|
|
2520
|
-
registerStatusSet(contribution: WorkbenchStatusSetContribution, metadata?: ContributionMetadata): Disposable_2;
|
|
2521
|
-
getStatusSet(id: string): RegisteredWorkbenchStatusSet | undefined;
|
|
2522
|
-
listStatusSets(): RegisteredWorkbenchStatusSet[];
|
|
2523
|
-
getStatuses(id: string): readonly WorkflowStatus[] | undefined;
|
|
2524
|
-
load(id: string): Promise<readonly WorkflowStatus[]>;
|
|
2525
|
-
query(id: string): Promise<readonly WorkflowStatus[]>;
|
|
2526
|
-
save(id: string, statuses: readonly WorkflowStatus[]): Promise<readonly WorkflowStatus[]>;
|
|
2527
|
-
}
|
|
2528
|
-
|
|
2529
|
-
declare interface WorkbenchStatusRegistryState {
|
|
2530
|
-
statusSets: Record<string, RegisteredWorkbenchStatusSet>;
|
|
2531
|
-
values: Record<string, readonly WorkflowStatus[]>;
|
|
2532
|
-
}
|
|
2533
|
-
|
|
2534
|
-
declare interface WorkbenchStatusSetContribution {
|
|
2535
|
-
id: string;
|
|
2536
|
-
title: string;
|
|
2537
|
-
actions?: readonly WorkflowStatusAction[];
|
|
2538
|
-
query(): Promise<readonly WorkflowStatus[]> | readonly WorkflowStatus[];
|
|
2539
|
-
save?(statuses: readonly WorkflowStatus[]): Promise<readonly WorkflowStatus[]> | readonly WorkflowStatus[];
|
|
2540
|
-
}
|
|
2541
|
-
|
|
2542
|
-
declare interface WorkbenchStore<TState> {
|
|
2543
|
-
getState(): TState;
|
|
2544
|
-
getInitialState(): TState;
|
|
2545
|
-
subscribe(listener: WorkbenchStoreListener<TState>): () => void;
|
|
2546
|
-
subscribeSelector<TValue>(selector: WorkbenchStoreSelector<TState, TValue>, listener: WorkbenchStoreSelectorListener<TValue>, options?: {
|
|
2547
|
-
equalityFn?: (left: TValue, right: TValue) => boolean;
|
|
2548
|
-
fireImmediately?: boolean;
|
|
2549
|
-
}): () => void;
|
|
2550
|
-
}
|
|
2551
|
-
|
|
2552
|
-
declare type WorkbenchStoreListener<TState> = (state: TState, previousState: TState) => void;
|
|
2553
|
-
|
|
2554
|
-
declare type WorkbenchStoreSelector<TState, TValue> = (state: TState) => TValue;
|
|
2555
|
-
|
|
2556
|
-
declare type WorkbenchStoreSelectorListener<TValue> = (value: TValue, previousValue: TValue) => void;
|
|
2557
|
-
|
|
2558
|
-
declare type WorkbenchTabAction = ({
|
|
2559
|
-
kind: "command";
|
|
2560
|
-
} & WorkbenchCommandTarget) | {
|
|
2561
|
-
kind: "navigation";
|
|
2562
|
-
target: NavigationTarget;
|
|
2563
|
-
};
|
|
2564
|
-
|
|
2565
|
-
declare interface WorkbenchTabMenuGroup {
|
|
2566
|
-
id: string;
|
|
2567
|
-
rows: readonly WorkbenchTabMenuRow[];
|
|
2568
|
-
}
|
|
2569
|
-
|
|
2570
|
-
declare interface WorkbenchTabMenuRow {
|
|
2571
|
-
id: string;
|
|
2572
|
-
label: string;
|
|
2573
|
-
icon?: string;
|
|
2574
|
-
iconColor?: string;
|
|
2575
|
-
selected?: boolean;
|
|
2576
|
-
disabled?: boolean;
|
|
2577
|
-
action?: WorkbenchTabAction;
|
|
2578
|
-
}
|
|
2579
|
-
|
|
2580
|
-
declare type WorkbenchTabPosition = "start" | "end" | {
|
|
2581
|
-
beforeWidgetId: string;
|
|
2582
|
-
} | {
|
|
2583
|
-
afterWidgetId: string;
|
|
2584
|
-
};
|
|
2585
|
-
|
|
2586
|
-
declare type WorkbenchTabRetention = "preview" | "persistent";
|
|
2587
|
-
|
|
2588
|
-
declare interface WorkbenchTabSnapshot {
|
|
2589
|
-
label?: string;
|
|
2590
|
-
icon?: string;
|
|
2591
|
-
indicator?: {
|
|
2592
|
-
icon: string;
|
|
2593
|
-
color?: string;
|
|
2594
|
-
label?: string;
|
|
2595
|
-
};
|
|
2596
|
-
menu?: readonly WorkbenchTabMenuGroup[];
|
|
2597
|
-
}
|
|
2598
|
-
|
|
2599
|
-
declare interface WorkbenchTerminalController {
|
|
2600
|
-
store: WorkbenchStore<WorkbenchTerminalState>;
|
|
2601
|
-
/** True once the host injected a session opener. */
|
|
2602
|
-
isAvailable(): boolean;
|
|
2603
|
-
setSessionOpener(opener: WorkbenchTerminalSessionOpener | null): void;
|
|
2604
|
-
/** Opens a session; the live adapter stays host-side and only the id is returned. */
|
|
2605
|
-
open(input: {
|
|
2606
|
-
bindingId?: string;
|
|
2607
|
-
request: WorkbenchTerminalSessionRequest;
|
|
2608
|
-
title?: string;
|
|
2609
|
-
}): Promise<{
|
|
2610
|
-
sessionId: string;
|
|
2611
|
-
}>;
|
|
2612
|
-
write(input: {
|
|
2613
|
-
sessionId: string;
|
|
2614
|
-
data: string | Uint8Array;
|
|
2615
|
-
}): void;
|
|
2616
|
-
resize(input: {
|
|
2617
|
-
sessionId: string;
|
|
2618
|
-
cols: number;
|
|
2619
|
-
rows: number;
|
|
2620
|
-
}): void;
|
|
2621
|
-
kill(input: {
|
|
2622
|
-
sessionId: string;
|
|
2623
|
-
signal?: string;
|
|
2624
|
-
}): Promise<void>;
|
|
2625
|
-
killBinding(bindingId: string): Promise<void>;
|
|
2626
|
-
subscribe(sessionId: string, sink: WorkbenchTerminalSessionSink): () => void;
|
|
2627
|
-
getSession(sessionId: string): WorkbenchTerminalSessionModel | undefined;
|
|
2628
|
-
listSessions(): WorkbenchTerminalSessionModel[];
|
|
2629
|
-
/** Kills every live session. Called when the owning workbench is torn down. */
|
|
2630
|
-
dispose(): Promise<void>;
|
|
2631
|
-
}
|
|
2632
|
-
|
|
2633
|
-
/**
|
|
2634
|
-
* Body of the host-owned terminal panel. Chrome (tab, title, close action,
|
|
2635
|
-
* resize) comes from the workbench `secondary` region; this component only mounts
|
|
2636
|
-
* the terminal bound to the workbench terminal controller. Collapsing the panel
|
|
2637
|
-
* keeps the terminal mounted. Scope changes keep the session alive; the terminal
|
|
2638
|
-
* module ends it when its tab is explicitly closed.
|
|
2639
|
-
*/
|
|
2640
|
-
export declare const WorkbenchTerminalPanel: (props: WorkbenchTerminalPanelProps) => JSX.Element;
|
|
2641
|
-
|
|
2642
|
-
declare interface WorkbenchTerminalPanelProps {
|
|
2643
|
-
placement: WorkbenchPanelInstance;
|
|
2644
|
-
workbench: WorkbenchCore;
|
|
2645
|
-
}
|
|
2646
|
-
|
|
2647
|
-
declare interface WorkbenchTerminalSessionAdapter {
|
|
2648
|
-
readonly id: string;
|
|
2649
|
-
write(data: string | Uint8Array): void;
|
|
2650
|
-
resize(cols: number, rows: number): void;
|
|
2651
|
-
kill(signal?: string): Promise<void> | void;
|
|
2652
|
-
onData(handler: (chunk: Uint8Array) => void): () => void;
|
|
2653
|
-
/** Foreground process name updates, when the opener can report them (real PTYs). */
|
|
2654
|
-
onTitle?(handler: (title: string) => void): () => void;
|
|
2655
|
-
onExit(handler: (exit: WorkbenchTerminalSessionExit) => void): () => void;
|
|
2656
|
-
onError(handler: (error: WorkbenchTerminalSessionError) => void): () => void;
|
|
2657
|
-
}
|
|
2658
|
-
|
|
2659
|
-
declare interface WorkbenchTerminalSessionError {
|
|
2660
|
-
message: string;
|
|
2661
|
-
}
|
|
2662
|
-
|
|
2663
|
-
declare interface WorkbenchTerminalSessionExit {
|
|
2664
|
-
code: number | null;
|
|
2665
|
-
signal: string | null;
|
|
2666
|
-
}
|
|
2667
|
-
|
|
2668
|
-
declare interface WorkbenchTerminalSessionModel {
|
|
2669
|
-
id: string;
|
|
2670
|
-
title: string;
|
|
2671
|
-
status: WorkbenchTerminalSessionStatus;
|
|
2672
|
-
exit?: WorkbenchTerminalSessionExit;
|
|
2673
|
-
}
|
|
2674
|
-
|
|
2675
|
-
declare type WorkbenchTerminalSessionOpener = (request: WorkbenchTerminalSessionRequest) => Promise<WorkbenchTerminalSessionAdapter>;
|
|
2676
|
-
|
|
2677
|
-
declare interface WorkbenchTerminalSessionRequest {
|
|
2678
|
-
command?: string[];
|
|
2679
|
-
cwd?: string;
|
|
2680
|
-
env?: Record<string, string>;
|
|
2681
|
-
cols: number;
|
|
2682
|
-
rows: number;
|
|
2683
|
-
}
|
|
2684
|
-
|
|
2685
|
-
declare interface WorkbenchTerminalSessionSink {
|
|
2686
|
-
onData?(chunk: Uint8Array): void;
|
|
2687
|
-
onExit?(exit: WorkbenchTerminalSessionExit): void;
|
|
2688
|
-
onError?(error: WorkbenchTerminalSessionError): void;
|
|
2689
|
-
}
|
|
2690
|
-
|
|
2691
|
-
declare type WorkbenchTerminalSessionStatus = "running" | "exited" | "killed";
|
|
2692
|
-
|
|
2693
|
-
declare interface WorkbenchTerminalState {
|
|
2694
|
-
sessionsById: Record<string, WorkbenchTerminalSessionModel>;
|
|
2695
|
-
}
|
|
2696
|
-
|
|
2697
|
-
export declare const WorkbenchThemeProvider: (props: WorkbenchThemeProviderProps) => string | number | bigint | boolean | JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
2698
|
-
|
|
2699
|
-
declare interface WorkbenchThemeProviderProps {
|
|
2700
|
-
children: ReactNode;
|
|
2701
|
-
initialThemePreference?: ThemePreference_2;
|
|
2702
|
-
defaultThemePreference?: ThemePreference_2;
|
|
2703
|
-
preferenceScope?: string;
|
|
2704
|
-
themePreferences?: readonly ThemePreferenceOption_2[];
|
|
2705
|
-
fileIconThemePreferences?: readonly FileIconThemePreferenceOption_2[];
|
|
2706
|
-
}
|
|
2707
|
-
|
|
2708
|
-
export declare const WorkbenchThemeScope: (props: WorkbenchThemeScopeProps) => JSX.Element;
|
|
2709
|
-
|
|
2710
|
-
declare interface WorkbenchThemeScopeProps extends Omit<BoxProps, "children"> {
|
|
2711
|
-
children: ReactNode;
|
|
2712
|
-
}
|
|
2713
|
-
|
|
2714
|
-
declare interface WorkbenchThemeStoreState {
|
|
2715
|
-
themes: readonly ThemePreferenceOption[];
|
|
2716
|
-
}
|
|
2717
|
-
|
|
2718
|
-
export declare const WorkbenchTreeView: (props: WorkbenchTreeViewProps) => JSX.Element;
|
|
2719
|
-
|
|
2720
|
-
declare interface WorkbenchTreeViewProps {
|
|
2721
|
-
workbench: WorkbenchCore;
|
|
2722
|
-
treeViewId: string;
|
|
2723
|
-
activeNodeId?: string | null;
|
|
2724
|
-
resource?: ResourceRef;
|
|
2725
|
-
viewId?: string;
|
|
2726
|
-
renderParamField?: CommandParamFieldRenderer;
|
|
2727
|
-
onOpenResourceError?: (error: unknown) => void;
|
|
2728
|
-
onSidenavContextActionsChange?: (actions: ResourceContextAction_2[]) => void;
|
|
2729
|
-
}
|
|
2730
|
-
|
|
2731
|
-
declare type WorkbenchTreeViews = Pick<TreeRendererRegistry, "getTreeState" | "setNodeExpanded" | "setSectionExpanded" | "setSelectedNode">;
|
|
2732
|
-
|
|
2733
|
-
declare type WorkbenchViewBody = WorkbenchReactViewBody | NativeViewBody<"tree", TreeRendererContribution> | NativeViewBody<"file", FileRendererContribution> | NativeViewBody<"controls", ControlsRendererContribution> | NativeViewBody<"kanban", KanbanRendererContribution> | NativeViewBody<"dataTable", DataTableRendererContribution>;
|
|
2734
|
-
|
|
2735
|
-
declare interface WorkbenchViewContribution {
|
|
2736
|
-
id: string;
|
|
2737
|
-
title: string;
|
|
2738
|
-
icon?: string;
|
|
2739
|
-
body: WorkbenchViewBody;
|
|
2740
|
-
}
|
|
2741
|
-
|
|
2742
|
-
declare interface WorkbenchViewHierarchyNode {
|
|
2743
|
-
type: "view";
|
|
2744
|
-
viewId: string;
|
|
2745
|
-
label?: string;
|
|
2746
|
-
icon?: string;
|
|
2747
|
-
}
|
|
2748
|
-
|
|
2749
|
-
declare interface WorkbenchViewMenuContribution {
|
|
2750
|
-
id: string;
|
|
2751
|
-
ownerViewId: string;
|
|
2752
|
-
viewId: string;
|
|
2753
|
-
side: "left" | "right";
|
|
2754
|
-
priority?: number;
|
|
2755
|
-
mountStrategy?: "active" | "keep-mounted";
|
|
2756
|
-
hiddenByDefault?: boolean;
|
|
2757
|
-
regionSize?: WorkbenchRegionSize;
|
|
2758
|
-
regionCollapsible?: boolean;
|
|
2759
|
-
headerBorderBottom?: boolean;
|
|
2760
|
-
config?: unknown;
|
|
2761
|
-
}
|
|
2762
|
-
|
|
2763
|
-
declare interface WorkbenchViewMenuRegistry {
|
|
2764
|
-
registerViewMenu(menu: WorkbenchViewMenuContribution): Disposable_2;
|
|
2765
|
-
getViewMenu(id: string): WorkbenchViewMenuContribution | undefined;
|
|
2766
|
-
listViewMenus(ownerViewId?: string): WorkbenchViewMenuContribution[];
|
|
2767
|
-
definitionsFor(ownerViewId: string, placementId: string): readonly WorkbenchPanelMenuDefinition[];
|
|
2768
|
-
}
|
|
2769
|
-
|
|
2770
|
-
declare interface WorkbenchViewRegistry {
|
|
2771
|
-
store: WorkbenchStore<WorkbenchViewRegistryStoreState>;
|
|
2772
|
-
registerView(view: WorkbenchViewContribution, metadata?: ContributionMetadata): Disposable_2;
|
|
2773
|
-
getView(viewId: string): RegisteredWorkbenchView | undefined;
|
|
2774
|
-
listViews(): RegisteredWorkbenchView[];
|
|
2775
|
-
refreshView(viewId: string, input?: unknown): void;
|
|
2776
|
-
}
|
|
2777
|
-
|
|
2778
|
-
declare interface WorkbenchViewRegistryStoreState {
|
|
2779
|
-
views: Record<string, RegisteredWorkbenchView>;
|
|
2780
|
-
}
|
|
2781
|
-
|
|
2782
|
-
export declare const WorkbenchWidgetHost: (props: WorkbenchWidgetHostProps) => JSX.Element;
|
|
2783
|
-
|
|
2784
|
-
declare interface WorkbenchWidgetHostProps {
|
|
2785
|
-
workbench: WorkbenchCore;
|
|
2786
|
-
placement: WorkbenchWidgetPlacement;
|
|
2787
|
-
widget?: RegisteredWidgetContribution | RegisteredPlaceholderContribution;
|
|
2788
|
-
region?: WorkbenchRegion_2;
|
|
2789
|
-
}
|
|
2790
|
-
|
|
2791
|
-
declare interface WorkbenchWidgetPlacement {
|
|
2792
|
-
widgetId: string;
|
|
2793
|
-
contributionId: string;
|
|
2794
|
-
placementIdentity?: PlacementIdentity;
|
|
2795
|
-
viewId?: string;
|
|
2796
|
-
ownerId?: string;
|
|
2797
|
-
source?: ContributionSource;
|
|
2798
|
-
resource?: ResourceRef;
|
|
2799
|
-
section?: FileRendererSectionTarget;
|
|
2800
|
-
resourceKey?: string;
|
|
2801
|
-
ownerResourceKey?: string;
|
|
2802
|
-
title?: string;
|
|
2803
|
-
pinned?: boolean;
|
|
2804
|
-
closable?: boolean;
|
|
2805
|
-
mountStrategy?: WidgetMountStrategy;
|
|
2806
|
-
hiddenByDefault?: boolean;
|
|
2807
|
-
tabRetention?: WorkbenchTabRetention;
|
|
2808
|
-
tab?: WorkbenchWidgetTab;
|
|
2809
|
-
role?: WorkbenchWidgetRole;
|
|
2810
|
-
}
|
|
2811
|
-
|
|
2812
|
-
declare type WorkbenchWidgetRole = "content" | "location" | "sub-panel" | "panel-menu";
|
|
2813
|
-
|
|
2814
|
-
declare interface WorkbenchWidgetTab {
|
|
2815
|
-
getSnapshot(instance: WorkbenchPanelInstance): WorkbenchTabSnapshot;
|
|
2816
|
-
subscribe?(listener: () => void): {
|
|
2817
|
-
dispose(): void;
|
|
2818
|
-
} | (() => void);
|
|
2819
|
-
refreshEvents?: readonly string[];
|
|
2820
|
-
}
|
|
2821
|
-
|
|
2822
|
-
declare interface WorkflowStatus {
|
|
2823
|
-
id: string;
|
|
2824
|
-
label: string;
|
|
2825
|
-
color: string;
|
|
2826
|
-
icon?: string | null;
|
|
2827
|
-
sortOrder: number;
|
|
2828
|
-
isDefault?: boolean;
|
|
2829
|
-
actions?: readonly string[];
|
|
2830
|
-
}
|
|
2831
|
-
|
|
2832
|
-
declare interface WorkflowStatusAction {
|
|
2833
|
-
id: string;
|
|
2834
|
-
label: string;
|
|
2835
|
-
icon?: string;
|
|
2836
|
-
}
|
|
2837
|
-
|
|
2838
|
-
export declare const WorkflowStatusSettings: (props: WorkflowStatusSettingsProps) => JSX.Element;
|
|
2839
|
-
|
|
2840
|
-
declare interface WorkflowStatusSettingsProps {
|
|
2841
|
-
workbench: {
|
|
2842
|
-
statuses: WorkbenchStatusRegistry;
|
|
2843
|
-
};
|
|
2844
|
-
}
|
|
2845
|
-
|
|
2846
|
-
export { }
|
|
1
|
+
import { $i as Disposable, $r as WorkbenchWidgetPlacement, A as WorkbenchModuleContribution, An as TreeAction, B as ThemePreferenceOption$1, Br as RegisteredWidgetContribution, Ci as WorkbenchCommandExecutionContext, D as WorkbenchCoreContributionContext, E as WorkbenchCore, Fr as WorkbenchPanelRenderInput, G as WorkbenchStatusRegistry, Ht as KeybindingSequence, Lr as WorkbenchFocusRegionId, Or as RegisteredDataTableRendererContribution, Qi as WorkbenchStore, Un as RegisteredMenuItem, Ur as WorkbenchPanelInstance, Vn as MenuPath, Yt as WorkbenchTerminalController, _i as Command, _t as PreferenceScope, ht as PreferenceRegistry, ii as WorkbenchRegion$1, ji as ResourceRef, mt as PreferencePropertySchema, xi as CommandParamSchema, yi as CommandParamDescriptor, yt as PreferenceValue, zr as RegisteredPlaceholderContribution } from "./index-DDmpcM-n.js";
|
|
2
|
+
import { a as ReactResourceContextAction, i as ReactKanbanRendererContribution, n as ReactAttributesSource, r as ReactBoardColumnConfig, t as ReactAttributeDescriptor } from "./kanban-presentation-CX6Smht6.js";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { FileIconThemePreferenceOption, ResourceContextAction, ThemePreference, ThemePreferenceOption } from "@pstdio/ui";
|
|
5
|
+
import { FileUploadValue, ParamEditorProps, ParamValue } from "@pstdio/ui/param-editor";
|
|
6
|
+
import { BoxProps, IconProps } from "@chakra-ui/react";
|
|
7
|
+
import { TerminalBridge } from "@pstdio/ui/terminal";
|
|
8
|
+
//#region src/react/breadcrumb/breadcrumb-view.d.ts
|
|
9
|
+
interface WorkbenchBreadcrumbViewProps {
|
|
10
|
+
workbench: WorkbenchCore;
|
|
11
|
+
}
|
|
12
|
+
export declare const WorkbenchBreadcrumbView: (props: WorkbenchBreadcrumbViewProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/react/command-palette/command-palette-params.d.ts
|
|
15
|
+
interface CommandFilesParamValue {
|
|
16
|
+
refs: string[];
|
|
17
|
+
uploads: FileUploadValue[];
|
|
18
|
+
}
|
|
19
|
+
type CommandParamValue = string | boolean | string[] | CommandFilesParamValue | undefined;
|
|
20
|
+
interface CommandParamEntry extends CommandParamDescriptor {
|
|
21
|
+
key: string;
|
|
22
|
+
label: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const isCommandFilesParamValue: (value: unknown) => value is CommandFilesParamValue;
|
|
25
|
+
export declare const createCommandFilesParamValue: (input?: Partial<CommandFilesParamValue>) => CommandFilesParamValue;
|
|
26
|
+
export declare const listCommandParamEntries: (params: CommandParamSchema | undefined) => CommandParamEntry[];
|
|
27
|
+
export declare const buildCommandParamInitialValues: (params: CommandParamSchema | undefined, baseArgs?: unknown, context?: WorkbenchCommandExecutionContext) => Record<string, CommandParamValue>;
|
|
28
|
+
export declare const normalizeCommandParamValues: (params: CommandParamSchema | undefined, values: Record<string, CommandParamValue>) => Record<string, unknown>;
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/react/command-palette/command-param-field.d.ts
|
|
31
|
+
interface CommandParamFieldProps {
|
|
32
|
+
entry: CommandParamEntry;
|
|
33
|
+
value: CommandParamValue;
|
|
34
|
+
context?: WorkbenchCommandExecutionContext;
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
onChange: (value: CommandParamValue) => void;
|
|
37
|
+
}
|
|
38
|
+
type CommandParamFieldRenderer = (props: CommandParamFieldProps) => ReactNode;
|
|
39
|
+
export declare const CommandParamField: (props: Omit<CommandParamFieldProps, "context">) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/react/command-palette/command-params-dialog.d.ts
|
|
42
|
+
interface CommandParamsRequest {
|
|
43
|
+
record: {
|
|
44
|
+
command: Pick<Command, "id" | "label" | "description" | "params">;
|
|
45
|
+
};
|
|
46
|
+
action?: RegisteredMenuItem;
|
|
47
|
+
label: string;
|
|
48
|
+
submitLabel?: string;
|
|
49
|
+
args?: unknown;
|
|
50
|
+
context?: WorkbenchCommandExecutionContext;
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/react/command-palette/command-palette.d.ts
|
|
54
|
+
interface WorkbenchCommandPaletteProps {
|
|
55
|
+
workbench: WorkbenchCore;
|
|
56
|
+
open: boolean;
|
|
57
|
+
menuPath?: MenuPath;
|
|
58
|
+
initialQuery?: string;
|
|
59
|
+
renderParamField?: CommandParamFieldRenderer;
|
|
60
|
+
onClose: () => void;
|
|
61
|
+
}
|
|
62
|
+
export declare const WorkbenchCommandPalette: (props: WorkbenchCommandPaletteProps) => import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/react/command-palette/command-param-descriptors.d.ts
|
|
65
|
+
export declare const commandParamName: (entry: CommandParamEntry) => string;
|
|
66
|
+
/** Narrows an editor value back to what a command param can carry. */
|
|
67
|
+
export declare const readCommandParamValue: (value: ParamValue, entry?: CommandParamEntry) => CommandParamValue;
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/react/focus/focus-region.d.ts
|
|
70
|
+
interface WorkbenchFocusRegionProps extends BoxProps {
|
|
71
|
+
workbench: WorkbenchCore;
|
|
72
|
+
region: WorkbenchFocusRegionId;
|
|
73
|
+
children: ReactNode;
|
|
74
|
+
}
|
|
75
|
+
export declare const WorkbenchFocusRegion: (props: WorkbenchFocusRegionProps) => import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/react/header/header-actions.d.ts
|
|
78
|
+
interface WorkbenchHeaderActionsProps {
|
|
79
|
+
workbench: WorkbenchCore;
|
|
80
|
+
menuPath: MenuPath;
|
|
81
|
+
controlSize?: "2xs" | "xs";
|
|
82
|
+
}
|
|
83
|
+
export declare const WorkbenchHeaderActions: (props: WorkbenchHeaderActionsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/react/keybindings/workbench-keybinding-dispatcher.d.ts
|
|
86
|
+
interface WorkbenchHotkeyRegistration {
|
|
87
|
+
id: string;
|
|
88
|
+
hotkey: KeybindingSequence;
|
|
89
|
+
enabled: boolean;
|
|
90
|
+
ignoreInputs: boolean;
|
|
91
|
+
execute(): Promise<unknown>;
|
|
92
|
+
}
|
|
93
|
+
interface CreateWorkbenchHotkeyRegistrationsInput {
|
|
94
|
+
workbench: WorkbenchCore;
|
|
95
|
+
disabled?: boolean;
|
|
96
|
+
commandIds?: readonly string[];
|
|
97
|
+
}
|
|
98
|
+
interface WorkbenchKeybindingDispatcherProps {
|
|
99
|
+
workbench: WorkbenchCore;
|
|
100
|
+
disabled?: boolean;
|
|
101
|
+
commandIds?: readonly string[];
|
|
102
|
+
}
|
|
103
|
+
export declare const normalizeWorkbenchKeybinding: (keybinding: KeybindingSequence) => KeybindingSequence;
|
|
104
|
+
export declare const createWorkbenchHotkeyRegistrations: (input: CreateWorkbenchHotkeyRegistrationsInput) => {
|
|
105
|
+
id: string;
|
|
106
|
+
hotkey: KeybindingSequence;
|
|
107
|
+
enabled: boolean;
|
|
108
|
+
ignoreInputs: true;
|
|
109
|
+
execute: () => Promise<readonly unknown[]>;
|
|
110
|
+
}[];
|
|
111
|
+
export declare const WorkbenchKeybindingDispatcher: (props: WorkbenchKeybindingDispatcherProps) => null;
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/react/menus/menu-items.d.ts
|
|
114
|
+
interface WorkbenchMenuItem {
|
|
115
|
+
id: string;
|
|
116
|
+
commandId: string;
|
|
117
|
+
label: string;
|
|
118
|
+
description?: string;
|
|
119
|
+
icon: string | undefined;
|
|
120
|
+
iconSrc?: string;
|
|
121
|
+
overflowLabel?: string;
|
|
122
|
+
group: string | undefined;
|
|
123
|
+
args: unknown;
|
|
124
|
+
disabled: boolean;
|
|
125
|
+
separatorBefore?: boolean;
|
|
126
|
+
readOnly?: true;
|
|
127
|
+
}
|
|
128
|
+
interface WorkbenchMenuItemContext {
|
|
129
|
+
resource?: ResourceRef | undefined;
|
|
130
|
+
}
|
|
131
|
+
export declare const listWorkbenchMenuItems: (workbench: WorkbenchCore, menuPath: MenuPath, context?: WorkbenchMenuItemContext) => WorkbenchMenuItem[];
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/react/menus/resource-actions.d.ts
|
|
134
|
+
export declare const createWorkbenchResourceActions: (workbench: WorkbenchCoreContributionContext, resource: ResourceRef) => ResourceContextAction[];
|
|
135
|
+
export declare const useWorkbenchResourceActionResolver: (workbench: WorkbenchCoreContributionContext) => (resource: ResourceRef) => ResourceContextAction[];
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/react/notifications/notification-host.d.ts
|
|
138
|
+
interface WorkbenchNotificationHostProps {
|
|
139
|
+
workbench: WorkbenchCore;
|
|
140
|
+
}
|
|
141
|
+
export declare const WorkbenchNotificationHost: (props: WorkbenchNotificationHostProps) => null;
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region src/react/region/region.d.ts
|
|
144
|
+
interface WorkbenchRegionProps {
|
|
145
|
+
workbench: WorkbenchCore;
|
|
146
|
+
region: WorkbenchRegion$1;
|
|
147
|
+
title?: string;
|
|
148
|
+
pointerEvents?: "auto" | "none";
|
|
149
|
+
transparent?: boolean;
|
|
150
|
+
}
|
|
151
|
+
export declare const WorkbenchRegion: (props: WorkbenchRegionProps) => import("react/jsx-runtime").JSX.Element;
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/react/region/region-tabs.d.ts
|
|
154
|
+
interface WorkbenchRegionTabsProps {
|
|
155
|
+
workbench: WorkbenchCore;
|
|
156
|
+
region: WorkbenchRegion$1;
|
|
157
|
+
visibilityStorageKey?: string;
|
|
158
|
+
}
|
|
159
|
+
export declare const WorkbenchRegionTabs: (props: WorkbenchRegionTabsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region src/react/region/widget-host.d.ts
|
|
162
|
+
interface WorkbenchWidgetHostProps {
|
|
163
|
+
workbench: WorkbenchCore;
|
|
164
|
+
placement: WorkbenchWidgetPlacement;
|
|
165
|
+
widget?: RegisteredWidgetContribution | RegisteredPlaceholderContribution;
|
|
166
|
+
region?: WorkbenchRegion$1;
|
|
167
|
+
}
|
|
168
|
+
export declare const WorkbenchWidgetHost: (props: WorkbenchWidgetHostProps) => import("react/jsx-runtime").JSX.Element;
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region src/react/renderers/data-table/data-table-view.d.ts
|
|
171
|
+
interface WorkbenchDataTableViewProps {
|
|
172
|
+
workbench: WorkbenchCore;
|
|
173
|
+
contribution: RegisteredDataTableRendererContribution;
|
|
174
|
+
placement: WorkbenchPanelInstance;
|
|
175
|
+
}
|
|
176
|
+
export declare const WorkbenchDataTableView: (props: WorkbenchDataTableViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region src/react/renderers/settings/preference-schema-to-params.d.ts
|
|
179
|
+
type ParamValue$1 = Parameters<NonNullable<ParamEditorProps["onChange"]>>[1];
|
|
180
|
+
interface PreferenceParamEntry {
|
|
181
|
+
name: string;
|
|
182
|
+
schema: PreferencePropertySchema;
|
|
183
|
+
label?: string;
|
|
184
|
+
/** Current value; falls back to the schema default when omitted. */
|
|
185
|
+
value?: PreferenceValue;
|
|
186
|
+
}
|
|
187
|
+
export declare const preferenceSchemaToParams: (entries: PreferenceParamEntry[]) => import("@pstdio/ui/param-editor").Param[];
|
|
188
|
+
export declare const paramValueToPreference: (schema: PreferencePropertySchema, value: ParamValue$1) => PreferenceValue;
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region src/react/renderers/settings/preferences-form.d.ts
|
|
191
|
+
interface WorkbenchPreferencesFormProps {
|
|
192
|
+
preferences: PreferenceRegistry;
|
|
193
|
+
/** Preference names to edit; an object form overrides the displayed label. */
|
|
194
|
+
names: (string | {
|
|
195
|
+
name: string;
|
|
196
|
+
label?: string;
|
|
197
|
+
})[];
|
|
198
|
+
/** Resolves the scopeId for a preference's scope (e.g. "project" -> active project id). */
|
|
199
|
+
resolveScopeId?: (scope: PreferenceScope) => string | undefined;
|
|
200
|
+
/** "live" persists on change (default); "apply" stages edits behind Save/Discard. */
|
|
201
|
+
mode?: "live" | "apply";
|
|
202
|
+
}
|
|
203
|
+
export declare const WorkbenchPreferencesForm: (props: WorkbenchPreferencesFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
204
|
+
//#endregion
|
|
205
|
+
//#region src/react/renderers/tree/tree-actions.d.ts
|
|
206
|
+
interface TreeActionParamsRequest {
|
|
207
|
+
request: CommandParamsRequest;
|
|
208
|
+
run: (args: unknown) => Promise<void>;
|
|
209
|
+
}
|
|
210
|
+
interface CreateTreeContextMenuItemsInput {
|
|
211
|
+
actions?: TreeAction[];
|
|
212
|
+
menuPath?: MenuPath;
|
|
213
|
+
workbench: WorkbenchCoreContributionContext;
|
|
214
|
+
context?: WorkbenchCommandExecutionContext;
|
|
215
|
+
onCommandError?: (error: unknown) => void;
|
|
216
|
+
onRequestParams?: (request: TreeActionParamsRequest) => void;
|
|
217
|
+
}
|
|
218
|
+
export declare const createTreeContextMenuItems: (input: CreateTreeContextMenuItemsInput) => import("@pstdio/ui").ListRowActionMenuItem[];
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region src/react/renderers/tree/tree-view.d.ts
|
|
221
|
+
interface WorkbenchTreeViewProps {
|
|
222
|
+
workbench: WorkbenchCore;
|
|
223
|
+
treeViewId: string;
|
|
224
|
+
activeNodeId?: string | null;
|
|
225
|
+
resource?: ResourceRef;
|
|
226
|
+
viewId?: string;
|
|
227
|
+
renderParamField?: CommandParamFieldRenderer;
|
|
228
|
+
onOpenResourceError?: (error: unknown) => void;
|
|
229
|
+
onSidenavContextActionsChange?: (actions: ResourceContextAction[]) => void;
|
|
230
|
+
}
|
|
231
|
+
export declare const WorkbenchTreeView: (props: WorkbenchTreeViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region src/react/settings/settings-resources.d.ts
|
|
234
|
+
export declare const WORKBENCH_SETTINGS_OPEN_COMMAND_ID = "workbench.settings.open";
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region src/react/settings/settings-module.d.ts
|
|
237
|
+
interface WorkbenchSettingsModuleOptions {
|
|
238
|
+
/** Maps a preference scope (e.g. "project") to its scope id; project entries hide until this resolves. */
|
|
239
|
+
resolveScopeId?: (scope: PreferenceScope) => string | undefined;
|
|
240
|
+
/** Heading shown at the top of the settings overlay. */
|
|
241
|
+
title?: string;
|
|
242
|
+
}
|
|
243
|
+
export declare const WORKBENCH_SETTINGS_WIDGET_ID = "workbench.settings";
|
|
244
|
+
export declare const WORKBENCH_SETTINGS_NAV_WIDGET_ID = "workbench.settings.nav";
|
|
245
|
+
export declare const WORKBENCH_SETTINGS_PANEL_WIDGET_ID = "workbench.settings.panel";
|
|
246
|
+
export declare const createWorkbenchSettingsModule: (options?: WorkbenchSettingsModuleOptions) => WorkbenchModuleContribution;
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region src/react/shared/icon.d.ts
|
|
249
|
+
interface WorkbenchIconProps extends Omit<IconProps, "as" | "size"> {
|
|
250
|
+
name?: string;
|
|
251
|
+
size?: number | string;
|
|
252
|
+
}
|
|
253
|
+
export declare const WorkbenchIcon: (props: WorkbenchIconProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region src/react/shared/use-workbench-store.d.ts
|
|
256
|
+
export declare const useWorkbenchStore: <TState, TSlice>(store: WorkbenchStore<TState>, selector: (state: TState) => TSlice) => TSlice;
|
|
257
|
+
//#endregion
|
|
258
|
+
//#region src/react/side-panel/side-panel.d.ts
|
|
259
|
+
interface WorkbenchSidePanelProps {
|
|
260
|
+
workbench: WorkbenchCore;
|
|
261
|
+
contentSlotRef: (node: HTMLDivElement | null) => void;
|
|
262
|
+
bottomOffset?: string;
|
|
263
|
+
header?: ReactNode;
|
|
264
|
+
bubbleIcon?: ReactNode;
|
|
265
|
+
onOpen?: () => void;
|
|
266
|
+
}
|
|
267
|
+
export declare const WorkbenchAttachedSidePanel: (props: WorkbenchSidePanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
268
|
+
export declare const WorkbenchFloatingSidePanel: (props: WorkbenchSidePanelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
269
|
+
//#endregion
|
|
270
|
+
//#region src/react/statuses/workflow-status-settings.d.ts
|
|
271
|
+
interface WorkflowStatusSettingsProps {
|
|
272
|
+
workbench: {
|
|
273
|
+
statuses: WorkbenchStatusRegistry;
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
export declare const WorkflowStatusSettings: (props: WorkflowStatusSettingsProps) => import("react/jsx-runtime").JSX.Element;
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region src/react/terminal/terminal-module.d.ts
|
|
279
|
+
export declare const WORKBENCH_TERMINAL_WIDGET_ID = "workbench.terminal";
|
|
280
|
+
export declare const WORKBENCH_TERMINAL_OPEN_COMMAND_ID = "workbench.terminal.open";
|
|
281
|
+
/** Suggested secondary-region size for hosts that mount the terminal (createWorkbench regionSettings). */
|
|
282
|
+
export declare const WORKBENCH_TERMINAL_PANEL_SIZE: {
|
|
283
|
+
defaultPx: number;
|
|
284
|
+
minPx: number;
|
|
285
|
+
};
|
|
286
|
+
interface OpenWorkbenchTerminalOptions {
|
|
287
|
+
resource?: ResourceRef;
|
|
288
|
+
reveal?: boolean;
|
|
289
|
+
}
|
|
290
|
+
export declare const openWorkbenchTerminal: (ctx: WorkbenchCoreContributionContext, input?: OpenWorkbenchTerminalOptions) => WorkbenchPanelInstance;
|
|
291
|
+
/**
|
|
292
|
+
* Host-owned terminal surface: tabbed placements in the `secondary` region whose
|
|
293
|
+
* chrome, focus, lifecycle, and styling belong to the workbench. Sessions are
|
|
294
|
+
* owned by `workbench.terminal` (the same registry the `terminal.session`
|
|
295
|
+
* webview capability uses); the host injects a session opener via
|
|
296
|
+
* `workbench.terminal.setSessionOpener(...)`. Closing a tab kills its session;
|
|
297
|
+
* disposing the controller kills every live session.
|
|
298
|
+
*/
|
|
299
|
+
export declare const createWorkbenchTerminalModule: () => WorkbenchModuleContribution;
|
|
300
|
+
//#endregion
|
|
301
|
+
//#region src/react/terminal/workbench-terminal-panel.d.ts
|
|
302
|
+
interface ControllerTerminalBridgeOptions {
|
|
303
|
+
getBindingId?: () => string | undefined;
|
|
304
|
+
getResource?: () => ResourceRef | undefined;
|
|
305
|
+
getTitle?: () => string | undefined;
|
|
306
|
+
}
|
|
307
|
+
export declare const createControllerTerminalBridge: (terminal: WorkbenchTerminalController, options?: ControllerTerminalBridgeOptions) => TerminalBridge;
|
|
308
|
+
interface WorkbenchTerminalPanelProps {
|
|
309
|
+
placement: WorkbenchPanelInstance;
|
|
310
|
+
workbench: WorkbenchCore;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Body of the host-owned terminal panel. Chrome (tab, title, close action,
|
|
314
|
+
* resize) comes from the workbench `secondary` region; this component only mounts
|
|
315
|
+
* the terminal bound to the workbench terminal controller. Collapsing the panel
|
|
316
|
+
* keeps the terminal mounted. Scope changes keep the session alive; the terminal
|
|
317
|
+
* module ends it when its tab is explicitly closed.
|
|
318
|
+
*/
|
|
319
|
+
export declare const WorkbenchTerminalPanel: (props: WorkbenchTerminalPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
320
|
+
//#endregion
|
|
321
|
+
//#region src/react/theme/use-workbench-theme-preferences.d.ts
|
|
322
|
+
export declare const useWorkbenchThemePreferences: (workbench: WorkbenchCore) => ({
|
|
323
|
+
id: string;
|
|
324
|
+
mode: "light";
|
|
325
|
+
} | {
|
|
326
|
+
id: string;
|
|
327
|
+
mode: "dark";
|
|
328
|
+
} | ThemePreferenceOption$1)[];
|
|
329
|
+
//#endregion
|
|
330
|
+
//#region src/react/theme/workbench-theme-provider.d.ts
|
|
331
|
+
interface WorkbenchThemeProviderProps {
|
|
332
|
+
children: ReactNode;
|
|
333
|
+
initialThemePreference?: ThemePreference;
|
|
334
|
+
defaultThemePreference?: ThemePreference;
|
|
335
|
+
preferenceScope?: string;
|
|
336
|
+
themePreferences?: readonly ThemePreferenceOption[];
|
|
337
|
+
fileIconThemePreferences?: readonly FileIconThemePreferenceOption[];
|
|
338
|
+
}
|
|
339
|
+
export declare const WorkbenchThemeProvider: (props: WorkbenchThemeProviderProps) => string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
340
|
+
//#endregion
|
|
341
|
+
//#region src/react/theme/workbench-theme-scope.d.ts
|
|
342
|
+
interface WorkbenchThemeScopeProps extends Omit<BoxProps, "children"> {
|
|
343
|
+
children: ReactNode;
|
|
344
|
+
}
|
|
345
|
+
export declare const WorkbenchThemeScope: (props: WorkbenchThemeScopeProps) => import("react/jsx-runtime").JSX.Element;
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region src/react/workbench/overlay-layer.d.ts
|
|
348
|
+
interface WorkbenchOverlayWidgetConfig {
|
|
349
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "cover" | "full";
|
|
350
|
+
placement?: "center" | "top" | "bottom";
|
|
351
|
+
scrollBehavior?: "inside" | "outside";
|
|
352
|
+
closeOnEscape?: boolean;
|
|
353
|
+
closeOnInteractOutside?: boolean;
|
|
354
|
+
/** Controls dialog semantics. Every workbench overlay blocks background pointer input. */
|
|
355
|
+
modal?: boolean;
|
|
356
|
+
preventScroll?: boolean;
|
|
357
|
+
trapFocus?: boolean;
|
|
358
|
+
motionPreset?: "scale" | "slide-in-bottom" | "slide-in-top" | "slide-in-left" | "slide-in-right" | "none";
|
|
359
|
+
role?: "dialog" | "alertdialog";
|
|
360
|
+
contentHeight?: string;
|
|
361
|
+
contentMaxHeight?: string;
|
|
362
|
+
contentMinHeight?: string;
|
|
363
|
+
contentWidth?: string;
|
|
364
|
+
contentMaxWidth?: string;
|
|
365
|
+
closeTriggerTop?: string;
|
|
366
|
+
}
|
|
367
|
+
interface WorkbenchOverlayLayerProps {
|
|
368
|
+
workbench: WorkbenchCore;
|
|
369
|
+
}
|
|
370
|
+
export declare const WorkbenchOverlayLayer: (props: WorkbenchOverlayLayerProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
371
|
+
//#endregion
|
|
372
|
+
//#region src/react/workbench/workbench.d.ts
|
|
373
|
+
interface WorkbenchProps {
|
|
374
|
+
workbench: WorkbenchCore;
|
|
375
|
+
/** Host chrome above all workbench regions, inside the current theme. */
|
|
376
|
+
titleBar?: ReactNode;
|
|
377
|
+
renderParamField?: CommandParamFieldRenderer;
|
|
378
|
+
/** Icon shown in the closed Side Panel's bubble launcher. */
|
|
379
|
+
sidePanelBubbleIcon?: ReactNode;
|
|
380
|
+
/** Host action for opening the closed Side Panel from its bubble launcher. */
|
|
381
|
+
onOpenSidePanel?: () => void;
|
|
382
|
+
}
|
|
383
|
+
export declare const Workbench: (props: WorkbenchProps) => import("react/jsx-runtime").JSX.Element;
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region src/react/workbench/workbench-module-host.d.ts
|
|
386
|
+
interface WorkbenchModuleHostRegistration {
|
|
387
|
+
disposable: Disposable;
|
|
388
|
+
}
|
|
389
|
+
interface WorkbenchModuleHostProps {
|
|
390
|
+
workbench: WorkbenchCore;
|
|
391
|
+
modules: readonly WorkbenchModuleContribution[];
|
|
392
|
+
}
|
|
393
|
+
export declare const disposeWorkbenchModuleHostRegistrations: (registrations: Map<string, WorkbenchModuleHostRegistration>) => void;
|
|
394
|
+
export declare const syncWorkbenchModuleHostRegistrations: (workbench: WorkbenchCore, registrations: Map<string, WorkbenchModuleHostRegistration>, modules: readonly WorkbenchModuleContribution[]) => void;
|
|
395
|
+
export declare const WorkbenchModuleHost: (props: WorkbenchModuleHostProps) => null;
|
|
396
|
+
//#endregion
|
|
397
|
+
export type { CommandFilesParamValue, CommandParamEntry, CommandParamFieldProps, CommandParamFieldRenderer, CommandParamValue, PreferenceParamEntry, ReactAttributeDescriptor, ReactAttributesSource, ReactBoardColumnConfig, ReactKanbanRendererContribution, ReactResourceContextAction, TreeActionParamsRequest, WorkbenchHotkeyRegistration, WorkbenchMenuItem, WorkbenchModuleHostProps, WorkbenchModuleHostRegistration, WorkbenchOverlayWidgetConfig, WorkbenchPanelRenderInput, WorkbenchPreferencesFormProps, WorkbenchSettingsModuleOptions };
|
|
398
|
+
export {};
|