@codingame/monaco-vscode-walkthrough-service-override 31.0.0 → 32.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.
- package/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsBanner.js +9 -5
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.js +14 -14
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +26 -22
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +46 -43
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +7 -7
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +37 -37
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +152 -152
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +5 -5
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker_small.js +4 -4
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +2 -2
- 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(
|
|
5
|
+
const titleTranslated = ( localize(15743, "Title"));
|
|
6
6
|
const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
7
7
|
extensionPoint: "walkthroughs",
|
|
8
8
|
jsonSchema: {
|
|
9
9
|
description: ( localize(
|
|
10
|
-
|
|
10
|
+
15744,
|
|
11
11
|
"Contribute walkthroughs to help users getting started with your extension."
|
|
12
12
|
)),
|
|
13
13
|
type: "array",
|
|
@@ -25,27 +25,27 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
25
25
|
properties: {
|
|
26
26
|
id: {
|
|
27
27
|
type: "string",
|
|
28
|
-
description: ( localize(
|
|
28
|
+
description: ( localize(15745, "Unique identifier for this walkthrough."))
|
|
29
29
|
},
|
|
30
30
|
title: {
|
|
31
31
|
type: "string",
|
|
32
|
-
description: ( localize(
|
|
32
|
+
description: ( localize(15746, "Title of walkthrough."))
|
|
33
33
|
},
|
|
34
34
|
icon: {
|
|
35
35
|
type: "string",
|
|
36
36
|
description: ( localize(
|
|
37
|
-
|
|
37
|
+
15747,
|
|
38
38
|
"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."
|
|
39
39
|
))
|
|
40
40
|
},
|
|
41
41
|
description: {
|
|
42
42
|
type: "string",
|
|
43
|
-
description: ( localize(
|
|
43
|
+
description: ( localize(15748, "Description of walkthrough."))
|
|
44
44
|
},
|
|
45
45
|
featuredFor: {
|
|
46
46
|
type: "array",
|
|
47
47
|
description: ( localize(
|
|
48
|
-
|
|
48
|
+
15749,
|
|
49
49
|
"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."
|
|
50
50
|
)),
|
|
51
51
|
items: {
|
|
@@ -55,13 +55,13 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
55
55
|
when: {
|
|
56
56
|
type: "string",
|
|
57
57
|
description: ( localize(
|
|
58
|
-
|
|
58
|
+
15750,
|
|
59
59
|
"Context key expression to control the visibility of this walkthrough."
|
|
60
60
|
))
|
|
61
61
|
},
|
|
62
62
|
steps: {
|
|
63
63
|
type: "array",
|
|
64
|
-
description: ( localize(
|
|
64
|
+
description: ( localize(15751, "Steps to complete as part of this walkthrough.")),
|
|
65
65
|
items: {
|
|
66
66
|
type: "object",
|
|
67
67
|
required: ["id", "title", "media"],
|
|
@@ -78,18 +78,18 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
78
78
|
id: {
|
|
79
79
|
type: "string",
|
|
80
80
|
description: ( localize(
|
|
81
|
-
|
|
81
|
+
15752,
|
|
82
82
|
"Unique identifier for this step. This is used to keep track of which steps have been completed."
|
|
83
83
|
))
|
|
84
84
|
},
|
|
85
85
|
title: {
|
|
86
86
|
type: "string",
|
|
87
|
-
description: ( localize(
|
|
87
|
+
description: ( localize(15753, "Title of step."))
|
|
88
88
|
},
|
|
89
89
|
description: {
|
|
90
90
|
type: "string",
|
|
91
91
|
description: ( localize(
|
|
92
|
-
|
|
92
|
+
15754,
|
|
93
93
|
"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.",
|
|
94
94
|
`[${titleTranslated}](command:myext.command)`,
|
|
95
95
|
`[${titleTranslated}](command:toSide:myext.command)`,
|
|
@@ -98,7 +98,7 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
98
98
|
},
|
|
99
99
|
button: {
|
|
100
100
|
deprecationMessage: ( localize(
|
|
101
|
-
|
|
101
|
+
15755,
|
|
102
102
|
"Deprecated. Use markdown links in the description instead, i.e. {0}, {1}, or {2}",
|
|
103
103
|
`[${titleTranslated}](command:myext.command)`,
|
|
104
104
|
`[${titleTranslated}](command:toSide:myext.command)`,
|
|
@@ -108,7 +108,7 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
108
108
|
media: {
|
|
109
109
|
type: "object",
|
|
110
110
|
description: ( localize(
|
|
111
|
-
|
|
111
|
+
15756,
|
|
112
112
|
"Media to show alongside this step, either an image or markdown content."
|
|
113
113
|
)),
|
|
114
114
|
oneOf: [{
|
|
@@ -116,11 +116,11 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
116
116
|
additionalProperties: false,
|
|
117
117
|
properties: {
|
|
118
118
|
path: {
|
|
119
|
-
deprecationMessage: ( localize(
|
|
119
|
+
deprecationMessage: ( localize(15757, "Deprecated. Please use `image` or `markdown` instead"))
|
|
120
120
|
},
|
|
121
121
|
image: {
|
|
122
122
|
description: ( localize(
|
|
123
|
-
|
|
123
|
+
15758,
|
|
124
124
|
"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."
|
|
125
125
|
)),
|
|
126
126
|
oneOf: [{
|
|
@@ -131,25 +131,25 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
131
131
|
properties: {
|
|
132
132
|
dark: {
|
|
133
133
|
description: ( localize(
|
|
134
|
-
|
|
134
|
+
15759,
|
|
135
135
|
"Path to the image for dark themes, relative to extension directory."
|
|
136
136
|
)),
|
|
137
137
|
type: "string"
|
|
138
138
|
},
|
|
139
139
|
light: {
|
|
140
140
|
description: ( localize(
|
|
141
|
-
|
|
141
|
+
15760,
|
|
142
142
|
"Path to the image for light themes, relative to extension directory."
|
|
143
143
|
)),
|
|
144
144
|
type: "string"
|
|
145
145
|
},
|
|
146
146
|
hc: {
|
|
147
|
-
description: ( localize(
|
|
147
|
+
description: ( localize(15761, "Path to the image for hc themes, relative to extension directory.")),
|
|
148
148
|
type: "string"
|
|
149
149
|
},
|
|
150
150
|
hcLight: {
|
|
151
151
|
description: ( localize(
|
|
152
|
-
|
|
152
|
+
15762,
|
|
153
153
|
"Path to the image for hc light themes, relative to extension directory."
|
|
154
154
|
)),
|
|
155
155
|
type: "string"
|
|
@@ -160,7 +160,7 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
160
160
|
altText: {
|
|
161
161
|
type: "string",
|
|
162
162
|
description: ( localize(
|
|
163
|
-
|
|
163
|
+
15763,
|
|
164
164
|
"Alternate text to display when the image cannot be loaded or in screen readers."
|
|
165
165
|
))
|
|
166
166
|
}
|
|
@@ -171,7 +171,7 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
171
171
|
properties: {
|
|
172
172
|
svg: {
|
|
173
173
|
description: ( localize(
|
|
174
|
-
|
|
174
|
+
15764,
|
|
175
175
|
"Path to an svg, color tokens are supported in variables to support theming to match the workbench."
|
|
176
176
|
)),
|
|
177
177
|
type: "string"
|
|
@@ -179,7 +179,7 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
179
179
|
altText: {
|
|
180
180
|
type: "string",
|
|
181
181
|
description: ( localize(
|
|
182
|
-
|
|
182
|
+
15763,
|
|
183
183
|
"Alternate text to display when the image cannot be loaded or in screen readers."
|
|
184
184
|
))
|
|
185
185
|
}
|
|
@@ -189,10 +189,10 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
189
189
|
additionalProperties: false,
|
|
190
190
|
properties: {
|
|
191
191
|
path: {
|
|
192
|
-
deprecationMessage: ( localize(
|
|
192
|
+
deprecationMessage: ( localize(15757, "Deprecated. Please use `image` or `markdown` instead"))
|
|
193
193
|
},
|
|
194
194
|
markdown: {
|
|
195
|
-
description: ( localize(
|
|
195
|
+
description: ( localize(15765, "Path to the markdown document, relative to extension directory.")),
|
|
196
196
|
type: "string"
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -200,7 +200,7 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
200
200
|
},
|
|
201
201
|
completionEvents: {
|
|
202
202
|
description: ( localize(
|
|
203
|
-
|
|
203
|
+
15766,
|
|
204
204
|
"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."
|
|
205
205
|
)),
|
|
206
206
|
type: "array",
|
|
@@ -209,47 +209,47 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
209
209
|
defaultSnippets: [{
|
|
210
210
|
label: "onCommand",
|
|
211
211
|
description: ( localize(
|
|
212
|
-
|
|
212
|
+
15767,
|
|
213
213
|
"Check off step when a given command is executed anywhere in VS Code."
|
|
214
214
|
)),
|
|
215
215
|
body: "onCommand:${1:commandId}"
|
|
216
216
|
}, {
|
|
217
217
|
label: "onLink",
|
|
218
218
|
description: ( localize(
|
|
219
|
-
|
|
219
|
+
15768,
|
|
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
|
label: "onView",
|
|
225
|
-
description: ( localize(
|
|
225
|
+
description: ( localize(15769, "Check off step when a given view is opened")),
|
|
226
226
|
body: "onView:${2:viewId}"
|
|
227
227
|
}, {
|
|
228
228
|
label: "onSettingChanged",
|
|
229
|
-
description: ( localize(
|
|
229
|
+
description: ( localize(15770, "Check off step when a given setting is changed")),
|
|
230
230
|
body: "onSettingChanged:${2:settingName}"
|
|
231
231
|
}, {
|
|
232
232
|
label: "onContext",
|
|
233
|
-
description: ( localize(
|
|
233
|
+
description: ( localize(15771, "Check off step when a context key expression is true.")),
|
|
234
234
|
body: "onContext:${2:key}"
|
|
235
235
|
}, {
|
|
236
236
|
label: "onExtensionInstalled",
|
|
237
237
|
description: ( localize(
|
|
238
|
-
|
|
238
|
+
15772,
|
|
239
239
|
"Check off step when an extension with the given id is installed. If the extension is already installed, the step will start off checked."
|
|
240
240
|
)),
|
|
241
241
|
body: "onExtensionInstalled:${3:extensionId}"
|
|
242
242
|
}, {
|
|
243
243
|
label: "onStepSelected",
|
|
244
|
-
description: ( localize(
|
|
244
|
+
description: ( localize(15773, "Check off step as soon as it is selected.")),
|
|
245
245
|
body: "onStepSelected"
|
|
246
246
|
}]
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
249
|
doneOn: {
|
|
250
|
-
description: ( localize(
|
|
250
|
+
description: ( localize(15774, "Signal to mark step as complete.")),
|
|
251
251
|
deprecationMessage: ( localize(
|
|
252
|
-
|
|
252
|
+
15775,
|
|
253
253
|
"doneOn is deprecated. By default steps will be checked off when their buttons are clicked, to configure further use completionEvents"
|
|
254
254
|
)),
|
|
255
255
|
type: "object",
|
|
@@ -261,14 +261,14 @@ const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
261
261
|
}],
|
|
262
262
|
properties: {
|
|
263
263
|
"command": {
|
|
264
|
-
description: ( localize(
|
|
264
|
+
description: ( localize(15776, "Mark step done when the specified command is executed.")),
|
|
265
265
|
type: "string"
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
},
|
|
269
269
|
when: {
|
|
270
270
|
type: "string",
|
|
271
|
-
description: ( localize(
|
|
271
|
+
description: ( localize(15777, "Context key expression to control the visibility of this step."))
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
}
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js
CHANGED
|
@@ -6,8 +6,8 @@ import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/th
|
|
|
6
6
|
const gettingStartedUncheckedCodicon = registerIcon(
|
|
7
7
|
"getting-started-step-unchecked",
|
|
8
8
|
Codicon.circleLargeOutline,
|
|
9
|
-
( localize(
|
|
9
|
+
( localize(15778, "Used to represent walkthrough steps which have not been completed"))
|
|
10
10
|
);
|
|
11
|
-
const gettingStartedCheckedCodicon = registerIcon("getting-started-step-checked", Codicon.passFilled, ( localize(
|
|
11
|
+
const gettingStartedCheckedCodicon = registerIcon("getting-started-step-checked", Codicon.passFilled, ( localize(15779, "Used to represent walkthrough steps which have been completed")));
|
|
12
12
|
|
|
13
13
|
export { gettingStartedCheckedCodicon, gettingStartedUncheckedCodicon };
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js
CHANGED
|
@@ -52,7 +52,7 @@ class GettingStartedInput extends EditorInput {
|
|
|
52
52
|
this._returnToCommand = options.returnToCommand;
|
|
53
53
|
}
|
|
54
54
|
getName() {
|
|
55
|
-
return this.walkthroughPageTitle ? ( localize(
|
|
55
|
+
return this.walkthroughPageTitle ? ( localize(15780, "Walkthrough: {0}", this.walkthroughPageTitle)) : ( localize(15781, "Welcome"));
|
|
56
56
|
}
|
|
57
57
|
get selectedCategory() {
|
|
58
58
|
return this._selectedCategory;
|
|
@@ -11,12 +11,12 @@ registerAction2(class extends Action2 {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
super({
|
|
13
13
|
id: "resetGettingStartedProgress",
|
|
14
|
-
category: ( localize2(
|
|
15
|
-
title: ( localize2(
|
|
14
|
+
category: ( localize2(15782, "Developer")),
|
|
15
|
+
title: ( localize2(15783, "Reset Welcome Page Walkthrough Progress")),
|
|
16
16
|
f1: true,
|
|
17
17
|
metadata: {
|
|
18
18
|
description: ( localize2(
|
|
19
|
-
|
|
19
|
+
15784,
|
|
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
|
}
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js
CHANGED
|
@@ -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(
|
|
43
|
+
const BUILT_IN_SOURCE = ( localize(15785, "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 {
|
|
@@ -49,7 +49,7 @@ let StartupPageEditorResolverContribution = class StartupPageEditorResolverContr
|
|
|
49
49
|
this._register(
|
|
50
50
|
editorResolverService.registerEditor(`${GettingStartedInput.RESOURCE.scheme}:/**`, {
|
|
51
51
|
id: GettingStartedInput.ID,
|
|
52
|
-
label: ( localize(
|
|
52
|
+
label: ( localize(15786, "Welcome Page")),
|
|
53
53
|
priority: RegisteredEditorPriority.builtin
|
|
54
54
|
}, {
|
|
55
55
|
singlePerResource: true,
|
|
@@ -184,7 +184,7 @@ let StartupPageRunnerContribution = class StartupPageRunnerContribution extends
|
|
|
184
184
|
locked: true
|
|
185
185
|
}).catch(error => {
|
|
186
186
|
this.notificationService.error(( localize(
|
|
187
|
-
|
|
187
|
+
15787,
|
|
188
188
|
"Could not open markdown preview: {0}.\n\nPlease make sure the markdown extension is enabled.",
|
|
189
189
|
error.message
|
|
190
190
|
)));
|