@codingame/monaco-vscode-welcome-service-override 4.2.0 → 4.3.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.
Files changed (50) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/welcomeViews/common/newFile.contribution.js +2 -2
  3. package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcome.contribution.js +1 -1
  4. package/welcome.js +1 -16
  5. package/assets/commandPalette.svg +0 -50
  6. package/assets/dark-hc.png +0 -0
  7. package/assets/dark.png +0 -0
  8. package/assets/debug.svg +0 -87
  9. package/assets/extensions-web.svg +0 -216
  10. package/assets/extensions.svg +0 -236
  11. package/assets/git.svg +0 -105
  12. package/assets/languages.svg +0 -88
  13. package/assets/learn.svg +0 -85
  14. package/assets/light-hc.png +0 -0
  15. package/assets/light.png +0 -0
  16. package/assets/menuBar.svg +0 -100
  17. package/assets/openFolder.svg +0 -91
  18. package/assets/profiles.svg +0 -47
  19. package/assets/runTask.svg +0 -42
  20. package/assets/search.svg +0 -48
  21. package/assets/settings.svg +0 -53
  22. package/assets/settingsSync.svg +0 -148
  23. package/assets/shortcuts.svg +0 -180
  24. package/assets/terminal.svg +0 -42
  25. package/assets/workspaceTrust.svg +0 -43
  26. package/external/rollup-plugin-styles/dist/runtime/inject-css.js +0 -3
  27. package/external/tslib/tslib.es6.js +0 -11
  28. package/external/vscode-marked/lib/marked.esm.js +0 -2200
  29. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +0 -382
  30. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +0 -1528
  31. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +0 -48
  32. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.js +0 -263
  33. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +0 -16
  34. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +0 -53
  35. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedList.js +0 -97
  36. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css.js +0 -6
  37. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +0 -218
  38. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/all.png.js +0 -8
  39. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/all.svg.js +0 -21
  40. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +0 -37
  41. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +0 -53
  42. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +0 -63
  43. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/vs_code_editor_walkthrough.js +0 -190
  44. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/media/walkThroughPart.css.js +0 -6
  45. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +0 -39
  46. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions.js +0 -59
  47. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +0 -115
  48. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +0 -431
  49. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +0 -76
  50. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +0 -19
@@ -1,382 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
3
- import { GettingStartedInputSerializer, GettingStartedPage, inWelcomeContext } from './gettingStarted.js';
4
- import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
5
- import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
6
- import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
7
- import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
8
- import { ContextKeyExpr, IContextKeyService, RawContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
9
- import { IEditorService, SIDE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
10
- import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
11
- import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
12
- import { IWalkthroughsService } from 'vscode/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService';
13
- import { GettingStartedInput } from './gettingStartedInput.js';
14
- import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
15
- import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
16
- import { workbenchConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
17
- import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
18
- import { ICommandService, CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
19
- import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
20
- import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
21
- import { isMacintosh, isLinux, isWindows } from 'vscode/vscode/vs/base/common/platform';
22
- import { IExtensionManagementServerService } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionManagement';
23
- import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
24
- import { StartupPageEditorResolverContribution, StartupPageRunnerContribution } from './startupPage.js';
25
- import { ExtensionsInput } from 'vscode/vscode/vs/workbench/contrib/extensions/common/extensionsInput';
26
- import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
27
- import './gettingStartedIcons.js';
28
-
29
- registerAction2(class extends Action2 {
30
- constructor() {
31
- super({
32
- id: 'workbench.action.openWalkthrough',
33
- title: ( localize2WithPath(
34
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
35
- 'miWelcome',
36
- 'Welcome'
37
- )),
38
- category: Categories.Help,
39
- f1: true,
40
- menu: {
41
- id: MenuId.MenubarHelpMenu,
42
- group: '1_welcome',
43
- order: 1,
44
- }
45
- });
46
- }
47
- run(accessor, walkthroughID, toSide) {
48
- const editorGroupsService = accessor.get(IEditorGroupsService);
49
- const instantiationService = accessor.get(IInstantiationService);
50
- const editorService = accessor.get(IEditorService);
51
- const commandService = accessor.get(ICommandService);
52
- if (walkthroughID) {
53
- const selectedCategory = typeof walkthroughID === 'string' ? walkthroughID : walkthroughID.category;
54
- const selectedStep = typeof walkthroughID === 'string' ? undefined : walkthroughID.category + '#' + walkthroughID.step;
55
- if (!selectedCategory && !selectedStep) {
56
- editorService.openEditor({
57
- resource: GettingStartedInput.RESOURCE,
58
- options: { preserveFocus: toSide ?? false }
59
- }, toSide ? SIDE_GROUP : undefined);
60
- return;
61
- }
62
- for (const group of editorGroupsService.groups) {
63
- if (group.activeEditor instanceof GettingStartedInput) {
64
- group.activeEditorPane.makeCategoryVisibleWhenAvailable(selectedCategory, selectedStep);
65
- return;
66
- }
67
- }
68
- const result = editorService.findEditors({ typeId: GettingStartedInput.ID, editorId: undefined, resource: GettingStartedInput.RESOURCE });
69
- for (const { editor, groupId } of result) {
70
- if (editor instanceof GettingStartedInput) {
71
- const group = editorGroupsService.getGroup(groupId);
72
- if (!editor.selectedCategory && group) {
73
- editor.selectedCategory = selectedCategory;
74
- editor.selectedStep = selectedStep;
75
- group.openEditor(editor, { revealIfOpened: true });
76
- return;
77
- }
78
- }
79
- }
80
- const activeEditor = editorService.activeEditor;
81
- if (selectedStep && activeEditor instanceof GettingStartedInput && activeEditor.selectedCategory === selectedCategory) {
82
- commandService.executeCommand('walkthroughs.selectStep', selectedStep);
83
- return;
84
- }
85
- if (activeEditor instanceof ExtensionsInput) {
86
- const activeGroup = editorGroupsService.activeGroup;
87
- activeGroup.replaceEditors([{
88
- editor: activeEditor,
89
- replacement: instantiationService.createInstance(GettingStartedInput, { selectedCategory: selectedCategory, selectedStep: selectedStep })
90
- }]);
91
- }
92
- else {
93
- editorService.openEditor({
94
- resource: GettingStartedInput.RESOURCE,
95
- options: { selectedCategory: selectedCategory, selectedStep: selectedStep, preserveFocus: toSide ?? false }
96
- }, toSide ? SIDE_GROUP : undefined).then((editor) => {
97
- editor?.makeCategoryVisibleWhenAvailable(selectedCategory, selectedStep);
98
- });
99
- }
100
- }
101
- else {
102
- editorService.openEditor({
103
- resource: GettingStartedInput.RESOURCE,
104
- options: { preserveFocus: toSide ?? false }
105
- }, toSide ? SIDE_GROUP : undefined);
106
- }
107
- }
108
- });
109
- ( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
110
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localizeWithPath(
111
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
112
- 'welcome',
113
- "Welcome"
114
- ))), [
115
- ( new SyncDescriptor(GettingStartedInput))
116
- ]);
117
- const category = ( localize2WithPath(
118
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
119
- 'welcome',
120
- "Welcome"
121
- ));
122
- registerAction2(class extends Action2 {
123
- constructor() {
124
- super({
125
- id: 'welcome.goBack',
126
- title: ( localize2WithPath(
127
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
128
- 'welcome.goBack',
129
- 'Go Back'
130
- )),
131
- category,
132
- keybinding: {
133
- weight: 100 ,
134
- primary: 9 ,
135
- when: inWelcomeContext
136
- },
137
- precondition: ( ContextKeyExpr.equals('activeEditor', 'gettingStartedPage')),
138
- f1: true
139
- });
140
- }
141
- run(accessor) {
142
- const editorService = accessor.get(IEditorService);
143
- const editorPane = editorService.activeEditorPane;
144
- if (editorPane instanceof GettingStartedPage) {
145
- editorPane.escape();
146
- }
147
- }
148
- });
149
- CommandsRegistry.registerCommand({
150
- id: 'walkthroughs.selectStep',
151
- handler: (accessor, stepID) => {
152
- const editorService = accessor.get(IEditorService);
153
- const editorPane = editorService.activeEditorPane;
154
- if (editorPane instanceof GettingStartedPage) {
155
- editorPane.selectStepLoose(stepID);
156
- }
157
- else {
158
- console.error('Cannot run walkthroughs.selectStep outside of walkthrough context');
159
- }
160
- }
161
- });
162
- registerAction2(class extends Action2 {
163
- constructor() {
164
- super({
165
- id: 'welcome.markStepComplete',
166
- title: ( localizeWithPath(
167
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
168
- 'welcome.markStepComplete',
169
- "Mark Step Complete"
170
- )),
171
- category,
172
- });
173
- }
174
- run(accessor, arg) {
175
- if (!arg) {
176
- return;
177
- }
178
- const gettingStartedService = accessor.get(IWalkthroughsService);
179
- gettingStartedService.progressStep(arg);
180
- }
181
- });
182
- registerAction2(class extends Action2 {
183
- constructor() {
184
- super({
185
- id: 'welcome.markStepIncomplete',
186
- title: ( localizeWithPath(
187
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
188
- 'welcome.markStepInomplete',
189
- "Mark Step Incomplete"
190
- )),
191
- category,
192
- });
193
- }
194
- run(accessor, arg) {
195
- if (!arg) {
196
- return;
197
- }
198
- const gettingStartedService = accessor.get(IWalkthroughsService);
199
- gettingStartedService.deprogressStep(arg);
200
- }
201
- });
202
- registerAction2(class extends Action2 {
203
- constructor() {
204
- super({
205
- id: 'welcome.showAllWalkthroughs',
206
- title: ( localize2WithPath(
207
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
208
- 'welcome.showAllWalkthroughs',
209
- 'Open Walkthrough...'
210
- )),
211
- category,
212
- f1: true,
213
- });
214
- }
215
- async getQuickPickItems(contextService, gettingStartedService) {
216
- const categories = await gettingStartedService.getWalkthroughs();
217
- return ( categories
218
- .filter(c => contextService.contextMatchesRules(c.when))
219
- .map(x => ({
220
- id: x.id,
221
- label: x.title,
222
- detail: x.description,
223
- description: x.source,
224
- })));
225
- }
226
- async run(accessor) {
227
- const commandService = accessor.get(ICommandService);
228
- const contextService = accessor.get(IContextKeyService);
229
- const quickInputService = accessor.get(IQuickInputService);
230
- const gettingStartedService = accessor.get(IWalkthroughsService);
231
- const extensionService = accessor.get(IExtensionService);
232
- const quickPick = quickInputService.createQuickPick();
233
- quickPick.canSelectMany = false;
234
- quickPick.matchOnDescription = true;
235
- quickPick.matchOnDetail = true;
236
- quickPick.placeholder = ( localizeWithPath(
237
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
238
- 'pickWalkthroughs',
239
- 'Select a walkthrough to open'
240
- ));
241
- quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
242
- quickPick.busy = true;
243
- quickPick.onDidAccept(() => {
244
- const selection = quickPick.selectedItems[0];
245
- if (selection) {
246
- commandService.executeCommand('workbench.action.openWalkthrough', selection.id);
247
- }
248
- quickPick.hide();
249
- });
250
- quickPick.onDidHide(() => quickPick.dispose());
251
- await extensionService.whenInstalledExtensionsRegistered();
252
- gettingStartedService.onDidAddWalkthrough(async () => {
253
- quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
254
- });
255
- quickPick.show();
256
- quickPick.busy = false;
257
- }
258
- });
259
- const WorkspacePlatform = ( new RawContextKey('workspacePlatform', undefined, ( localizeWithPath(
260
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
261
- 'workspacePlatform',
262
- "The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
263
- ))));
264
- let WorkspacePlatformContribution = class WorkspacePlatformContribution {
265
- static { this.ID = 'workbench.contrib.workspacePlatform'; }
266
- constructor(extensionManagementServerService, remoteAgentService, contextService) {
267
- this.extensionManagementServerService = extensionManagementServerService;
268
- this.remoteAgentService = remoteAgentService;
269
- this.contextService = contextService;
270
- this.remoteAgentService.getEnvironment().then(env => {
271
- const remoteOS = env?.os;
272
- const remotePlatform = remoteOS === 2 ? 'mac'
273
- : remoteOS === 1 ? 'windows'
274
- : remoteOS === 3 ? 'linux'
275
- : undefined;
276
- if (remotePlatform) {
277
- WorkspacePlatform.bindTo(this.contextService).set(remotePlatform);
278
- }
279
- else if (this.extensionManagementServerService.localExtensionManagementServer) {
280
- if (isMacintosh) {
281
- WorkspacePlatform.bindTo(this.contextService).set('mac');
282
- }
283
- else if (isLinux) {
284
- WorkspacePlatform.bindTo(this.contextService).set('linux');
285
- }
286
- else if (isWindows) {
287
- WorkspacePlatform.bindTo(this.contextService).set('windows');
288
- }
289
- }
290
- else if (this.extensionManagementServerService.webExtensionManagementServer) {
291
- WorkspacePlatform.bindTo(this.contextService).set('webworker');
292
- }
293
- else {
294
- console.error('Error: Unable to detect workspace platform');
295
- }
296
- });
297
- }
298
- };
299
- WorkspacePlatformContribution = ( __decorate([
300
- ( __param(0, IExtensionManagementServerService)),
301
- ( __param(1, IRemoteAgentService)),
302
- ( __param(2, IContextKeyService))
303
- ], WorkspacePlatformContribution));
304
- const configurationRegistry = ( Registry.as(Extensions.Configuration));
305
- configurationRegistry.registerConfiguration({
306
- ...workbenchConfigurationNodeBase,
307
- properties: {
308
- 'workbench.welcomePage.walkthroughs.openOnInstall': {
309
- scope: 2 ,
310
- type: 'boolean',
311
- default: true,
312
- description: ( localizeWithPath(
313
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
314
- 'workbench.welcomePage.walkthroughs.openOnInstall',
315
- "When enabled, an extension's walkthrough will open upon install of the extension."
316
- ))
317
- },
318
- 'workbench.startupEditor': {
319
- 'scope': 4 ,
320
- 'type': 'string',
321
- 'enum': ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench', 'terminal'],
322
- 'enumDescriptions': [
323
- ( localizeWithPath(
324
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
325
- { comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.none' },
326
- "Start without an editor."
327
- )),
328
- ( localizeWithPath(
329
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
330
- { comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.welcomePage' },
331
- "Open the Welcome page, with content to aid in getting started with VS Code and extensions."
332
- )),
333
- ( localizeWithPath(
334
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
335
- { comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.readme' },
336
- "Open the README when opening a folder that contains one, fallback to 'welcomePage' otherwise. Note: This is only observed as a global configuration, it will be ignored if set in a workspace or folder configuration."
337
- )),
338
- ( localizeWithPath(
339
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
340
- { comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.newUntitledFile' },
341
- "Open a new untitled text file (only applies when opening an empty window)."
342
- )),
343
- ( localizeWithPath(
344
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
345
- { comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.welcomePageInEmptyWorkbench' },
346
- "Open the Welcome page when opening an empty workbench."
347
- )),
348
- ( localizeWithPath(
349
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
350
- { comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.terminal' },
351
- "Open a new terminal in the editor area."
352
- )),
353
- ],
354
- 'default': 'welcomePage',
355
- 'description': ( localizeWithPath(
356
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
357
- 'workbench.startupEditor',
358
- "Controls which editor is shown at startup, if none are restored from the previous session."
359
- ))
360
- },
361
- 'workbench.welcomePage.preferReducedMotion': {
362
- scope: 1 ,
363
- type: 'boolean',
364
- default: false,
365
- deprecationMessage: ( localizeWithPath(
366
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
367
- 'deprecationMessage',
368
- "Deprecated, use the global `workbench.reduceMotion`."
369
- )),
370
- description: ( localizeWithPath(
371
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
372
- 'workbench.welcomePage.preferReducedMotion',
373
- "When enabled, reduce motion in welcome page."
374
- ))
375
- }
376
- }
377
- });
378
- registerWorkbenchContribution2(WorkspacePlatformContribution.ID, WorkspacePlatformContribution, 3 );
379
- registerWorkbenchContribution2(StartupPageEditorResolverContribution.ID, StartupPageEditorResolverContribution, 2 );
380
- registerWorkbenchContribution2(StartupPageRunnerContribution.ID, StartupPageRunnerContribution, 3 );
381
-
382
- export { WorkspacePlatform };