@codingame/monaco-vscode-walkthrough-service-override 18.4.0 → 19.0.1

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 (27) hide show
  1. package/package.json +10 -10
  2. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +26 -73
  3. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.d.ts +2 -3
  4. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +72 -62
  5. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.js +3 -3
  6. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +7 -7
  7. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.js +3 -3
  8. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +37 -37
  9. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +2 -2
  10. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +1 -1
  11. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +3 -3
  12. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.d.ts +3 -1
  13. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +12 -4
  14. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css +14 -1
  15. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.d.ts +3 -1
  16. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +18 -4
  17. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +176 -190
  18. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +3 -3
  19. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +5 -5
  20. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker_small.js +4 -4
  21. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +3 -3
  22. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +2 -2
  23. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.d.ts +1 -1
  24. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +1 -1
  25. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +2 -2
  26. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +2 -2
  27. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-walkthrough-service-override",
3
- "version": "18.4.0",
3
+ "version": "19.0.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - walkthrough service-override",
6
6
  "keywords": [],
@@ -15,15 +15,15 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "18.4.0",
19
- "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "18.4.0",
20
- "@codingame/monaco-vscode-7bbc9e7d-eeae-55fc-8bf9-dc2f66e0dc73-common": "18.4.0",
21
- "@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-common": "18.4.0",
22
- "@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "18.4.0",
23
- "@codingame/monaco-vscode-api": "18.4.0",
24
- "@codingame/monaco-vscode-cf77987b-b1b7-5359-aaf8-a259c63d9f03-common": "18.4.0",
25
- "@codingame/monaco-vscode-ed7f2efb-131f-5ae8-b8fe-f20867e14c58-common": "18.4.0",
26
- "@codingame/monaco-vscode-f054d965-ed28-53b8-b046-94e93188218c-common": "18.4.0",
18
+ "@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "19.0.1",
19
+ "@codingame/monaco-vscode-516ccb00-d5b9-5317-baf0-fcc96e99669a-common": "19.0.1",
20
+ "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "19.0.1",
21
+ "@codingame/monaco-vscode-7bbc9e7d-eeae-55fc-8bf9-dc2f66e0dc73-common": "19.0.1",
22
+ "@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "19.0.1",
23
+ "@codingame/monaco-vscode-api": "19.0.1",
24
+ "@codingame/monaco-vscode-ca445022-b812-53ca-a041-e46c7e0b13de-common": "19.0.1",
25
+ "@codingame/monaco-vscode-cf77987b-b1b7-5359-aaf8-a259c63d9f03-common": "19.0.1",
26
+ "@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "19.0.1",
27
27
  "marked": "14.0.0"
28
28
  },
29
29
  "main": "index.js",
@@ -5,7 +5,6 @@ import { GettingStartedInputSerializer, GettingStartedPage, inWelcomeContext } f
5
5
  import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
6
6
  import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
7
7
  import { registerAction2, Action2, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
8
- import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
9
8
  import { ContextKeyExpr, RawContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
10
9
  import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
11
10
  import { SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
@@ -19,7 +18,6 @@ import { GettingStartedInput } from './gettingStartedInput.js';
19
18
  import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
20
19
  import { Extensions, ConfigurationScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
21
20
  import { workbenchConfigurationNodeBase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/configuration';
22
- import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
23
21
  import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
24
22
  import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
25
23
  import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
@@ -28,7 +26,6 @@ import { OperatingSystem, isMacintosh, isLinux, isWindows } from '@codingame/mon
28
26
  import { IExtensionManagementServerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service';
29
27
  import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
30
28
  import { StartupPageEditorResolverContribution, StartupPageRunnerContribution } from './startupPage.js';
31
- import { ExtensionsInput } from '@codingame/monaco-vscode-cf77987b-b1b7-5359-aaf8-a259c63d9f03-common/vscode/vs/workbench/contrib/extensions/common/extensionsInput';
32
29
  import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/action/common/actionCommonCategories';
33
30
  import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
34
31
  import { AccessibleViewRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
@@ -40,7 +37,7 @@ registerAction2(class extends Action2 {
40
37
  constructor() {
41
38
  super({
42
39
  id: 'workbench.action.openWalkthrough',
43
- title: ( localize2(11765, 'Welcome')),
40
+ title: ( localize2(12037, 'Welcome')),
44
41
  category: Categories.Help,
45
42
  f1: true,
46
43
  menu: {
@@ -49,13 +46,11 @@ registerAction2(class extends Action2 {
49
46
  order: 1,
50
47
  },
51
48
  metadata: {
52
- description: ( localize2(11766, 'Opens a Walkthrough to help you get started in VS Code.'))
49
+ description: ( localize2(12038, 'Opens a Walkthrough to help you get started in VS Code.'))
53
50
  }
54
51
  });
55
52
  }
56
53
  run(accessor, walkthroughID, optionsOrToSide) {
57
- const editorGroupsService = accessor.get(IEditorGroupsService);
58
- const instantiationService = accessor.get(IInstantiationService);
59
54
  const editorService = accessor.get(IEditorService);
60
55
  const commandService = accessor.get(ICommandService);
61
56
  const toSide = typeof optionsOrToSide === 'object' ? optionsOrToSide.toSide : optionsOrToSide;
@@ -69,59 +64,17 @@ registerAction2(class extends Action2 {
69
64
  else {
70
65
  selectedStep = undefined;
71
66
  }
72
- if (!selectedCategory && !selectedStep) {
73
- editorService.openEditor({
74
- resource: GettingStartedInput.RESOURCE,
75
- options: { preserveFocus: toSide ?? false, inactive, forceReload: true }
76
- }, toSide ? SIDE_GROUP : undefined);
77
- return;
78
- }
79
- for (const group of editorGroupsService.groups) {
80
- if (group.activeEditor instanceof GettingStartedInput) {
81
- const activeEditor = group.activeEditor;
82
- activeEditor.showWelcome = false;
83
- if (activeEditor.selectedCategory && activeEditor.selectedStep) {
84
- return;
85
- }
86
- group.activeEditorPane.makeCategoryVisibleWhenAvailable(selectedCategory, selectedStep);
87
- return;
88
- }
89
- }
90
- const result = editorService.findEditors({ typeId: GettingStartedInput.ID, editorId: undefined, resource: GettingStartedInput.RESOURCE });
91
- for (const { editor, groupId } of result) {
92
- if (editor instanceof GettingStartedInput) {
93
- const group = editorGroupsService.getGroup(groupId);
94
- if (!editor.selectedCategory && group) {
95
- editor.selectedCategory = selectedCategory;
96
- editor.selectedStep = selectedStep;
97
- editor.showWelcome = false;
98
- group.openEditor(editor, { revealIfOpened: true, inactive });
99
- return;
100
- }
101
- }
102
- }
103
67
  const activeEditor = editorService.activeEditor;
104
68
  if (selectedStep && activeEditor instanceof GettingStartedInput && activeEditor.selectedCategory === selectedCategory) {
105
69
  activeEditor.showWelcome = false;
106
70
  commandService.executeCommand('walkthroughs.selectStep', selectedStep);
107
71
  return;
108
72
  }
109
- if (activeEditor instanceof ExtensionsInput) {
110
- const activeGroup = editorGroupsService.activeGroup;
111
- activeGroup.replaceEditors([{
112
- editor: activeEditor,
113
- replacement: instantiationService.createInstance(GettingStartedInput, { selectedCategory: selectedCategory, selectedStep: selectedStep, showWelcome: false })
114
- }]);
115
- }
116
- else {
117
- const options = { selectedCategory: selectedCategory, selectedStep: selectedStep, showWelcome: false, preserveFocus: toSide ?? false, inactive };
118
- editorService.openEditor({
119
- resource: GettingStartedInput.RESOURCE,
120
- options
121
- }, toSide ? SIDE_GROUP : undefined).then((editor) => {
122
- editor?.makeCategoryVisibleWhenAvailable(selectedCategory, selectedStep);
123
- });
124
- }
73
+ const options = { selectedCategory: selectedCategory, selectedStep: selectedStep, showWelcome: false, preserveFocus: toSide ?? false, inactive };
74
+ editorService.openEditor({
75
+ resource: GettingStartedInput.RESOURCE,
76
+ options
77
+ }, toSide ? SIDE_GROUP : undefined);
125
78
  }
126
79
  else {
127
80
  editorService.openEditor({
@@ -132,15 +85,15 @@ registerAction2(class extends Action2 {
132
85
  }
133
86
  });
134
87
  ( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
135
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(11767, "Welcome"))), [
88
+ ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(12039, "Welcome"))), [
136
89
  ( new SyncDescriptor(GettingStartedInput))
137
90
  ]);
138
- const category = ( localize2(11767, "Welcome"));
91
+ const category = ( localize2(12039, "Welcome"));
139
92
  registerAction2(class extends Action2 {
140
93
  constructor() {
141
94
  super({
142
95
  id: 'welcome.goBack',
143
- title: ( localize2(11768, 'Go Back')),
96
+ title: ( localize2(12040, 'Go Back')),
144
97
  category,
145
98
  keybinding: {
146
99
  weight: KeybindingWeight.EditorContrib,
@@ -176,7 +129,7 @@ registerAction2(class extends Action2 {
176
129
  constructor() {
177
130
  super({
178
131
  id: 'welcome.markStepComplete',
179
- title: ( localize(11769, "Mark Step Complete")),
132
+ title: ( localize(12041, "Mark Step Complete")),
180
133
  category,
181
134
  });
182
135
  }
@@ -192,7 +145,7 @@ registerAction2(class extends Action2 {
192
145
  constructor() {
193
146
  super({
194
147
  id: 'welcome.markStepIncomplete',
195
- title: ( localize(11770, "Mark Step Incomplete")),
148
+ title: ( localize(12042, "Mark Step Incomplete")),
196
149
  category,
197
150
  });
198
151
  }
@@ -208,7 +161,7 @@ registerAction2(class extends Action2 {
208
161
  constructor() {
209
162
  super({
210
163
  id: 'welcome.showAllWalkthroughs',
211
- title: ( localize2(11771, 'Open Walkthrough...')),
164
+ title: ( localize2(12043, 'Open Walkthrough...')),
212
165
  category,
213
166
  f1: true,
214
167
  menu: {
@@ -240,7 +193,7 @@ registerAction2(class extends Action2 {
240
193
  quickPick.canSelectMany = false;
241
194
  quickPick.matchOnDescription = true;
242
195
  quickPick.matchOnDetail = true;
243
- quickPick.placeholder = ( localize(11772, 'Select a walkthrough to open'));
196
+ quickPick.placeholder = ( localize(12044, 'Select a walkthrough to open'));
244
197
  quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
245
198
  quickPick.busy = true;
246
199
  disposables.add(quickPick.onDidAccept(() => {
@@ -263,7 +216,7 @@ registerAction2(class extends Action2 {
263
216
  constructor() {
264
217
  super({
265
218
  id: 'welcome.showNewWelcome',
266
- title: ( localize2(11773, 'Open New Welcome Experience')),
219
+ title: ( localize2(12045, 'Open New Welcome Experience')),
267
220
  f1: true,
268
221
  });
269
222
  }
@@ -284,7 +237,7 @@ CommandsRegistry.registerCommand({
284
237
  }
285
238
  });
286
239
  const WorkspacePlatform = ( new RawContextKey('workspacePlatform', undefined, ( localize(
287
- 11774,
240
+ 12046,
288
241
  "The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
289
242
  ))));
290
243
  let WorkspacePlatformContribution = class WorkspacePlatformContribution {
@@ -336,7 +289,7 @@ configurationRegistry.registerConfiguration({
336
289
  type: 'boolean',
337
290
  default: true,
338
291
  description: ( localize(
339
- 11775,
292
+ 12047,
340
293
  "When enabled, an extension's walkthrough will open upon install of the extension."
341
294
  ))
342
295
  },
@@ -345,25 +298,25 @@ configurationRegistry.registerConfiguration({
345
298
  'type': 'string',
346
299
  'enum': ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench', 'terminal'],
347
300
  'enumDescriptions': [
348
- ( localize(11776, "Start without an editor.")),
301
+ ( localize(12048, "Start without an editor.")),
349
302
  ( localize(
350
- 11777,
303
+ 12049,
351
304
  "Open the Welcome page, with content to aid in getting started with VS Code and extensions."
352
305
  )),
353
306
  ( localize(
354
- 11778,
307
+ 12050,
355
308
  "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."
356
309
  )),
357
310
  ( localize(
358
- 11779,
311
+ 12051,
359
312
  "Open a new untitled text file (only applies when opening an empty window)."
360
313
  )),
361
- ( localize(11780, "Open the Welcome page when opening an empty workbench.")),
362
- ( localize(11781, "Open a new terminal in the editor area.")),
314
+ ( localize(12052, "Open the Welcome page when opening an empty workbench.")),
315
+ ( localize(12053, "Open a new terminal in the editor area.")),
363
316
  ],
364
317
  'default': 'welcomePage',
365
318
  'description': ( localize(
366
- 11782,
319
+ 12054,
367
320
  "Controls which editor is shown at startup, if none are restored from the previous session."
368
321
  ))
369
322
  },
@@ -371,8 +324,8 @@ configurationRegistry.registerConfiguration({
371
324
  scope: ConfigurationScope.APPLICATION,
372
325
  type: 'boolean',
373
326
  default: false,
374
- deprecationMessage: ( localize(11783, "Deprecated, use the global `workbench.reduceMotion`.")),
375
- description: ( localize(11784, "When enabled, reduce motion in welcome page."))
327
+ deprecationMessage: ( localize(12055, "Deprecated, use the global `workbench.reduceMotion`.")),
328
+ description: ( localize(12056, "When enabled, reduce motion in welcome page."))
376
329
  }
377
330
  }
378
331
  });
@@ -30,7 +30,6 @@ import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/wor
30
30
  import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
31
31
  import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
32
32
  import { IWorkbenchThemeService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService.service";
33
- import { IGettingStartedExperimentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service";
34
33
  export declare const allWalkthroughsHiddenContext: RawContextKey<boolean>;
35
34
  export declare const inWelcomeContext: RawContextKey<boolean>;
36
35
  export interface IWelcomePageStartEntry {
@@ -67,7 +66,6 @@ export declare class GettingStartedPage extends EditorPane {
67
66
  private readonly webviewService;
68
67
  private readonly workspaceContextService;
69
68
  private readonly accessibilityService;
70
- private readonly gettingStartedExperimentService;
71
69
  static readonly ID = "gettingStartedPage";
72
70
  private editorInput;
73
71
  private inProgressScroll;
@@ -93,12 +91,13 @@ export declare class GettingStartedPage extends EditorPane {
93
91
  private categoriesSlide;
94
92
  private stepsContent;
95
93
  private stepMediaComponent;
94
+ private nextButton;
96
95
  private webview;
97
96
  private layoutMarkdown;
98
97
  private detailsRenderer;
99
98
  private readonly categoriesSlideDisposables;
100
99
  private showFeaturedWalkthrough;
101
- constructor(group: IEditorGroup, commandService: ICommandService, productService: IProductService, keybindingService: IKeybindingService, gettingStartedService: IWalkthroughsService, configurationService: IConfigurationService, telemetryService: ITelemetryService, languageService: ILanguageService, fileService: IFileService, openerService: IOpenerService, themeService: IWorkbenchThemeService, storageService: IStorageService, extensionService: IExtensionService, instantiationService: IInstantiationService, notificationService: INotificationService, groupsService: IEditorGroupsService, contextService: IContextKeyService, quickInputService: IQuickInputService, workspacesService: IWorkspacesService, labelService: ILabelService, hostService: IHostService, webviewService: IWebviewService, workspaceContextService: IWorkspaceContextService, accessibilityService: IAccessibilityService, gettingStartedExperimentService: IGettingStartedExperimentService);
100
+ constructor(group: IEditorGroup, commandService: ICommandService, productService: IProductService, keybindingService: IKeybindingService, gettingStartedService: IWalkthroughsService, configurationService: IConfigurationService, telemetryService: ITelemetryService, languageService: ILanguageService, fileService: IFileService, openerService: IOpenerService, themeService: IWorkbenchThemeService, storageService: IStorageService, extensionService: IExtensionService, instantiationService: IInstantiationService, notificationService: INotificationService, groupsService: IEditorGroupsService, contextService: IContextKeyService, quickInputService: IQuickInputService, workspacesService: IWorkspacesService, labelService: ILabelService, hostService: IHostService, webviewService: IWebviewService, workspaceContextService: IWorkspaceContextService, accessibilityService: IAccessibilityService);
102
101
  private shouldAnimate;
103
102
  private getWalkthroughCompletionStats;
104
103
  setInput(newInput: GettingStartedInput, options: IEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<void>;