@codingame/monaco-vscode-walkthrough-service-override 37.1.0 → 37.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 (24) hide show
  1. package/index.js +2 -2
  2. package/package.json +6 -3
  3. package/session.d.ts +1 -0
  4. package/session.js +3 -0
  5. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +28 -28
  6. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.d.ts +1 -1
  7. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +73 -66
  8. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.js +6 -6
  9. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +7 -7
  10. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +37 -37
  11. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +2 -2
  12. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedList.js +1 -1
  13. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +3 -3
  14. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +34 -30
  15. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +19 -17
  16. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +151 -151
  17. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +3 -3
  18. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +5 -5
  19. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker_small.js +4 -4
  20. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +3 -3
  21. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +2 -2
  22. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +1 -1
  23. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +4 -4
  24. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +1 -1
package/index.js CHANGED
@@ -2,11 +2,11 @@
2
2
  import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
3
3
  import { WalkthroughsService } from './vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js';
4
4
  import { IWalkthroughsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service';
5
- import './vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js';
6
- import './vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js';
7
5
  import svgAssets from './vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/all.svg.js';
8
6
  import pngAssets from './vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/all.png.js';
9
7
  import { registerAssets } from '@codingame/monaco-vscode-api/assets';
8
+ import './vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js';
9
+ import './vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js';
10
10
 
11
11
  registerAssets(svgAssets);
12
12
  registerAssets(pngAssets);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-walkthrough-service-override",
3
- "version": "37.1.0",
3
+ "version": "37.3.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - walkthrough service-override",
6
6
  "keywords": [],
@@ -15,8 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "37.1.0",
19
- "@codingame/monaco-vscode-katex-common": "37.1.0",
18
+ "@codingame/monaco-vscode-api": "37.3.0",
20
19
  "marked": "14.0.0"
21
20
  },
22
21
  "main": "index.js",
@@ -33,6 +32,10 @@
33
32
  "types": "./vscode/src/*.d.ts",
34
33
  "default": "./vscode/src/*.js"
35
34
  },
35
+ "./session": {
36
+ "types": "./session.d.ts",
37
+ "default": "./session.js"
38
+ },
36
39
  "./*": {
37
40
  "types": "./*.d.ts",
38
41
  "default": "./*.js"
package/session.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
package/session.js ADDED
@@ -0,0 +1,3 @@
1
+
2
+
3
+ throw new Error('Walkthrough service override cannot be used in session mode');
@@ -14,7 +14,7 @@ import { KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyC
14
14
  import { EditorPaneDescriptor } from '@codingame/monaco-vscode-api/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
- import { GettingStartedInput } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput';
17
+ import { GettingStartedInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput';
18
18
  import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
19
19
  import { Extensions, ConfigurationScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
20
20
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
@@ -31,7 +31,7 @@ import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/acti
31
31
  import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
32
32
  import { AccessibleViewRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
33
33
  import { GettingStartedAccessibleView } from './gettingStartedAccessibleView.js';
34
- import { AgentSessionsWelcomePage } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome';
34
+ import { agentSessionsWelcomeCommandId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput';
35
35
  import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
36
36
  import './gettingStartedService._contribution.js';
37
37
  import './gettingStartedIcons.js';
@@ -40,7 +40,7 @@ registerAction2(class extends Action2 {
40
40
  constructor() {
41
41
  super({
42
42
  id: "workbench.action.openWalkthrough",
43
- title: ( localize2(18769, "Welcome")),
43
+ title: ( localize2(20912, "Welcome")),
44
44
  category: Categories.Help,
45
45
  f1: true,
46
46
  menu: {
@@ -49,7 +49,7 @@ registerAction2(class extends Action2 {
49
49
  order: 1
50
50
  },
51
51
  metadata: {
52
- description: ( localize2(18770, "Opens a Walkthrough to help you get started in VS Code."))
52
+ description: ( localize2(20913, "Opens a Walkthrough to help you get started in VS Code."))
53
53
  }
54
54
  });
55
55
  }
@@ -62,7 +62,7 @@ registerAction2(class extends Action2 {
62
62
  const inactive = typeof optionsOrToSide === "object" ? optionsOrToSide.inactive : false;
63
63
  const activeEditor = editorService.activeEditor;
64
64
  if (!walkthroughID && !chatEntitlementService.sentiment.hidden && configurationService.getValue("workbench.startupEditor") === "agentSessionsWelcomePage") {
65
- commandService.executeCommand(AgentSessionsWelcomePage.COMMAND_ID);
65
+ commandService.executeCommand(agentSessionsWelcomeCommandId);
66
66
  return;
67
67
  } else {
68
68
  if (walkthroughID) {
@@ -114,15 +114,15 @@ registerAction2(class extends Action2 {
114
114
  });
115
115
  ( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
116
116
  ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
117
- EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(18771, "Welcome"))),
117
+ EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(20914, "Welcome"))),
118
118
  [( new SyncDescriptor(GettingStartedInput))]
119
119
  );
120
- const category = ( localize2(18771, "Welcome"));
120
+ const category = ( localize2(20914, "Welcome"));
121
121
  registerAction2(class extends Action2 {
122
122
  constructor() {
123
123
  super({
124
124
  id: "welcome.goBack",
125
- title: ( localize2(18772, "Go Back")),
125
+ title: ( localize2(20915, "Go Back")),
126
126
  category,
127
127
  keybinding: {
128
128
  weight: KeybindingWeight.EditorContrib,
@@ -157,7 +157,7 @@ registerAction2(class extends Action2 {
157
157
  constructor() {
158
158
  super({
159
159
  id: "welcome.markStepComplete",
160
- title: ( localize(18773, "Mark Step Complete")),
160
+ title: ( localize(20916, "Mark Step Complete")),
161
161
  category
162
162
  });
163
163
  }
@@ -173,7 +173,7 @@ registerAction2(class extends Action2 {
173
173
  constructor() {
174
174
  super({
175
175
  id: "welcome.markStepIncomplete",
176
- title: ( localize(18774, "Mark Step Incomplete")),
176
+ title: ( localize(20917, "Mark Step Incomplete")),
177
177
  category
178
178
  });
179
179
  }
@@ -189,7 +189,7 @@ registerAction2(class extends Action2 {
189
189
  constructor() {
190
190
  super({
191
191
  id: "welcome.showAllWalkthroughs",
192
- title: ( localize2(18775, "Open Walkthrough...")),
192
+ title: ( localize2(20918, "Open Walkthrough...")),
193
193
  category,
194
194
  f1: true,
195
195
  menu: {
@@ -201,12 +201,12 @@ registerAction2(class extends Action2 {
201
201
  }
202
202
  async getQuickPickItems(contextService, gettingStartedService) {
203
203
  const categories = await gettingStartedService.getWalkthroughs();
204
- return ( categories.filter(c => contextService.contextMatchesRules(c.when)).map(x => ({
204
+ return categories.filter(c => contextService.contextMatchesRules(c.when)).map(x => ({
205
205
  id: x.id,
206
206
  label: x.title,
207
207
  detail: x.description,
208
208
  description: x.source
209
- })));
209
+ }));
210
210
  }
211
211
  async run(accessor) {
212
212
  const commandService = accessor.get(ICommandService);
@@ -219,7 +219,7 @@ registerAction2(class extends Action2 {
219
219
  quickPick.canSelectMany = false;
220
220
  quickPick.matchOnDescription = true;
221
221
  quickPick.matchOnDetail = true;
222
- quickPick.placeholder = ( localize(18776, "Select a walkthrough to open"));
222
+ quickPick.placeholder = ( localize(20919, "Select a walkthrough to open"));
223
223
  quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
224
224
  quickPick.busy = true;
225
225
  disposables.add(quickPick.onDidAccept(() => {
@@ -249,10 +249,10 @@ CommandsRegistry.registerCommand({
249
249
  });
250
250
  }
251
251
  });
252
- const WorkspacePlatform = ( new RawContextKey("workspacePlatform", undefined, ( localize(
253
- 18777,
252
+ const WorkspacePlatform = new RawContextKey("workspacePlatform", undefined, ( localize(
253
+ 20920,
254
254
  "The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
255
- ))));
255
+ )));
256
256
  let WorkspacePlatformContribution = class WorkspacePlatformContribution {
257
257
  static {
258
258
  this.ID = "workbench.contrib.workspacePlatform";
@@ -292,7 +292,7 @@ configurationRegistry.registerConfiguration({
292
292
  type: "boolean",
293
293
  default: true,
294
294
  description: ( localize(
295
- 18778,
295
+ 20921,
296
296
  "When enabled, an extension's walkthrough will open upon install of the extension."
297
297
  ))
298
298
  },
@@ -308,22 +308,22 @@ configurationRegistry.registerConfiguration({
308
308
  "terminal",
309
309
  "agentSessionsWelcomePage"
310
310
  ],
311
- "enumDescriptions": [( localize(18779, "Start without an editor.")), ( localize(
312
- 18780,
311
+ "enumDescriptions": [( localize(20922, "Start without an editor.")), ( localize(
312
+ 20923,
313
313
  "Open the Welcome page, with content to aid in getting started with VS Code and extensions."
314
314
  )), ( localize(
315
- 18781,
315
+ 20924,
316
316
  "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."
317
317
  )), ( localize(
318
- 18782,
318
+ 20925,
319
319
  "Open a new untitled text file (only applies when opening an empty window)."
320
- )), ( localize(18783, "Open the Welcome page when opening an empty workbench.")), ( localize(18784, "Open a new terminal in the editor area.")), ( localize(
321
- 18785,
320
+ )), ( localize(20926, "Open the Welcome page when opening an empty workbench.")), ( localize(20927, "Open a new terminal in the editor area.")), ( localize(
321
+ 20928,
322
322
  "Open the Agent Sessions Welcome page. Will override the workbench secondary side bar visibility settings."
323
323
  ))],
324
324
  "default": "welcomePage",
325
325
  "description": ( localize(
326
- 18786,
326
+ 20929,
327
327
  "Controls which editor is shown at startup, if none are restored from the previous session."
328
328
  )),
329
329
  "experiment": {
@@ -338,8 +338,8 @@ configurationRegistry.registerConfiguration({
338
338
  scope: ConfigurationScope.APPLICATION,
339
339
  type: "boolean",
340
340
  default: false,
341
- deprecationMessage: ( localize(18787, "Deprecated, use the global `workbench.reduceMotion`.")),
342
- description: ( localize(18788, "When enabled, reduce motion in welcome page."))
341
+ deprecationMessage: ( localize(20930, "Deprecated, use the global `workbench.reduceMotion`.")),
342
+ description: ( localize(20931, "When enabled, reduce motion in welcome page."))
343
343
  },
344
344
  "workbench.welcomePage.experimentalOnboarding": {
345
345
  scope: ConfigurationScope.APPLICATION,
@@ -347,7 +347,7 @@ configurationRegistry.registerConfiguration({
347
347
  default: true,
348
348
  tags: ["experimental"],
349
349
  description: ( localize(
350
- 18789,
350
+ 20932,
351
351
  "When enabled, show the new onboarding experience instead of the classic walkthrough on first launch."
352
352
  )),
353
353
  experiment: {
@@ -23,7 +23,7 @@ import { IWorkspacesService } from "@codingame/monaco-vscode-api/vscode/vs/platf
23
23
  import { EditorPane } from "@codingame/monaco-vscode-api/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
- import { GettingStartedEditorOptions, GettingStartedInput } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput";
26
+ import { GettingStartedEditorOptions, GettingStartedInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput";
27
27
  import { IWalkthroughsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service";
28
28
  import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService";
29
29
  import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";