@codingame/monaco-vscode-walkthrough-service-override 18.4.0 → 19.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 (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
@@ -2,12 +2,12 @@
2
2
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
3
3
  import { ExtensionsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
4
4
 
5
- const titleTranslated = ( localize(11834, "Title"));
5
+ const titleTranslated = ( localize(12108, "Title"));
6
6
  const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
7
7
  extensionPoint: 'walkthroughs',
8
8
  jsonSchema: {
9
9
  description: ( localize(
10
- 11835,
10
+ 12109,
11
11
  "Contribute walkthroughs to help users getting started with your extension."
12
12
  )),
13
13
  type: 'array',
@@ -18,27 +18,27 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
18
18
  properties: {
19
19
  id: {
20
20
  type: 'string',
21
- description: ( localize(11836, "Unique identifier for this walkthrough.")),
21
+ description: ( localize(12110, "Unique identifier for this walkthrough.")),
22
22
  },
23
23
  title: {
24
24
  type: 'string',
25
- description: ( localize(11837, "Title of walkthrough."))
25
+ description: ( localize(12111, "Title of walkthrough."))
26
26
  },
27
27
  icon: {
28
28
  type: 'string',
29
29
  description: ( localize(
30
- 11838,
30
+ 12112,
31
31
  "Relative path to the icon of the walkthrough. The path is relative to the extension location. If not specified, the icon defaults to the extension icon if available."
32
32
  )),
33
33
  },
34
34
  description: {
35
35
  type: 'string',
36
- description: ( localize(11839, "Description of walkthrough."))
36
+ description: ( localize(12113, "Description of walkthrough."))
37
37
  },
38
38
  featuredFor: {
39
39
  type: 'array',
40
40
  description: ( localize(
41
- 11840,
41
+ 12114,
42
42
  "Walkthroughs that match one of these glob patterns appear as 'featured' in workspaces with the specified files. For example, a walkthrough for TypeScript projects might specify `tsconfig.json` here."
43
43
  )),
44
44
  items: {
@@ -48,13 +48,13 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
48
48
  when: {
49
49
  type: 'string',
50
50
  description: ( localize(
51
- 11841,
51
+ 12115,
52
52
  "Context key expression to control the visibility of this walkthrough."
53
53
  ))
54
54
  },
55
55
  steps: {
56
56
  type: 'array',
57
- description: ( localize(11842, "Steps to complete as part of this walkthrough.")),
57
+ description: ( localize(12116, "Steps to complete as part of this walkthrough.")),
58
58
  items: {
59
59
  type: 'object',
60
60
  required: ['id', 'title', 'media'],
@@ -69,18 +69,18 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
69
69
  id: {
70
70
  type: 'string',
71
71
  description: ( localize(
72
- 11843,
72
+ 12117,
73
73
  "Unique identifier for this step. This is used to keep track of which steps have been completed."
74
74
  )),
75
75
  },
76
76
  title: {
77
77
  type: 'string',
78
- description: ( localize(11844, "Title of step."))
78
+ description: ( localize(12118, "Title of step."))
79
79
  },
80
80
  description: {
81
81
  type: 'string',
82
82
  description: ( localize(
83
- 11845,
83
+ 12119,
84
84
  "Description of step. Supports ``preformatted``, __italic__, and **bold** text. Use markdown-style links for commands or external links: {0}, {1}, or {2}. Links on their own line will be rendered as buttons.",
85
85
  `[${titleTranslated}](command:myext.command)`,
86
86
  `[${titleTranslated}](command:toSide:myext.command)`,
@@ -89,7 +89,7 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
89
89
  },
90
90
  button: {
91
91
  deprecationMessage: ( localize(
92
- 11846,
92
+ 12120,
93
93
  "Deprecated. Use markdown links in the description instead, i.e. {0}, {1}, or {2}",
94
94
  `[${titleTranslated}](command:myext.command)`,
95
95
  `[${titleTranslated}](command:toSide:myext.command)`,
@@ -99,7 +99,7 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
99
99
  media: {
100
100
  type: 'object',
101
101
  description: ( localize(
102
- 11847,
102
+ 12121,
103
103
  "Media to show alongside this step, either an image or markdown content."
104
104
  )),
105
105
  oneOf: [
@@ -108,11 +108,11 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
108
108
  additionalProperties: false,
109
109
  properties: {
110
110
  path: {
111
- deprecationMessage: ( localize(11848, "Deprecated. Please use `image` or `markdown` instead"))
111
+ deprecationMessage: ( localize(12122, "Deprecated. Please use `image` or `markdown` instead"))
112
112
  },
113
113
  image: {
114
114
  description: ( localize(
115
- 11849,
115
+ 12123,
116
116
  "Path to an image - or object consisting of paths to light, dark, and hc images - relative to extension directory. Depending on context, the image will be displayed from 400px to 800px wide, with similar bounds on height. To support HIDPI displays, the image will be rendered at 1.5x scaling, for example a 900 physical pixels wide image will be displayed as 600 logical pixels wide."
117
117
  )),
118
118
  oneOf: [
@@ -125,25 +125,25 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
125
125
  properties: {
126
126
  dark: {
127
127
  description: ( localize(
128
- 11850,
128
+ 12124,
129
129
  "Path to the image for dark themes, relative to extension directory."
130
130
  )),
131
131
  type: 'string',
132
132
  },
133
133
  light: {
134
134
  description: ( localize(
135
- 11851,
135
+ 12125,
136
136
  "Path to the image for light themes, relative to extension directory."
137
137
  )),
138
138
  type: 'string',
139
139
  },
140
140
  hc: {
141
- description: ( localize(11852, "Path to the image for hc themes, relative to extension directory.")),
141
+ description: ( localize(12126, "Path to the image for hc themes, relative to extension directory.")),
142
142
  type: 'string',
143
143
  },
144
144
  hcLight: {
145
145
  description: ( localize(
146
- 11853,
146
+ 12127,
147
147
  "Path to the image for hc light themes, relative to extension directory."
148
148
  )),
149
149
  type: 'string',
@@ -155,7 +155,7 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
155
155
  altText: {
156
156
  type: 'string',
157
157
  description: ( localize(
158
- 11854,
158
+ 12128,
159
159
  "Alternate text to display when the image cannot be loaded or in screen readers."
160
160
  ))
161
161
  }
@@ -167,7 +167,7 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
167
167
  properties: {
168
168
  svg: {
169
169
  description: ( localize(
170
- 11855,
170
+ 12129,
171
171
  "Path to an svg, color tokens are supported in variables to support theming to match the workbench."
172
172
  )),
173
173
  type: 'string',
@@ -175,7 +175,7 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
175
175
  altText: {
176
176
  type: 'string',
177
177
  description: ( localize(
178
- 11854,
178
+ 12128,
179
179
  "Alternate text to display when the image cannot be loaded or in screen readers."
180
180
  ))
181
181
  },
@@ -186,10 +186,10 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
186
186
  additionalProperties: false,
187
187
  properties: {
188
188
  path: {
189
- deprecationMessage: ( localize(11848, "Deprecated. Please use `image` or `markdown` instead"))
189
+ deprecationMessage: ( localize(12122, "Deprecated. Please use `image` or `markdown` instead"))
190
190
  },
191
191
  markdown: {
192
- description: ( localize(11856, "Path to the markdown document, relative to extension directory.")),
192
+ description: ( localize(12130, "Path to the markdown document, relative to extension directory.")),
193
193
  type: 'string',
194
194
  }
195
195
  }
@@ -198,7 +198,7 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
198
198
  },
199
199
  completionEvents: {
200
200
  description: ( localize(
201
- 11857,
201
+ 12131,
202
202
  "Events that should trigger this step to become checked off. If empty or not defined, the step will check off when any of the step's buttons or links are clicked; if the step has no buttons or links it will check on when it is selected."
203
203
  )),
204
204
  type: 'array',
@@ -208,7 +208,7 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
208
208
  {
209
209
  label: 'onCommand',
210
210
  description: ( localize(
211
- 11858,
211
+ 12132,
212
212
  'Check off step when a given command is executed anywhere in VS Code.'
213
213
  )),
214
214
  body: 'onCommand:${1:commandId}'
@@ -216,46 +216,46 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
216
216
  {
217
217
  label: 'onLink',
218
218
  description: ( localize(
219
- 11859,
219
+ 12133,
220
220
  'Check off step when a given link is opened via a walkthrough step.'
221
221
  )),
222
222
  body: 'onLink:${2:linkId}'
223
223
  },
224
224
  {
225
225
  label: 'onView',
226
- description: ( localize(11860, 'Check off step when a given view is opened')),
226
+ description: ( localize(12134, 'Check off step when a given view is opened')),
227
227
  body: 'onView:${2:viewId}'
228
228
  },
229
229
  {
230
230
  label: 'onSettingChanged',
231
- description: ( localize(11861, 'Check off step when a given setting is changed')),
231
+ description: ( localize(12135, 'Check off step when a given setting is changed')),
232
232
  body: 'onSettingChanged:${2:settingName}'
233
233
  },
234
234
  {
235
235
  label: 'onContext',
236
- description: ( localize(11862, 'Check off step when a context key expression is true.')),
236
+ description: ( localize(12136, 'Check off step when a context key expression is true.')),
237
237
  body: 'onContext:${2:key}'
238
238
  },
239
239
  {
240
240
  label: 'onExtensionInstalled',
241
241
  description: ( localize(
242
- 11863,
242
+ 12137,
243
243
  'Check off step when an extension with the given id is installed. If the extension is already installed, the step will start off checked.'
244
244
  )),
245
245
  body: 'onExtensionInstalled:${3:extensionId}'
246
246
  },
247
247
  {
248
248
  label: 'onStepSelected',
249
- description: ( localize(11864, 'Check off step as soon as it is selected.')),
249
+ description: ( localize(12138, 'Check off step as soon as it is selected.')),
250
250
  body: 'onStepSelected'
251
251
  },
252
252
  ]
253
253
  }
254
254
  },
255
255
  doneOn: {
256
- description: ( localize(11865, "Signal to mark step as complete.")),
256
+ description: ( localize(12139, "Signal to mark step as complete.")),
257
257
  deprecationMessage: ( localize(
258
- 11866,
258
+ 12140,
259
259
  "doneOn is deprecated. By default steps will be checked off when their buttons are clicked, to configure further use completionEvents"
260
260
  )),
261
261
  type: 'object',
@@ -263,14 +263,14 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
263
263
  defaultSnippets: [{ 'body': { command: '$1' } }],
264
264
  properties: {
265
265
  'command': {
266
- description: ( localize(11867, "Mark step done when the specified command is executed.")),
266
+ description: ( localize(12141, "Mark step done when the specified command is executed.")),
267
267
  type: 'string'
268
268
  }
269
269
  },
270
270
  },
271
271
  when: {
272
272
  type: 'string',
273
- description: ( localize(11868, "Context key expression to control the visibility of this step."))
273
+ description: ( localize(12142, "Context key expression to control the visibility of this step."))
274
274
  }
275
275
  }
276
276
  }
@@ -3,7 +3,7 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
3
3
  import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
4
4
  import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
5
5
 
6
- const gettingStartedUncheckedCodicon = registerIcon('getting-started-step-unchecked', Codicon.circleLargeOutline, ( localize(11869, "Used to represent walkthrough steps which have not been completed")));
7
- const gettingStartedCheckedCodicon = registerIcon('getting-started-step-checked', Codicon.passFilled, ( localize(11870, "Used to represent walkthrough steps which have been completed")));
6
+ const gettingStartedUncheckedCodicon = registerIcon('getting-started-step-unchecked', Codicon.circleLargeOutline, ( localize(12143, "Used to represent walkthrough steps which have not been completed")));
7
+ const gettingStartedCheckedCodicon = registerIcon('getting-started-step-checked', Codicon.passFilled, ( localize(12144, "Used to represent walkthrough steps which have been completed")));
8
8
 
9
9
  export { gettingStartedCheckedCodicon, gettingStartedUncheckedCodicon };
@@ -47,7 +47,7 @@ class GettingStartedInput extends EditorInput {
47
47
  this._walkthroughPageTitle = options.walkthroughPageTitle;
48
48
  }
49
49
  getName() {
50
- return this.walkthroughPageTitle ? ( localize(11871, 'Walkthrough: {0}', this.walkthroughPageTitle)) : ( localize(11872, "Welcome"));
50
+ return this.walkthroughPageTitle ? ( localize(12145, 'Walkthrough: {0}', this.walkthroughPageTitle)) : ( localize(12146, "Welcome"));
51
51
  }
52
52
  get selectedCategory() {
53
53
  return this._selectedCategory;
@@ -11,12 +11,12 @@ registerAction2(class extends Action2 {
11
11
  constructor() {
12
12
  super({
13
13
  id: 'resetGettingStartedProgress',
14
- category: ( localize2(11873, "Developer")),
15
- title: ( localize2(11874, "Reset Welcome Page Walkthrough Progress")),
14
+ category: ( localize2(12147, "Developer")),
15
+ title: ( localize2(12148, "Reset Welcome Page Walkthrough Progress")),
16
16
  f1: true,
17
17
  metadata: {
18
18
  description: ( localize2(
19
- 11875,
19
+ 12149,
20
20
  'Reset the progress of all Walkthrough steps on the Welcome Page to make them appear as if they are being viewed for the first time, providing a fresh start to the getting started experience.'
21
21
  )),
22
22
  }
@@ -18,6 +18,7 @@ import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platfo
18
18
  import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
19
19
  import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
20
20
  import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service";
21
+ import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
21
22
  import { IWalkthroughsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service";
22
23
  export declare const HasMultipleNewFileEntries: RawContextKey<boolean>;
23
24
  export declare const hiddenEntriesConfigurationKey = "workbench.welcomePage.hiddenCategories";
@@ -121,6 +122,7 @@ export declare class WalkthroughsService extends Disposable implements IWalkthro
121
122
  private readonly tasExperimentService;
122
123
  private readonly productService;
123
124
  private readonly layoutService;
125
+ private readonly editorService;
124
126
  readonly _serviceBrand: undefined;
125
127
  private readonly _onDidAddWalkthrough;
126
128
  readonly onDidAddWalkthrough: Event<IResolvedWalkthrough>;
@@ -141,7 +143,7 @@ export declare class WalkthroughsService extends Disposable implements IWalkthro
141
143
  private stepCompletionContextKeyExpressions;
142
144
  private stepCompletionContextKeys;
143
145
  private metadata;
144
- constructor(storageService: IStorageService, commandService: ICommandService, instantiationService: IInstantiationService, workspaceContextService: IWorkspaceContextService, contextService: IContextKeyService, userDataSyncEnablementService: IUserDataSyncEnablementService, configurationService: IConfigurationService, extensionManagementService: IExtensionManagementService, hostService: IHostService, viewsService: IViewsService, telemetryService: ITelemetryService, tasExperimentService: IWorkbenchAssignmentService, productService: IProductService, layoutService: IWorkbenchLayoutService);
146
+ constructor(storageService: IStorageService, commandService: ICommandService, instantiationService: IInstantiationService, workspaceContextService: IWorkspaceContextService, contextService: IContextKeyService, userDataSyncEnablementService: IUserDataSyncEnablementService, configurationService: IConfigurationService, extensionManagementService: IExtensionManagementService, hostService: IHostService, viewsService: IViewsService, telemetryService: ITelemetryService, tasExperimentService: IWorkbenchAssignmentService, productService: IProductService, layoutService: IWorkbenchLayoutService, editorService: IEditorService);
145
147
  private registerWalkthroughs;
146
148
  private initCompletionEventListeners;
147
149
  markWalkthroughOpened(id: string): void;
@@ -35,16 +35,18 @@ import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform
35
35
  import { asWebviewUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/common/webview';
36
36
  import { Parts } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService';
37
37
  import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
38
- import { extensionDefaultIcon } from '@codingame/monaco-vscode-f054d965-ed28-53b8-b046-94e93188218c-common/vscode/vs/workbench/services/extensionManagement/common/extensionsIcons';
38
+ import { extensionDefaultIcon } from '@codingame/monaco-vscode-516ccb00-d5b9-5317-baf0-fcc96e99669a-common/vscode/vs/workbench/services/extensionManagement/common/extensionsIcons';
39
+ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
40
+ import { GettingStartedInput } from './gettingStartedInput.js';
39
41
 
40
42
  const HasMultipleNewFileEntries = ( new RawContextKey('hasMultipleNewFileEntries', false));
41
43
  const hiddenEntriesConfigurationKey = 'workbench.welcomePage.hiddenCategories';
42
44
  const walkthroughMetadataConfigurationKey = 'workbench.welcomePage.walkthroughMetadata';
43
- const BUILT_IN_SOURCE = ( localize(11876, "Built-In"));
45
+ const BUILT_IN_SOURCE = ( localize(12150, "Built-In"));
44
46
  const DAYS = 24 * 60 * 60 * 1000;
45
47
  const NEW_WALKTHROUGH_TIME = 7 * DAYS;
46
48
  let WalkthroughsService = class WalkthroughsService extends Disposable {
47
- constructor(storageService, commandService, instantiationService, workspaceContextService, contextService, userDataSyncEnablementService, configurationService, extensionManagementService, hostService, viewsService, telemetryService, tasExperimentService, productService, layoutService) {
49
+ constructor(storageService, commandService, instantiationService, workspaceContextService, contextService, userDataSyncEnablementService, configurationService, extensionManagementService, hostService, viewsService, telemetryService, tasExperimentService, productService, layoutService, editorService) {
48
50
  super();
49
51
  this.storageService = storageService;
50
52
  this.commandService = commandService;
@@ -60,6 +62,7 @@ let WalkthroughsService = class WalkthroughsService extends Disposable {
60
62
  this.tasExperimentService = tasExperimentService;
61
63
  this.productService = productService;
62
64
  this.layoutService = layoutService;
65
+ this.editorService = editorService;
63
66
  this._onDidAddWalkthrough = ( new Emitter());
64
67
  this.onDidAddWalkthrough = this._onDidAddWalkthrough.event;
65
68
  this._onDidRemoveWalkthrough = ( new Emitter());
@@ -321,6 +324,10 @@ let WalkthroughsService = class WalkthroughsService extends Disposable {
321
324
  const hadLastFoucs = await this.hostService.hadLastFocus();
322
325
  if (hadLastFoucs && sectionToOpen && this.configurationService.getValue('workbench.welcomePage.walkthroughs.openOnInstall')) {
323
326
  this.telemetryService.publicLog2('gettingStarted.didAutoOpenWalkthrough', { id: sectionToOpen });
327
+ const activeEditor = this.editorService.activeEditor;
328
+ if (activeEditor instanceof GettingStartedInput) {
329
+ this.commandService.executeCommand('workbench.action.keepEditor');
330
+ }
324
331
  this.commandService.executeCommand('workbench.action.openWalkthrough', sectionToOpen, {
325
332
  inactive: this.layoutService.hasFocus(Parts.EDITOR_PART)
326
333
  });
@@ -541,7 +548,8 @@ WalkthroughsService = ( __decorate([
541
548
  ( __param(10, ITelemetryService)),
542
549
  ( __param(11, IWorkbenchAssignmentService)),
543
550
  ( __param(12, IProductService)),
544
- ( __param(13, IWorkbenchLayoutService))
551
+ ( __param(13, IWorkbenchLayoutService)),
552
+ ( __param(14, IEditorService))
545
553
  ], WalkthroughsService));
546
554
  const parseDescription = (desc) => ( desc.split('\n').filter(x => x).map(text => parseLinkedText(text)));
547
555
  const convertInternalMediaPathToFileURI = (path) => path.startsWith('https://')
@@ -507,9 +507,22 @@
507
507
  justify-content: center;
508
508
  }
509
509
  .monaco-workbench .part.editor > .content .gettingStartedContainer.width-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.image > .getting-started-media,
510
- .monaco-workbench .part.editor > .content .gettingStartedContainer.width-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.video > .getting-started-media {
510
+ .monaco-workbench .part.editor > .content .gettingStartedContainer.width-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.video > .getting-started-media,
511
+ .monaco-workbench .part.editor > .content .gettingStartedContainer.width-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.markdown > .getting-started-media,
512
+ .monaco-workbench .part.editor > .content .gettingStartedContainer.width-semi-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.image > .getting-started-media,
513
+ .monaco-workbench .part.editor > .content .gettingStartedContainer.width-semi-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.video > .getting-started-media,
514
+ .monaco-workbench .part.editor > .content .gettingStartedContainer.width-semi-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.markdown > .getting-started-media {
511
515
  display: none;
512
516
  }
517
+ .monaco-workbench .part.editor > .content .gettingStartedContainer.width-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.image,
518
+ .monaco-workbench .part.editor > .content .gettingStartedContainer.width-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.video,
519
+ .monaco-workbench .part.editor > .content .gettingStartedContainer.width-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.markdown,
520
+ .monaco-workbench .part.editor > .content .gettingStartedContainer.width-semi-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.image,
521
+ .monaco-workbench .part.editor > .content .gettingStartedContainer.width-semi-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.video,
522
+ .monaco-workbench .part.editor > .content .gettingStartedContainer.width-semi-constrained .gettingStartedSlideDetails .gettingStartedDetailsContent.markdown {
523
+ grid-template-areas: "back" "title" "steps" "footer";
524
+ grid-template-rows: 30px max-content 1fr auto;
525
+ }
513
526
  .monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideDetails .gettingStartedDetailsContent > .getting-started-media > video {
514
527
  max-width: 100%;
515
528
  max-height: 100%;
@@ -15,6 +15,7 @@ import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform
15
15
  import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
16
16
  import { IEditorResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service";
17
17
  import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
18
+ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
18
19
  export declare const restoreWalkthroughsConfigurationKey = "workbench.welcomePage.restorableWalkthroughs";
19
20
  export type RestoreWalkthroughsConfigurationValue = {
20
21
  folder: string;
@@ -40,8 +41,9 @@ export declare class StartupPageRunnerContribution extends Disposable implements
40
41
  private readonly storageService;
41
42
  private readonly logService;
42
43
  private readonly notificationService;
44
+ private readonly contextKeyService;
43
45
  static readonly ID = "workbench.contrib.startupPageRunner";
44
- constructor(configurationService: IConfigurationService, editorService: IEditorService, workingCopyBackupService: IWorkingCopyBackupService, fileService: IFileService, contextService: IWorkspaceContextService, lifecycleService: ILifecycleService, layoutService: IWorkbenchLayoutService, productService: IProductService, commandService: ICommandService, environmentService: IWorkbenchEnvironmentService, storageService: IStorageService, logService: ILogService, notificationService: INotificationService);
46
+ constructor(configurationService: IConfigurationService, editorService: IEditorService, workingCopyBackupService: IWorkingCopyBackupService, fileService: IFileService, contextService: IWorkspaceContextService, lifecycleService: ILifecycleService, layoutService: IWorkbenchLayoutService, productService: IProductService, commandService: ICommandService, environmentService: IWorkbenchEnvironmentService, storageService: IStorageService, logService: ILogService, notificationService: INotificationService, contextKeyService: IContextKeyService);
45
47
  private run;
46
48
  private tryOpenWalkthroughForFolder;
47
49
  private openReadme;
@@ -28,6 +28,9 @@ import { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs
28
28
  import { IEditorResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service';
29
29
  import { TerminalCommandId } from '@codingame/monaco-vscode-7bbc9e7d-eeae-55fc-8bf9-dc2f66e0dc73-common/vscode/vs/workbench/contrib/terminal/common/terminal';
30
30
  import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
31
+ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
32
+ import { startupExpContext, StartupExperimentGroup } from '@codingame/monaco-vscode-516ccb00-d5b9-5317-baf0-fcc96e99669a-common/vscode/vs/workbench/services/coreExperimentation/common/coreExperimentationService';
33
+ import { AuxiliaryBarMaximizedContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
31
34
 
32
35
  const restoreWalkthroughsConfigurationKey = 'workbench.welcomePage.restorableWalkthroughs';
33
36
  const configurationKey = 'workbench.startupEditor';
@@ -42,7 +45,7 @@ let StartupPageEditorResolverContribution = class StartupPageEditorResolverContr
42
45
  this._register(disposables);
43
46
  editorResolverService.registerEditor(`${GettingStartedInput.RESOURCE.scheme}:/**`, {
44
47
  id: GettingStartedInput.ID,
45
- label: ( localize(11877, "Welcome Page")),
48
+ label: ( localize(12151, "Welcome Page")),
46
49
  priority: RegisteredEditorPriority.builtin,
47
50
  }, {
48
51
  singlePerResource: false,
@@ -66,7 +69,7 @@ StartupPageEditorResolverContribution = ( __decorate([
66
69
  ], StartupPageEditorResolverContribution));
67
70
  let StartupPageRunnerContribution = class StartupPageRunnerContribution extends Disposable {
68
71
  static { this.ID = 'workbench.contrib.startupPageRunner'; }
69
- constructor(configurationService, editorService, workingCopyBackupService, fileService, contextService, lifecycleService, layoutService, productService, commandService, environmentService, storageService, logService, notificationService) {
72
+ constructor(configurationService, editorService, workingCopyBackupService, fileService, contextService, lifecycleService, layoutService, productService, commandService, environmentService, storageService, logService, notificationService, contextKeyService) {
70
73
  super();
71
74
  this.configurationService = configurationService;
72
75
  this.editorService = editorService;
@@ -81,6 +84,7 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
81
84
  this.storageService = storageService;
82
85
  this.logService = logService;
83
86
  this.notificationService = notificationService;
87
+ this.contextKeyService = contextKeyService;
84
88
  this.run().then(undefined, onUnexpectedError);
85
89
  this._register(this.editorService.onDidCloseEditor((e) => {
86
90
  if (e.editor instanceof GettingStartedInput) {
@@ -91,6 +95,9 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
91
95
  }
92
96
  async run() {
93
97
  await this.lifecycleService.when(LifecyclePhase.Restored);
98
+ if (AuxiliaryBarMaximizedContext.getValue(this.contextKeyService)) {
99
+ return;
100
+ }
94
101
  if (this.productService.enableTelemetry
95
102
  && this.productService.showTelemetryOptOut
96
103
  && getTelemetryLevel(this.configurationService) !== TelemetryLevel.NONE
@@ -113,6 +120,12 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
113
120
  await this.openReadme();
114
121
  }
115
122
  else if (startupEditorSetting.value === 'welcomePage' || startupEditorSetting.value === 'welcomePageInEmptyWorkbench') {
123
+ if (this.storageService.isNew(StorageScope.APPLICATION)) {
124
+ const startupExpValue = startupExpContext.getValue(this.contextKeyService);
125
+ if (startupExpValue === StartupExperimentGroup.MaximizedChat || startupExpValue === StartupExperimentGroup.SplitEmptyEditorChat) {
126
+ return;
127
+ }
128
+ }
116
129
  await this.openGettingStarted(true);
117
130
  }
118
131
  else if (startupEditorSetting.value === 'terminal') {
@@ -160,7 +173,7 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
160
173
  await Promise.all([
161
174
  this.commandService.executeCommand('markdown.showPreview', null, readmes.filter(isMarkDown), { locked: true }).catch(error => {
162
175
  this.notificationService.error(( localize(
163
- 11878,
176
+ 12152,
164
177
  'Could not open markdown preview: {0}.\n\nPlease make sure the markdown extension is enabled.',
165
178
  error.message
166
179
  )));
@@ -201,7 +214,8 @@ StartupPageRunnerContribution = ( __decorate([
201
214
  ( __param(9, IWorkbenchEnvironmentService)),
202
215
  ( __param(10, IStorageService)),
203
216
  ( __param(11, ILogService)),
204
- ( __param(12, INotificationService))
217
+ ( __param(12, INotificationService)),
218
+ ( __param(13, IContextKeyService))
205
219
  ], StartupPageRunnerContribution));
206
220
  function isStartupPageEnabled(configurationService, contextService, environmentService, logService) {
207
221
  if (environmentService.skipWelcome) {