@workbench-kit/shell-react 0.0.2-prototype.0.2.17 → 0.0.2-prototype.0.2.19

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.
Files changed (30) hide show
  1. package/package.json +9 -8
  2. package/src/extensions/builtin/accounts/src/index.ts +13 -0
  3. package/src/extensions/builtin/accounts/workbench.extension.json +45 -0
  4. package/src/extensions/builtin/chat/src/index.ts +40 -0
  5. package/src/extensions/builtin/chat/workbench.extension.json +66 -0
  6. package/src/extensions/builtin/commands/src/command-inspector-editor-host.ts +79 -0
  7. package/src/extensions/builtin/commands/src/index.ts +65 -0
  8. package/src/extensions/builtin/commands/workbench.extension.json +64 -0
  9. package/src/extensions/builtin/editor/src/index.ts +95 -0
  10. package/src/extensions/builtin/editor/src/missing-resource-editor-host.ts +58 -0
  11. package/src/extensions/builtin/editor/src/resource-uri.ts +16 -0
  12. package/src/extensions/builtin/editor/src/text-editor-host.ts +86 -0
  13. package/src/extensions/builtin/editor/workbench.extension.json +32 -0
  14. package/src/extensions/builtin/explorer/src/index.ts +466 -0
  15. package/src/extensions/builtin/explorer/workbench.extension.json +132 -0
  16. package/src/extensions/builtin/extensions/src/index.ts +28 -0
  17. package/src/extensions/builtin/extensions/workbench.extension.json +53 -0
  18. package/src/extensions/builtin/keybindings/src/index.ts +6 -0
  19. package/src/extensions/builtin/keybindings/workbench.extension.json +21 -0
  20. package/src/extensions/builtin/search/src/index.ts +22 -0
  21. package/src/extensions/builtin/search/workbench.extension.json +43 -0
  22. package/src/extensions/builtin/settings/src/index.ts +23 -0
  23. package/src/extensions/builtin/settings/workbench.extension.json +41 -0
  24. package/src/extensions/builtin/workspace/src/index.ts +12 -0
  25. package/src/extensions/builtin/workspace/workbench.extension.json +37 -0
  26. package/src/extensions/builtin-extensions.ts +591 -0
  27. package/src/extensions/management-model.ts +41 -35
  28. package/src/extensions/use-extension-management.ts +11 -4
  29. package/src/index.ts +2 -0
  30. package/src/shell/provider.tsx +6 -6
@@ -0,0 +1,591 @@
1
+ import type { WorkbenchExtensionDescription } from '@workbench-kit/workbench-core';
2
+ import * as builtinAccountsModule from './builtin/accounts/src/index.ts';
3
+ import * as builtinChatModule from './builtin/chat/src/index.ts';
4
+ import * as builtinCommandsModule from './builtin/commands/src/index.ts';
5
+ import * as builtinEditorModule from './builtin/editor/src/index.ts';
6
+ import * as builtinExplorerModule from './builtin/explorer/src/index.ts';
7
+ import * as builtinExtensionsModule from './builtin/extensions/src/index.ts';
8
+ import * as builtinKeybindingsModule from './builtin/keybindings/src/index.ts';
9
+ import * as builtinSearchModule from './builtin/search/src/index.ts';
10
+ import * as builtinSettingsModule from './builtin/settings/src/index.ts';
11
+ import * as builtinWorkspaceModule from './builtin/workspace/src/index.ts';
12
+
13
+ // This file is generated by scripts/bundle-workbench-extensions.mjs.
14
+ // Do not edit it by hand.
15
+
16
+ export const BUILTIN_WORKBENCH_EXTENSIONS = [
17
+ {
18
+ extensionPath: 'extensions/builtin.accounts',
19
+ manifest: {
20
+ schemaVersion: 1,
21
+ id: 'workbench-kit.builtin.accounts',
22
+ name: 'builtin-accounts',
23
+ displayName: 'Accounts',
24
+ version: '0.0.0',
25
+ publisher: 'workbench-kit',
26
+ engines: {
27
+ workbench: '^0.0.0',
28
+ extensionApi: '^0.0.0',
29
+ },
30
+ activationEvents: ['onStartup'],
31
+ capabilities: {
32
+ requires: ['workbench.auth'],
33
+ },
34
+ contributes: {
35
+ commands: [
36
+ {
37
+ command: 'workbench-kit.builtin.accounts.manage',
38
+ title: 'Manage Accounts',
39
+ category: 'Accounts',
40
+ },
41
+ ],
42
+ menus: {
43
+ 'status/account': [
44
+ {
45
+ command: 'workbench-kit.builtin.accounts.manage',
46
+ group: 'account',
47
+ order: 1,
48
+ },
49
+ ],
50
+ },
51
+ configuration: {
52
+ properties: {
53
+ 'workbench.accounts.enabled': {
54
+ type: 'boolean',
55
+ default: true,
56
+ scope: 'application',
57
+ description: 'Enable the workbench account entry point.',
58
+ },
59
+ },
60
+ },
61
+ },
62
+ permissions: ['account.read'],
63
+ },
64
+ module: builtinAccountsModule,
65
+ },
66
+ {
67
+ extensionPath: 'extensions/builtin.chat',
68
+ manifest: {
69
+ schemaVersion: 1,
70
+ id: 'workbench-kit.builtin.chat',
71
+ name: 'builtin-chat',
72
+ displayName: 'Chat',
73
+ version: '0.0.0',
74
+ publisher: 'workbench-kit',
75
+ engines: {
76
+ workbench: '^0.0.0',
77
+ extensionApi: '^0.0.0',
78
+ },
79
+ activationEvents: [
80
+ 'onView:workbench-kit.builtin.chat.chatting',
81
+ 'onView:workbench-kit.builtin.chat.aiChat',
82
+ ],
83
+ contributes: {
84
+ viewContainers: {
85
+ activitybar: [
86
+ {
87
+ id: 'chatting',
88
+ title: 'Chat',
89
+ icon: 'comment-discussion',
90
+ order: 30,
91
+ },
92
+ {
93
+ id: 'aiChat',
94
+ title: 'AI Chat',
95
+ icon: 'sparkle',
96
+ order: 40,
97
+ },
98
+ ],
99
+ },
100
+ activities: [
101
+ {
102
+ id: 'workbench-kit.builtin.chat.chatting.activity',
103
+ viewContainerId: 'chatting',
104
+ icon: 'comment-discussion',
105
+ title: 'Chat',
106
+ order: 30,
107
+ when: 'workbench.permissions.canUseChat',
108
+ },
109
+ {
110
+ id: 'workbench-kit.builtin.chat.aiChat.activity',
111
+ viewContainerId: 'aiChat',
112
+ icon: 'sparkle',
113
+ title: 'AI Chat',
114
+ order: 40,
115
+ when: 'workbench.permissions.canUseChat',
116
+ },
117
+ ],
118
+ views: {
119
+ chatting: [
120
+ {
121
+ id: 'workbench-kit.builtin.chat.chatting',
122
+ name: 'Chat',
123
+ },
124
+ ],
125
+ aiChat: [
126
+ {
127
+ id: 'workbench-kit.builtin.chat.aiChat',
128
+ name: 'AI Chat',
129
+ },
130
+ ],
131
+ },
132
+ },
133
+ },
134
+ module: builtinChatModule,
135
+ },
136
+ {
137
+ extensionPath: 'extensions/builtin.commands',
138
+ manifest: {
139
+ schemaVersion: 1,
140
+ id: 'workbench-kit.builtin.commands',
141
+ name: 'builtin-commands',
142
+ displayName: 'Commands',
143
+ version: '0.0.0',
144
+ publisher: 'workbench-kit',
145
+ engines: {
146
+ workbench: '^0.0.0',
147
+ extensionApi: '^0.0.0',
148
+ },
149
+ activationEvents: ['onView:workbench-kit.builtin.commands.panel'],
150
+ contributes: {
151
+ commands: [
152
+ {
153
+ command: 'workbench-kit.builtin.commands.focus',
154
+ title: 'Focus Commands Sidebar',
155
+ category: 'Workbench',
156
+ },
157
+ {
158
+ command: 'workbench-kit.builtin.commands.refresh',
159
+ title: 'Refresh Command Registry',
160
+ category: 'Workbench',
161
+ },
162
+ ],
163
+ viewContainers: {
164
+ activitybar: [
165
+ {
166
+ id: 'commands',
167
+ title: 'Commands',
168
+ icon: 'terminal',
169
+ order: 25,
170
+ },
171
+ ],
172
+ },
173
+ activities: [
174
+ {
175
+ id: 'workbench-kit.builtin.commands.activity',
176
+ viewContainerId: 'commands',
177
+ icon: 'terminal',
178
+ title: 'Commands',
179
+ order: 25,
180
+ when: 'workbench.permissions.canManageCommands',
181
+ },
182
+ ],
183
+ views: {
184
+ commands: [
185
+ {
186
+ id: 'workbench-kit.builtin.commands.panel',
187
+ name: 'Commands',
188
+ },
189
+ ],
190
+ },
191
+ menus: {
192
+ 'view/title': [
193
+ {
194
+ command: 'workbench-kit.builtin.commands.refresh',
195
+ group: 'navigation',
196
+ when: 'view == workbench-kit.builtin.commands.panel',
197
+ },
198
+ ],
199
+ },
200
+ },
201
+ },
202
+ module: builtinCommandsModule,
203
+ },
204
+ {
205
+ extensionPath: 'extensions/builtin.editor',
206
+ manifest: {
207
+ schemaVersion: 1,
208
+ id: 'workbench-kit.builtin.editor',
209
+ name: 'builtin-editor',
210
+ displayName: 'Text Editor',
211
+ version: '0.0.0',
212
+ publisher: 'workbench-kit',
213
+ engines: {
214
+ workbench: '^0.0.0',
215
+ extensionApi: '^0.0.0',
216
+ },
217
+ activationEvents: ['onStartup'],
218
+ contributes: {
219
+ documentViews: [
220
+ {
221
+ id: 'workbench-kit.builtin.editor.markdown-preview',
222
+ kind: 'preview',
223
+ label: 'Preview',
224
+ priority: 5,
225
+ filenamePatterns: ['*.md', '*.mdx'],
226
+ mimeTypes: ['text/markdown'],
227
+ },
228
+ ],
229
+ editors: [
230
+ {
231
+ id: 'workbench-kit.builtin.editor.text',
232
+ label: 'Text Editor',
233
+ icon: 'file',
234
+ },
235
+ ],
236
+ },
237
+ },
238
+ module: builtinEditorModule,
239
+ },
240
+ {
241
+ extensionPath: 'extensions/builtin.explorer',
242
+ manifest: {
243
+ schemaVersion: 1,
244
+ id: 'workbench-kit.builtin.explorer',
245
+ name: 'builtin-explorer',
246
+ displayName: 'Explorer',
247
+ version: '0.0.0',
248
+ publisher: 'workbench-kit',
249
+ engines: {
250
+ workbench: '^0.0.0',
251
+ extensionApi: '^0.0.0',
252
+ },
253
+ activationEvents: [
254
+ 'onView:workbench-kit.builtin.explorer.tree',
255
+ 'onCommand:workbench-kit.builtin.explorer.refresh',
256
+ 'onCommand:workbench-kit.builtin.explorer.reveal',
257
+ 'onCommand:workbench-kit.builtin.explorer.focus',
258
+ 'onCommand:workbench-kit.builtin.explorer.move',
259
+ 'onCommand:workspace.newFile',
260
+ 'onCommand:workspace.newFolder',
261
+ 'onCommand:workspace.init',
262
+ 'onCommand:workspace.open',
263
+ 'onCommand:workspace.copyPath',
264
+ 'onCommand:workspace.rename',
265
+ 'onCommand:workspace.delete',
266
+ ],
267
+ capabilities: {
268
+ requires: ['workbench.workspace'],
269
+ },
270
+ permissions: ['workspace.read', 'workspace.write'],
271
+ contributes: {
272
+ commands: [
273
+ {
274
+ command: 'workbench-kit.builtin.explorer.refresh',
275
+ title: 'Refresh Explorer',
276
+ category: 'Explorer',
277
+ },
278
+ {
279
+ command: 'workbench-kit.builtin.explorer.reveal',
280
+ title: 'Reveal in Explorer',
281
+ category: 'Explorer',
282
+ },
283
+ {
284
+ command: 'workbench-kit.builtin.explorer.focus',
285
+ title: 'Focus Explorer',
286
+ category: 'Explorer',
287
+ },
288
+ {
289
+ command: 'workbench-kit.builtin.explorer.move',
290
+ title: 'Move Workspace Entry',
291
+ category: 'Explorer',
292
+ },
293
+ {
294
+ command: 'workspace.newFile',
295
+ title: 'New File',
296
+ category: 'Workspace',
297
+ icon: 'new-file',
298
+ },
299
+ {
300
+ command: 'workspace.newFolder',
301
+ title: 'New Folder',
302
+ category: 'Workspace',
303
+ icon: 'new-folder',
304
+ },
305
+ {
306
+ command: 'workspace.init',
307
+ title: 'Initialize Workspace',
308
+ category: 'Workspace',
309
+ },
310
+ {
311
+ command: 'workspace.open',
312
+ title: 'Open',
313
+ category: 'Workspace',
314
+ icon: 'go-to-file',
315
+ },
316
+ {
317
+ command: 'workspace.copyPath',
318
+ title: 'Copy Path',
319
+ category: 'Workspace',
320
+ icon: 'copy',
321
+ },
322
+ {
323
+ command: 'workspace.rename',
324
+ title: 'Rename',
325
+ category: 'Workspace',
326
+ icon: 'edit',
327
+ },
328
+ {
329
+ command: 'workspace.delete',
330
+ title: 'Delete',
331
+ category: 'Workspace',
332
+ icon: 'trash',
333
+ },
334
+ ],
335
+ menus: {
336
+ 'view/title': [
337
+ {
338
+ command: 'workbench-kit.builtin.explorer.refresh',
339
+ group: 'navigation',
340
+ order: 1,
341
+ when: 'view == workbench-kit.builtin.explorer.tree',
342
+ },
343
+ ],
344
+ },
345
+ viewContainers: {
346
+ activitybar: [
347
+ {
348
+ id: 'explorer',
349
+ title: 'Explorer',
350
+ icon: 'files',
351
+ order: 10,
352
+ },
353
+ ],
354
+ },
355
+ activities: [
356
+ {
357
+ id: 'workbench-kit.builtin.explorer.activity',
358
+ viewContainerId: 'explorer',
359
+ icon: 'files',
360
+ title: 'Explorer',
361
+ order: 10,
362
+ },
363
+ ],
364
+ views: {
365
+ explorer: [
366
+ {
367
+ id: 'workbench-kit.builtin.explorer.tree',
368
+ name: 'Explorer',
369
+ },
370
+ ],
371
+ },
372
+ },
373
+ },
374
+ module: builtinExplorerModule,
375
+ },
376
+ {
377
+ extensionPath: 'extensions/builtin.extensions',
378
+ manifest: {
379
+ schemaVersion: 1,
380
+ id: 'workbench-kit.builtin.extensions',
381
+ name: 'builtin-extensions',
382
+ displayName: 'Extensions',
383
+ version: '0.0.0',
384
+ publisher: 'workbench-kit',
385
+ engines: {
386
+ workbench: '^0.0.0',
387
+ extensionApi: '^0.0.0',
388
+ },
389
+ activationEvents: [
390
+ 'onView:workbench-kit.builtin.extensions.panel',
391
+ 'onCommand:workbench-kit.builtin.extensions.focus',
392
+ ],
393
+ contributes: {
394
+ commands: [
395
+ {
396
+ command: 'workbench-kit.builtin.extensions.focus',
397
+ title: 'Focus Extensions Sidebar',
398
+ category: 'Workbench',
399
+ },
400
+ ],
401
+ viewContainers: {
402
+ activitybar: [
403
+ {
404
+ id: 'extensions',
405
+ title: 'Extensions',
406
+ icon: 'extensions',
407
+ order: 35,
408
+ },
409
+ ],
410
+ },
411
+ activities: [
412
+ {
413
+ id: 'workbench-kit.builtin.extensions.activity',
414
+ viewContainerId: 'extensions',
415
+ icon: 'extensions',
416
+ title: 'Extensions',
417
+ order: 35,
418
+ when: 'workbench.permissions.canManageExtensions',
419
+ },
420
+ ],
421
+ views: {
422
+ extensions: [
423
+ {
424
+ id: 'workbench-kit.builtin.extensions.panel',
425
+ name: 'Extensions',
426
+ },
427
+ ],
428
+ },
429
+ },
430
+ },
431
+ module: builtinExtensionsModule,
432
+ },
433
+ {
434
+ extensionPath: 'extensions/builtin.keybindings',
435
+ manifest: {
436
+ schemaVersion: 1,
437
+ id: 'workbench-kit.builtin.keybindings',
438
+ name: 'builtin-keybindings',
439
+ displayName: 'Keybindings',
440
+ version: '0.0.0',
441
+ publisher: 'workbench-kit',
442
+ engines: {
443
+ workbench: '^0.0.0',
444
+ extensionApi: '^0.0.0',
445
+ },
446
+ activationEvents: ['onStartup'],
447
+ contributes: {
448
+ keybindings: [
449
+ {
450
+ command: 'editor.save',
451
+ key: 'ctrl+s',
452
+ },
453
+ ],
454
+ },
455
+ },
456
+ module: builtinKeybindingsModule,
457
+ },
458
+ {
459
+ extensionPath: 'extensions/builtin.search',
460
+ manifest: {
461
+ schemaVersion: 1,
462
+ id: 'workbench-kit.builtin.search',
463
+ name: 'builtin-search',
464
+ displayName: 'Search',
465
+ version: '0.0.0',
466
+ publisher: 'workbench-kit',
467
+ engines: {
468
+ workbench: '^0.0.0',
469
+ extensionApi: '^0.0.0',
470
+ },
471
+ activationEvents: ['onView:workbench-kit.builtin.search.panel'],
472
+ contributes: {
473
+ viewContainers: {
474
+ activitybar: [
475
+ {
476
+ id: 'search',
477
+ title: 'Search',
478
+ icon: 'search',
479
+ order: 20,
480
+ },
481
+ ],
482
+ },
483
+ activities: [
484
+ {
485
+ id: 'workbench-kit.builtin.search.activity',
486
+ viewContainerId: 'search',
487
+ icon: 'search',
488
+ title: 'Search',
489
+ order: 20,
490
+ when: 'workbench.permissions.canUseSearch',
491
+ },
492
+ ],
493
+ views: {
494
+ search: [
495
+ {
496
+ id: 'workbench-kit.builtin.search.panel',
497
+ name: 'Search',
498
+ },
499
+ ],
500
+ },
501
+ },
502
+ },
503
+ module: builtinSearchModule,
504
+ },
505
+ {
506
+ extensionPath: 'extensions/builtin.settings',
507
+ manifest: {
508
+ schemaVersion: 1,
509
+ id: 'workbench-kit.builtin.settings',
510
+ name: 'builtin-settings',
511
+ displayName: 'Settings',
512
+ version: '0.0.0',
513
+ publisher: 'workbench-kit',
514
+ engines: {
515
+ workbench: '^0.0.0',
516
+ extensionApi: '^0.0.0',
517
+ },
518
+ activationEvents: ['onCommand:workbench-kit.builtin.settings.open'],
519
+ contributes: {
520
+ commands: [
521
+ {
522
+ command: 'workbench-kit.builtin.settings.open',
523
+ title: 'Open Settings',
524
+ category: 'Settings',
525
+ },
526
+ ],
527
+ menus: {
528
+ commandPalette: [
529
+ {
530
+ command: 'workbench-kit.builtin.settings.open',
531
+ group: 'preferences',
532
+ order: 1,
533
+ },
534
+ ],
535
+ },
536
+ configuration: {
537
+ properties: {
538
+ 'workbench.settings.openOnStartup': {
539
+ type: 'boolean',
540
+ default: false,
541
+ scope: 'workspace',
542
+ description: 'Open the settings view when the workbench starts.',
543
+ },
544
+ },
545
+ },
546
+ },
547
+ },
548
+ module: builtinSettingsModule,
549
+ },
550
+ {
551
+ extensionPath: 'extensions/builtin.workspace',
552
+ manifest: {
553
+ schemaVersion: 1,
554
+ id: 'workbench-kit.builtin.workspace',
555
+ name: 'builtin-workspace',
556
+ displayName: 'Workspace',
557
+ version: '0.0.0',
558
+ publisher: 'workbench-kit',
559
+ engines: {
560
+ workbench: '^0.0.0',
561
+ extensionApi: '^0.0.0',
562
+ },
563
+ activationEvents: ['onStartup'],
564
+ capabilities: {
565
+ requires: ['workbench.workspace'],
566
+ },
567
+ permissions: ['workspace.read'],
568
+ contributes: {
569
+ commands: [
570
+ {
571
+ command: 'workbench-kit.builtin.workspace.showInfo',
572
+ title: 'Show Workspace Info',
573
+ category: 'Workspace',
574
+ },
575
+ ],
576
+ configuration: {
577
+ properties: {
578
+ 'workbench.workspace.name': {
579
+ type: 'string',
580
+ default: 'Workbench',
581
+ scope: 'workspace',
582
+ description: 'Display name for the active workspace.',
583
+ },
584
+ },
585
+ },
586
+ views: {},
587
+ },
588
+ },
589
+ module: builtinWorkspaceModule,
590
+ },
591
+ ] as unknown as readonly WorkbenchExtensionDescription[];