@codingame/monaco-vscode-walkthrough-service-override 24.2.0 → 25.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 (22) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +20 -20
  3. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.d.ts +2 -0
  4. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +80 -42
  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/gettingStartedExtensionPoint.js +37 -37
  8. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +2 -2
  9. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +1 -1
  10. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +3 -3
  11. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +1 -1
  12. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css +43 -0
  13. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +2 -2
  14. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +151 -151
  15. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +3 -3
  16. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +5 -5
  17. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker_small.js +4 -4
  18. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +3 -3
  19. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/media/walkThroughPart.css +1 -0
  20. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +2 -2
  21. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +2 -2
  22. 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(13177, "Title"));
5
+ const titleTranslated = ( localize(13232, "Title"));
6
6
  const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
7
7
  extensionPoint: 'walkthroughs',
8
8
  jsonSchema: {
9
9
  description: ( localize(
10
- 13178,
10
+ 13233,
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(13179, "Unique identifier for this walkthrough.")),
21
+ description: ( localize(13234, "Unique identifier for this walkthrough.")),
22
22
  },
23
23
  title: {
24
24
  type: 'string',
25
- description: ( localize(13180, "Title of walkthrough."))
25
+ description: ( localize(13235, "Title of walkthrough."))
26
26
  },
27
27
  icon: {
28
28
  type: 'string',
29
29
  description: ( localize(
30
- 13181,
30
+ 13236,
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(13182, "Description of walkthrough."))
36
+ description: ( localize(13237, "Description of walkthrough."))
37
37
  },
38
38
  featuredFor: {
39
39
  type: 'array',
40
40
  description: ( localize(
41
- 13183,
41
+ 13238,
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
- 13184,
51
+ 13239,
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(13185, "Steps to complete as part of this walkthrough.")),
57
+ description: ( localize(13240, "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
- 13186,
72
+ 13241,
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(13187, "Title of step."))
78
+ description: ( localize(13242, "Title of step."))
79
79
  },
80
80
  description: {
81
81
  type: 'string',
82
82
  description: ( localize(
83
- 13188,
83
+ 13243,
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
- 13189,
92
+ 13244,
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
- 13190,
102
+ 13245,
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(13191, "Deprecated. Please use `image` or `markdown` instead"))
111
+ deprecationMessage: ( localize(13246, "Deprecated. Please use `image` or `markdown` instead"))
112
112
  },
113
113
  image: {
114
114
  description: ( localize(
115
- 13192,
115
+ 13247,
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
- 13193,
128
+ 13248,
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
- 13194,
135
+ 13249,
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(13195, "Path to the image for hc themes, relative to extension directory.")),
141
+ description: ( localize(13250, "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
- 13196,
146
+ 13251,
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
- 13197,
158
+ 13252,
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
- 13198,
170
+ 13253,
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
- 13197,
178
+ 13252,
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(13191, "Deprecated. Please use `image` or `markdown` instead"))
189
+ deprecationMessage: ( localize(13246, "Deprecated. Please use `image` or `markdown` instead"))
190
190
  },
191
191
  markdown: {
192
- description: ( localize(13199, "Path to the markdown document, relative to extension directory.")),
192
+ description: ( localize(13254, "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
- 13200,
201
+ 13255,
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
- 13201,
211
+ 13256,
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
- 13202,
219
+ 13257,
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(13203, 'Check off step when a given view is opened')),
226
+ description: ( localize(13258, '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(13204, 'Check off step when a given setting is changed')),
231
+ description: ( localize(13259, '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(13205, 'Check off step when a context key expression is true.')),
236
+ description: ( localize(13260, '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
- 13206,
242
+ 13261,
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(13207, 'Check off step as soon as it is selected.')),
249
+ description: ( localize(13262, '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(13208, "Signal to mark step as complete.")),
256
+ description: ( localize(13263, "Signal to mark step as complete.")),
257
257
  deprecationMessage: ( localize(
258
- 13209,
258
+ 13264,
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(13210, "Mark step done when the specified command is executed.")),
266
+ description: ( localize(13265, "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(13211, "Context key expression to control the visibility of this step."))
273
+ description: ( localize(13266, "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(13212, "Used to represent walkthrough steps which have not been completed")));
7
- const gettingStartedCheckedCodicon = registerIcon('getting-started-step-checked', Codicon.passFilled, ( localize(13213, "Used to represent walkthrough steps which have been completed")));
6
+ const gettingStartedUncheckedCodicon = registerIcon('getting-started-step-unchecked', Codicon.circleLargeOutline, ( localize(13267, "Used to represent walkthrough steps which have not been completed")));
7
+ const gettingStartedCheckedCodicon = registerIcon('getting-started-step-checked', Codicon.passFilled, ( localize(13268, "Used to represent walkthrough steps which have been completed")));
8
8
 
9
9
  export { gettingStartedCheckedCodicon, gettingStartedUncheckedCodicon };
@@ -44,7 +44,7 @@ class GettingStartedInput extends EditorInput {
44
44
  this._walkthroughPageTitle = options.walkthroughPageTitle;
45
45
  }
46
46
  getName() {
47
- return this.walkthroughPageTitle ? ( localize(13214, 'Walkthrough: {0}', this.walkthroughPageTitle)) : ( localize(13215, "Welcome"));
47
+ return this.walkthroughPageTitle ? ( localize(13269, 'Walkthrough: {0}', this.walkthroughPageTitle)) : ( localize(13270, "Welcome"));
48
48
  }
49
49
  get selectedCategory() {
50
50
  return this._selectedCategory;
@@ -11,12 +11,12 @@ registerAction2(class extends Action2 {
11
11
  constructor() {
12
12
  super({
13
13
  id: 'resetGettingStartedProgress',
14
- category: ( localize2(13216, "Developer")),
15
- title: ( localize2(13217, "Reset Welcome Page Walkthrough Progress")),
14
+ category: ( localize2(13271, "Developer")),
15
+ title: ( localize2(13272, "Reset Welcome Page Walkthrough Progress")),
16
16
  f1: true,
17
17
  metadata: {
18
18
  description: ( localize2(
19
- 13218,
19
+ 13273,
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
  }
@@ -40,7 +40,7 @@ import { GettingStartedInput } from './gettingStartedInput.js';
40
40
  const HasMultipleNewFileEntries = ( new RawContextKey('hasMultipleNewFileEntries', false));
41
41
  const hiddenEntriesConfigurationKey = 'workbench.welcomePage.hiddenCategories';
42
42
  const walkthroughMetadataConfigurationKey = 'workbench.welcomePage.walkthroughMetadata';
43
- const BUILT_IN_SOURCE = ( localize(13219, "Built-In"));
43
+ const BUILT_IN_SOURCE = ( localize(13274, "Built-In"));
44
44
  const DAYS = 24 * 60 * 60 * 1000;
45
45
  const NEW_WALKTHROUGH_TIME = 7 * DAYS;
46
46
  let WalkthroughsService = class WalkthroughsService extends Disposable {
@@ -229,6 +229,49 @@
229
229
  padding-left: 1em;
230
230
  }
231
231
 
232
+ .monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideCategories .recently-opened li > .button-link {
233
+ flex-shrink: 0;
234
+ }
235
+
236
+ .monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideCategories .recently-opened li > .path {
237
+ flex: 1;
238
+ min-width: 0;
239
+ overflow: hidden;
240
+ text-overflow: ellipsis;
241
+ white-space: nowrap;
242
+ }
243
+
244
+ .monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideCategories .recently-opened-delete-button {
245
+ visibility: hidden;
246
+ position: absolute;
247
+ right: 0;
248
+ top: 50%;
249
+ transform: translateY(-50%);
250
+ padding: 3px;
251
+ border-radius: 5px;
252
+ }
253
+
254
+ .monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideCategories .recently-opened li {
255
+ position: relative;
256
+ display: flex;
257
+ flex-direction: row;
258
+ align-items: center;
259
+ padding-right: 24px;
260
+ }
261
+
262
+ .monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideCategories .recently-opened li:hover .recently-opened-delete-button,
263
+ .monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideCategories .recently-opened li:focus-within .recently-opened-delete-button {
264
+ visibility: visible;
265
+ }
266
+
267
+ .monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideCategories .recently-opened-delete-button:hover {
268
+ background-color: var(--vscode-toolbar-hoverBackground);
269
+ }
270
+
271
+ .monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideCategories .recently-opened-delete-button::before {
272
+ vertical-align: unset;
273
+ }
274
+
232
275
  .monaco-workbench .part.editor > .content .gettingStartedContainer .icon-widget,
233
276
  .monaco-workbench .part.editor > .content .gettingStartedContainer .gettingStartedSlideCategories .featured-icon {
234
277
  font-size: 20px;
@@ -41,7 +41,7 @@ let StartupPageEditorResolverContribution = class StartupPageEditorResolverContr
41
41
  this.instantiationService = instantiationService;
42
42
  this._register(editorResolverService.registerEditor(`${GettingStartedInput.RESOURCE.scheme}:/**`, {
43
43
  id: GettingStartedInput.ID,
44
- label: ( localize(13220, "Welcome Page")),
44
+ label: ( localize(13275, "Welcome Page")),
45
45
  priority: RegisteredEditorPriority.builtin,
46
46
  }, {
47
47
  singlePerResource: true,
@@ -158,7 +158,7 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
158
158
  await Promise.all([
159
159
  this.commandService.executeCommand('markdown.showPreview', null, readmes.filter(isMarkDown), { locked: true }).catch(error => {
160
160
  this.notificationService.error(( localize(
161
- 13221,
161
+ 13276,
162
162
  'Could not open markdown preview: {0}.\n\nPlease make sure the markdown extension is enabled.',
163
163
  error.message
164
164
  )));