@codingame/monaco-vscode-walkthrough-service-override 20.4.1 → 21.0.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 (25) hide show
  1. package/package.json +10 -10
  2. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +28 -39
  3. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.d.ts +1 -11
  4. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +49 -441
  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 +23 -1
  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 +4 -4
  12. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.d.ts +1 -3
  13. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +5 -18
  14. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css +0 -456
  15. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +3 -10
  16. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.d.ts +0 -1
  17. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +157 -300
  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 +3 -3
  23. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.d.ts +1 -1
  24. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +6 -5
  25. 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": "20.4.1",
3
+ "version": "21.0.0",
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": "20.4.1",
19
- "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "20.4.1",
20
- "@codingame/monaco-vscode-6883db80-c313-54eb-8fbc-5872c56b0326-common": "20.4.1",
21
- "@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "20.4.1",
22
- "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "20.4.1",
23
- "@codingame/monaco-vscode-api": "20.4.1",
24
- "@codingame/monaco-vscode-cf77987b-b1b7-5359-aaf8-a259c63d9f03-common": "20.4.1",
25
- "@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "20.4.1",
26
- "@codingame/monaco-vscode-f6f55824-df83-5ffc-ac26-50fd4df4fe0e-common": "20.4.1",
18
+ "@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "21.0.0",
19
+ "@codingame/monaco-vscode-23b6fb38-5e58-5886-b34b-27abc4f5df02-common": "21.0.0",
20
+ "@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-common": "21.0.0",
21
+ "@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "21.0.0",
22
+ "@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "21.0.0",
23
+ "@codingame/monaco-vscode-api": "21.0.0",
24
+ "@codingame/monaco-vscode-b6d52a6d-8c8e-51f5-bcd2-1722295e31d9-common": "21.0.0",
25
+ "@codingame/monaco-vscode-cf77987b-b1b7-5359-aaf8-a259c63d9f03-common": "21.0.0",
26
+ "@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "21.0.0",
27
27
  "marked": "14.0.0"
28
28
  },
29
29
  "main": "index.js",
@@ -11,7 +11,7 @@ import { SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/ser
11
11
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
12
12
  import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
13
13
  import { KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
14
- import { EditorPaneDescriptor } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/editor';
14
+ import { EditorPaneDescriptor } from '@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-common/vscode/vs/workbench/browser/editor';
15
15
  import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
16
16
  import { IWalkthroughsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service';
17
17
  import { GettingStartedInput } from './gettingStartedInput.js';
@@ -37,7 +37,7 @@ registerAction2(class extends Action2 {
37
37
  constructor() {
38
38
  super({
39
39
  id: 'workbench.action.openWalkthrough',
40
- title: ( localize2(12290, 'Welcome')),
40
+ title: ( localize2(12509, 'Welcome')),
41
41
  category: Categories.Help,
42
42
  f1: true,
43
43
  menu: {
@@ -46,7 +46,7 @@ registerAction2(class extends Action2 {
46
46
  order: 1,
47
47
  },
48
48
  metadata: {
49
- description: ( localize2(12291, 'Opens a Walkthrough to help you get started in VS Code.'))
49
+ description: ( localize2(12510, 'Opens a Walkthrough to help you get started in VS Code.'))
50
50
  }
51
51
  });
52
52
  }
@@ -70,7 +70,13 @@ registerAction2(class extends Action2 {
70
70
  commandService.executeCommand('walkthroughs.selectStep', selectedStep);
71
71
  return;
72
72
  }
73
- const options = { selectedCategory: selectedCategory, selectedStep: selectedStep, showWelcome: false, preserveFocus: toSide ?? false, inactive };
73
+ let options;
74
+ if (selectedCategory) {
75
+ options = { selectedCategory: selectedCategory, selectedStep: selectedStep, showWelcome: false, preserveFocus: toSide ?? false, inactive };
76
+ }
77
+ else {
78
+ options = { selectedCategory: selectedCategory, selectedStep: selectedStep, showWelcome: true, preserveFocus: toSide ?? false, inactive };
79
+ }
74
80
  editorService.openEditor({
75
81
  resource: GettingStartedInput.RESOURCE,
76
82
  options
@@ -85,15 +91,15 @@ registerAction2(class extends Action2 {
85
91
  }
86
92
  });
87
93
  ( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
88
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(12292, "Welcome"))), [
94
+ ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(12511, "Welcome"))), [
89
95
  ( new SyncDescriptor(GettingStartedInput))
90
96
  ]);
91
- const category = ( localize2(12292, "Welcome"));
97
+ const category = ( localize2(12511, "Welcome"));
92
98
  registerAction2(class extends Action2 {
93
99
  constructor() {
94
100
  super({
95
101
  id: 'welcome.goBack',
96
- title: ( localize2(12293, 'Go Back')),
102
+ title: ( localize2(12512, 'Go Back')),
97
103
  category,
98
104
  keybinding: {
99
105
  weight: KeybindingWeight.EditorContrib,
@@ -129,7 +135,7 @@ registerAction2(class extends Action2 {
129
135
  constructor() {
130
136
  super({
131
137
  id: 'welcome.markStepComplete',
132
- title: ( localize(12294, "Mark Step Complete")),
138
+ title: ( localize(12513, "Mark Step Complete")),
133
139
  category,
134
140
  });
135
141
  }
@@ -145,7 +151,7 @@ registerAction2(class extends Action2 {
145
151
  constructor() {
146
152
  super({
147
153
  id: 'welcome.markStepIncomplete',
148
- title: ( localize(12295, "Mark Step Incomplete")),
154
+ title: ( localize(12514, "Mark Step Incomplete")),
149
155
  category,
150
156
  });
151
157
  }
@@ -161,7 +167,7 @@ registerAction2(class extends Action2 {
161
167
  constructor() {
162
168
  super({
163
169
  id: 'welcome.showAllWalkthroughs',
164
- title: ( localize2(12296, 'Open Walkthrough...')),
170
+ title: ( localize2(12515, 'Open Walkthrough...')),
165
171
  category,
166
172
  f1: true,
167
173
  menu: {
@@ -193,7 +199,7 @@ registerAction2(class extends Action2 {
193
199
  quickPick.canSelectMany = false;
194
200
  quickPick.matchOnDescription = true;
195
201
  quickPick.matchOnDetail = true;
196
- quickPick.placeholder = ( localize(12297, 'Select a walkthrough to open'));
202
+ quickPick.placeholder = ( localize(12516, 'Select a walkthrough to open'));
197
203
  quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
198
204
  quickPick.busy = true;
199
205
  disposables.add(quickPick.onDidAccept(() => {
@@ -212,23 +218,6 @@ registerAction2(class extends Action2 {
212
218
  quickPick.busy = false;
213
219
  }
214
220
  });
215
- registerAction2(class extends Action2 {
216
- constructor() {
217
- super({
218
- id: 'welcome.showNewWelcome',
219
- title: ( localize2(12298, 'Open New Welcome Experience')),
220
- f1: true,
221
- });
222
- }
223
- async run(accessor) {
224
- const editorService = accessor.get(IEditorService);
225
- const options = { selectedCategory: 'NewWelcomeExperience', forceReload: true, showTelemetryNotice: true };
226
- editorService.openEditor({
227
- resource: GettingStartedInput.RESOURCE,
228
- options
229
- });
230
- }
231
- });
232
221
  CommandsRegistry.registerCommand({
233
222
  id: 'welcome.newWorkspaceChat',
234
223
  handler: (accessor, stepID) => {
@@ -237,7 +226,7 @@ CommandsRegistry.registerCommand({
237
226
  }
238
227
  });
239
228
  const WorkspacePlatform = ( new RawContextKey('workspacePlatform', undefined, ( localize(
240
- 12299,
229
+ 12517,
241
230
  "The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
242
231
  ))));
243
232
  let WorkspacePlatformContribution = class WorkspacePlatformContribution {
@@ -289,7 +278,7 @@ configurationRegistry.registerConfiguration({
289
278
  type: 'boolean',
290
279
  default: true,
291
280
  description: ( localize(
292
- 12300,
281
+ 12518,
293
282
  "When enabled, an extension's walkthrough will open upon install of the extension."
294
283
  ))
295
284
  },
@@ -298,25 +287,25 @@ configurationRegistry.registerConfiguration({
298
287
  'type': 'string',
299
288
  'enum': ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench', 'terminal'],
300
289
  'enumDescriptions': [
301
- ( localize(12301, "Start without an editor.")),
290
+ ( localize(12519, "Start without an editor.")),
302
291
  ( localize(
303
- 12302,
292
+ 12520,
304
293
  "Open the Welcome page, with content to aid in getting started with VS Code and extensions."
305
294
  )),
306
295
  ( localize(
307
- 12303,
296
+ 12521,
308
297
  "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."
309
298
  )),
310
299
  ( localize(
311
- 12304,
300
+ 12522,
312
301
  "Open a new untitled text file (only applies when opening an empty window)."
313
302
  )),
314
- ( localize(12305, "Open the Welcome page when opening an empty workbench.")),
315
- ( localize(12306, "Open a new terminal in the editor area.")),
303
+ ( localize(12523, "Open the Welcome page when opening an empty workbench.")),
304
+ ( localize(12524, "Open a new terminal in the editor area.")),
316
305
  ],
317
306
  'default': 'welcomePage',
318
307
  'description': ( localize(
319
- 12307,
308
+ 12525,
320
309
  "Controls which editor is shown at startup, if none are restored from the previous session."
321
310
  ))
322
311
  },
@@ -324,8 +313,8 @@ configurationRegistry.registerConfiguration({
324
313
  scope: ConfigurationScope.APPLICATION,
325
314
  type: 'boolean',
326
315
  default: false,
327
- deprecationMessage: ( localize(12308, "Deprecated, use the global `workbench.reduceMotion`.")),
328
- description: ( localize(12309, "When enabled, reduce motion in welcome page."))
316
+ deprecationMessage: ( localize(12526, "Deprecated, use the global `workbench.reduceMotion`.")),
317
+ description: ( localize(12527, "When enabled, reduce motion in welcome page."))
329
318
  }
330
319
  }
331
320
  });
@@ -20,7 +20,7 @@ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform
20
20
  import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
21
21
  import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
22
22
  import { IWorkspacesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service";
23
- import { EditorPane } from "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/parts/editor/editorPane";
23
+ import { EditorPane } from "@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-common/vscode/vs/workbench/browser/parts/editor/editorPane";
24
24
  import { IEditorOpenContext, IEditorSerializer } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
25
25
  import { IWebviewService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service";
26
26
  import { GettingStartedInput } from "./gettingStartedInput.js";
@@ -83,7 +83,6 @@ export declare class GettingStartedPage extends EditorPane {
83
83
  private buildSlideThrottle;
84
84
  private container;
85
85
  private contextService;
86
- private hasScrolledToFirstCategory;
87
86
  private recentlyOpenedList?;
88
87
  private startList?;
89
88
  private gettingStartedList?;
@@ -91,7 +90,6 @@ export declare class GettingStartedPage extends EditorPane {
91
90
  private categoriesSlide;
92
91
  private stepsContent;
93
92
  private stepMediaComponent;
94
- private nextButton;
95
93
  private webview;
96
94
  private layoutMarkdown;
97
95
  private detailsRenderer;
@@ -130,14 +128,6 @@ export declare class GettingStartedPage extends EditorPane {
130
128
  private runStepCommand;
131
129
  private buildMarkdownDescription;
132
130
  clearInput(): void;
133
- private selectStepByIndex;
134
- private updateNavButtons;
135
- private buildNewCategorySlide;
136
- private navigateWithinMultiStepContainer;
137
- private selectSubStep;
138
- private selectSlideWithPrefix;
139
- private getCurrentSlideIndex;
140
- private selectSlide;
141
131
  private buildCategorySlide;
142
132
  private buildTelemetryFooter;
143
133
  private getKeybindingLabel;