@codingame/monaco-vscode-walkthrough-service-override 34.1.3 → 35.0.1
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.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.js +13 -13
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +21 -21
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +39 -39
- 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/startupPage.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +151 -151
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-walkthrough-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "35.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - walkthrough service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
19
|
-
"@codingame/monaco-vscode-katex-common": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "35.0.1",
|
|
19
|
+
"@codingame/monaco-vscode-katex-common": "35.0.1",
|
|
20
20
|
"marked": "14.0.0"
|
|
21
21
|
},
|
|
22
22
|
"main": "index.js",
|
|
@@ -14,7 +14,7 @@ function canShowAgentsBanner(chatEntitlementService) {
|
|
|
14
14
|
}
|
|
15
15
|
function createAgentsBanner(options, commandService, telemetryService) {
|
|
16
16
|
const disposables = ( new DisposableStore());
|
|
17
|
-
const label = options.label ?? ( localize(
|
|
17
|
+
const label = options.label ?? ( localize(5591, "Try out the new Agents window"));
|
|
18
18
|
const button = $("button.agents-banner-button", {
|
|
19
19
|
title: label
|
|
20
20
|
}, $(".codicon.codicon-agent.icon-widget"), $("span.category-title", {}, label));
|
package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.js
CHANGED
|
@@ -152,7 +152,7 @@ let AgentSessionsWelcomePage = class AgentSessionsWelcomePage extends EditorPane
|
|
|
152
152
|
this.container = $(".agentSessionsWelcome", {
|
|
153
153
|
role: "document",
|
|
154
154
|
tabindex: 0,
|
|
155
|
-
"aria-label": ( localize(
|
|
155
|
+
"aria-label": ( localize(16689, "Overview of agent sessions and how to get started."))
|
|
156
156
|
});
|
|
157
157
|
this.contextService = this._register(contextKeyService.createScoped(this.container));
|
|
158
158
|
ChatContextKeys.inAgentSessionsWelcome.bindTo(this.contextService).set(true);
|
|
@@ -229,20 +229,20 @@ let AgentSessionsWelcomePage = class AgentSessionsWelcomePage extends EditorPane
|
|
|
229
229
|
const workspaces = await this.getRecentlyOpenedWorkspaces(false);
|
|
230
230
|
const openEntry = workspaces.length > 0 ? {
|
|
231
231
|
icon: Codicon.folderOpened,
|
|
232
|
-
label: ( localize(
|
|
232
|
+
label: ( localize(16690, "Open Recent...")),
|
|
233
233
|
command: "workbench.action.openRecent"
|
|
234
234
|
} : {
|
|
235
235
|
icon: Codicon.folderOpened,
|
|
236
|
-
label: ( localize(
|
|
236
|
+
label: ( localize(16691, "Open Folder...")),
|
|
237
237
|
command: "workbench.action.files.openFolder"
|
|
238
238
|
};
|
|
239
239
|
const entries = [openEntry, {
|
|
240
240
|
icon: Codicon.newFile,
|
|
241
|
-
label: ( localize(
|
|
241
|
+
label: ( localize(16692, "New file...")),
|
|
242
242
|
command: "welcome.showNewFileEntries"
|
|
243
243
|
}, {
|
|
244
244
|
icon: Codicon.repoClone,
|
|
245
|
-
label: ( localize(
|
|
245
|
+
label: ( localize(16693, "Clone Git Repository...")),
|
|
246
246
|
command: "git.clone"
|
|
247
247
|
}];
|
|
248
248
|
for (const entry of entries) {
|
|
@@ -495,7 +495,7 @@ let AgentSessionsWelcomePage = class AgentSessionsWelcomePage extends EditorPane
|
|
|
495
495
|
const agentsBanner = createAgentsBanner({
|
|
496
496
|
cssClass: "agentSessionsWelcome-agentsBanner",
|
|
497
497
|
source: "agentSessionsWelcome",
|
|
498
|
-
label: ( localize(
|
|
498
|
+
label: ( localize(16694, "View All Sessions")),
|
|
499
499
|
onButtonClick: () => {
|
|
500
500
|
this._closedBy = "viewAllSessions";
|
|
501
501
|
}
|
|
@@ -518,10 +518,10 @@ let AgentSessionsWelcomePage = class AgentSessionsWelcomePage extends EditorPane
|
|
|
518
518
|
const navContainer = append(card, $(".agentSessionsWelcome-walkthroughCard-nav"));
|
|
519
519
|
const prevButton = append(navContainer, $("button.nav-button"));
|
|
520
520
|
prevButton.appendChild(renderIcon(Codicon.chevronLeft));
|
|
521
|
-
prevButton.title = ( localize(
|
|
521
|
+
prevButton.title = ( localize(16695, "Previous"));
|
|
522
522
|
const nextButton = append(navContainer, $("button.nav-button"));
|
|
523
523
|
nextButton.appendChild(renderIcon(Codicon.chevronRight));
|
|
524
|
-
nextButton.title = ( localize(
|
|
524
|
+
nextButton.title = ( localize(16696, "Next"));
|
|
525
525
|
const updateContent = () => {
|
|
526
526
|
const walkthrough = activeWalkthroughs[currentIndex];
|
|
527
527
|
clearNode(iconContainer);
|
|
@@ -601,10 +601,10 @@ let AgentSessionsWelcomePage = class AgentSessionsWelcomePage extends EditorPane
|
|
|
601
601
|
iconContainer.appendChild(renderIcon(Codicon.chatSparkle));
|
|
602
602
|
const content = append(tosCard, $(".agentSessionsWelcome-walkthroughCard-content"));
|
|
603
603
|
const title = append(content, $(".agentSessionsWelcome-walkthroughCard-title"));
|
|
604
|
-
title.textContent = ( localize(
|
|
604
|
+
title.textContent = ( localize(16697, "Try GitHub Copilot for free, no sign-in required!"));
|
|
605
605
|
const desc = append(content, $(".agentSessionsWelcome-walkthroughCard-description"));
|
|
606
606
|
const descriptionMarkdown = ( new MarkdownString(( localize(
|
|
607
|
-
|
|
607
|
+
16698,
|
|
608
608
|
"By continuing, you agree to {0}'s [Terms]({1}) and [Privacy Statement]({2}).",
|
|
609
609
|
providers.default.name,
|
|
610
610
|
this.productService.defaultChatAgent.termsStatementUrl,
|
|
@@ -616,7 +616,7 @@ let AgentSessionsWelcomePage = class AgentSessionsWelcomePage extends EditorPane
|
|
|
616
616
|
desc.appendChild(renderedMarkdown.element);
|
|
617
617
|
const dismissButton = append(tosCard, $("button.agentSessionsWelcome-tosCard-dismiss"));
|
|
618
618
|
dismissButton.appendChild(renderIcon(Codicon.close));
|
|
619
|
-
dismissButton.title = ( localize(
|
|
619
|
+
dismissButton.title = ( localize(16699, "Dismiss"));
|
|
620
620
|
dismissButton.onclick = e => {
|
|
621
621
|
e.stopPropagation();
|
|
622
622
|
dismissNotice();
|
|
@@ -629,7 +629,7 @@ let AgentSessionsWelcomePage = class AgentSessionsWelcomePage extends EditorPane
|
|
|
629
629
|
icon: Codicon.check,
|
|
630
630
|
actionClassName: "agentSessionsWelcome-checkbox",
|
|
631
631
|
isChecked: this.configurationService.getValue(configurationKey) === "agentSessionsWelcomePage",
|
|
632
|
-
title: ( localize(
|
|
632
|
+
title: ( localize(16700, "When checked, this page will be shown on startup.")),
|
|
633
633
|
...getToggleStyles({
|
|
634
634
|
inputActiveOptionBackground: "var(--vscode-descriptionForeground)",
|
|
635
635
|
inputActiveOptionForeground: "var(--vscode-editor-background)",
|
|
@@ -639,7 +639,7 @@ let AgentSessionsWelcomePage = class AgentSessionsWelcomePage extends EditorPane
|
|
|
639
639
|
showOnStartupCheckbox.domNode.id = "showOnStartup";
|
|
640
640
|
const showOnStartupLabel = $("label.caption", {
|
|
641
641
|
for: "showOnStartup"
|
|
642
|
-
}, ( localize(
|
|
642
|
+
}, ( localize(16701, "Show welcome page on startup")));
|
|
643
643
|
const onShowOnStartupChanged = () => {
|
|
644
644
|
if (showOnStartupCheckbox.checked) {
|
|
645
645
|
this.configurationService.updateValue(configurationKey, "agentSessionsWelcomePage");
|
package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.js
CHANGED
|
@@ -46,7 +46,7 @@ class AgentSessionsWelcomeInput extends EditorInput {
|
|
|
46
46
|
this._workspaceKind = options.workspaceKind;
|
|
47
47
|
}
|
|
48
48
|
getName() {
|
|
49
|
-
return localize(
|
|
49
|
+
return localize(16702, "Welcome");
|
|
50
50
|
}
|
|
51
51
|
get showTelemetryNotice() {
|
|
52
52
|
return this._showTelemetryNotice;
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js
CHANGED
|
@@ -40,7 +40,7 @@ registerAction2(class extends Action2 {
|
|
|
40
40
|
constructor() {
|
|
41
41
|
super({
|
|
42
42
|
id: "workbench.action.openWalkthrough",
|
|
43
|
-
title: ( localize2(
|
|
43
|
+
title: ( localize2(16703, "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(
|
|
52
|
+
description: ( localize2(16704, "Opens a Walkthrough to help you get started in VS Code."))
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
}
|
|
@@ -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(
|
|
117
|
+
EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(16705, "Welcome"))),
|
|
118
118
|
[( new SyncDescriptor(GettingStartedInput))]
|
|
119
119
|
);
|
|
120
|
-
const category = ( localize2(
|
|
120
|
+
const category = ( localize2(16705, "Welcome"));
|
|
121
121
|
registerAction2(class extends Action2 {
|
|
122
122
|
constructor() {
|
|
123
123
|
super({
|
|
124
124
|
id: "welcome.goBack",
|
|
125
|
-
title: ( localize2(
|
|
125
|
+
title: ( localize2(16706, "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(
|
|
160
|
+
title: ( localize(16707, "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(
|
|
176
|
+
title: ( localize(16708, "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(
|
|
192
|
+
title: ( localize2(16709, "Open Walkthrough...")),
|
|
193
193
|
category,
|
|
194
194
|
f1: true,
|
|
195
195
|
menu: {
|
|
@@ -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(
|
|
222
|
+
quickPick.placeholder = ( localize(16710, "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(() => {
|
|
@@ -250,7 +250,7 @@ CommandsRegistry.registerCommand({
|
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
const WorkspacePlatform = ( new RawContextKey("workspacePlatform", undefined, ( localize(
|
|
253
|
-
|
|
253
|
+
16711,
|
|
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 {
|
|
@@ -292,7 +292,7 @@ configurationRegistry.registerConfiguration({
|
|
|
292
292
|
type: "boolean",
|
|
293
293
|
default: true,
|
|
294
294
|
description: ( localize(
|
|
295
|
-
|
|
295
|
+
16712,
|
|
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(
|
|
312
|
-
|
|
311
|
+
"enumDescriptions": [( localize(16713, "Start without an editor.")), ( localize(
|
|
312
|
+
16714,
|
|
313
313
|
"Open the Welcome page, with content to aid in getting started with VS Code and extensions."
|
|
314
314
|
)), ( localize(
|
|
315
|
-
|
|
315
|
+
16715,
|
|
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
|
-
|
|
318
|
+
16716,
|
|
319
319
|
"Open a new untitled text file (only applies when opening an empty window)."
|
|
320
|
-
)), ( localize(
|
|
321
|
-
|
|
320
|
+
)), ( localize(16717, "Open the Welcome page when opening an empty workbench.")), ( localize(16718, "Open a new terminal in the editor area.")), ( localize(
|
|
321
|
+
16719,
|
|
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
|
-
|
|
326
|
+
16720,
|
|
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(
|
|
342
|
-
description: ( localize(
|
|
341
|
+
deprecationMessage: ( localize(16721, "Deprecated, use the global `workbench.reduceMotion`.")),
|
|
342
|
+
description: ( localize(16722, "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
|
-
|
|
350
|
+
16723,
|
|
351
351
|
"When enabled, show the new onboarding experience instead of the classic walkthrough on first launch."
|
|
352
352
|
)),
|
|
353
353
|
experiment: {
|
|
@@ -182,7 +182,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
182
182
|
this.container = $(".gettingStartedContainer", {
|
|
183
183
|
role: "document",
|
|
184
184
|
tabindex: 0,
|
|
185
|
-
"aria-label": ( localize(
|
|
185
|
+
"aria-label": ( localize(16724, "Overview of how to get up to speed with your editor."))
|
|
186
186
|
});
|
|
187
187
|
this.stepMediaComponent = $(".getting-started-media");
|
|
188
188
|
this.stepMediaComponent.id = generateUuid();
|
|
@@ -256,17 +256,17 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
256
256
|
badgeelement.parentElement?.setAttribute("aria-checked", "true");
|
|
257
257
|
badgeelement.classList.remove(...ThemeIcon.asClassNameArray(gettingStartedUncheckedCodicon));
|
|
258
258
|
badgeelement.classList.add("complete", ...ThemeIcon.asClassNameArray(gettingStartedCheckedCodicon));
|
|
259
|
-
badgeelement.setAttribute("aria-label", ( localize(
|
|
259
|
+
badgeelement.setAttribute("aria-label", ( localize(16725, "{0}: Completed", step.title)));
|
|
260
260
|
} else {
|
|
261
261
|
badgeelement.setAttribute("aria-checked", "false");
|
|
262
262
|
badgeelement.parentElement?.setAttribute("aria-checked", "false");
|
|
263
263
|
badgeelement.classList.remove("complete", ...ThemeIcon.asClassNameArray(gettingStartedCheckedCodicon));
|
|
264
264
|
badgeelement.classList.add(...ThemeIcon.asClassNameArray(gettingStartedUncheckedCodicon));
|
|
265
|
-
badgeelement.setAttribute("aria-label", ( localize(
|
|
265
|
+
badgeelement.setAttribute("aria-label", ( localize(16726, "{0}: Not completed", step.title)));
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
268
|
if (step.done) {
|
|
269
|
-
status(( localize(
|
|
269
|
+
status(( localize(16727, "Step {0} completed", step.title)));
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
this.updateCategoryProgress();
|
|
@@ -523,7 +523,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
523
523
|
canPickMany: false,
|
|
524
524
|
matchOnDescription: true,
|
|
525
525
|
matchOnDetail: true,
|
|
526
|
-
title: ( localize(
|
|
526
|
+
title: ( localize(16728, "Open Walkthrough..."))
|
|
527
527
|
});
|
|
528
528
|
if (selection) {
|
|
529
529
|
this.runDispatchCommand("selectCategory", selection.id);
|
|
@@ -754,7 +754,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
754
754
|
const themeType = this.themeService.getColorTheme().type;
|
|
755
755
|
const videoPath = media.path[themeType];
|
|
756
756
|
const videoPoster = media.poster ? media.poster[themeType] : undefined;
|
|
757
|
-
const altText = media.altText ? media.altText : ( localize(
|
|
757
|
+
const altText = media.altText ? media.altText : ( localize(16729, "Video for {0}", stepToExpand.title));
|
|
758
758
|
const rawHTML = await this.detailsRenderer.renderVideo(videoPath, videoPoster, altText);
|
|
759
759
|
this.webview.setHtml(rawHTML);
|
|
760
760
|
let isDisposed = false;
|
|
@@ -786,8 +786,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
786
786
|
provideScreenReaderUpdate() {
|
|
787
787
|
if (this.configurationService.getValue(AccessibilityVerbositySettingId.Walkthrough)) {
|
|
788
788
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibleViewAction.id)?.getAriaLabel();
|
|
789
|
-
return kbLabel ? ( localize(
|
|
790
|
-
|
|
789
|
+
return kbLabel ? ( localize(16730, "Inspect this in the accessible view ({0}).\n", kbLabel)) : ( localize(
|
|
790
|
+
16731,
|
|
791
791
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding.\n"
|
|
792
792
|
));
|
|
793
793
|
}
|
|
@@ -856,7 +856,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
856
856
|
this.categoriesSlide = $(".gettingStartedSlideCategories.gettingStartedSlide");
|
|
857
857
|
const prevButton = $("button.prev-button.button-link", {
|
|
858
858
|
"x-dispatch": "scrollPrev"
|
|
859
|
-
}, $("span.scroll-button.codicon.codicon-chevron-left"), $("span.moreText", {}, ( localize(
|
|
859
|
+
}, $("span.scroll-button.codicon.codicon-chevron-left"), $("span.moreText", {}, ( localize(16732, "Go Back"))));
|
|
860
860
|
this.stepsSlide = $(".gettingStartedSlideDetails.gettingStartedSlide", {}, prevButton);
|
|
861
861
|
this.stepsContent = $(".gettingStartedDetailsContent", {});
|
|
862
862
|
this.detailsPageScrollbar = this._register(( new DomScrollableElement(this.stepsContent, {
|
|
@@ -885,13 +885,13 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
885
885
|
icon: Codicon.check,
|
|
886
886
|
actionClassName: "getting-started-checkbox",
|
|
887
887
|
isChecked: this.configurationService.getValue(configurationKey) === "welcomePage",
|
|
888
|
-
title: ( localize(
|
|
888
|
+
title: ( localize(16733, "When checked, this page will be shown on startup.")),
|
|
889
889
|
...defaultToggleStyles
|
|
890
890
|
}));
|
|
891
891
|
showOnStartupCheckbox.domNode.id = "showOnStartup";
|
|
892
892
|
const showOnStartupLabel = $("label.caption", {
|
|
893
893
|
for: "showOnStartup"
|
|
894
|
-
}, ( localize(
|
|
894
|
+
}, ( localize(16734, "Show welcome page on startup")));
|
|
895
895
|
const onShowOnStartupChanged = () => {
|
|
896
896
|
if (showOnStartupCheckbox.checked) {
|
|
897
897
|
this.telemetryService.publicLog2("gettingStarted.ActionExecuted", {
|
|
@@ -921,7 +921,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
921
921
|
".header",
|
|
922
922
|
{},
|
|
923
923
|
$("h1.product-name.caption", {}, this.productService.nameLong),
|
|
924
|
-
$("p.subtitle.description", {}, ( localize(
|
|
924
|
+
$("p.subtitle.description", {}, ( localize(16735, "Editing evolved")))
|
|
925
925
|
);
|
|
926
926
|
const leftColumn = $(".categories-column.categories-column-left", {});
|
|
927
927
|
const rightColumn = $(".categories-column.categories-column-right", {});
|
|
@@ -1044,7 +1044,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1044
1044
|
const link = $("button.button-link");
|
|
1045
1045
|
link.innerText = name;
|
|
1046
1046
|
link.title = fullPath;
|
|
1047
|
-
link.setAttribute("aria-label", ( localize(
|
|
1047
|
+
link.setAttribute("aria-label", ( localize(16736, "Open folder {0} with path {1}", name, parentPath)));
|
|
1048
1048
|
link.addEventListener("click", e => {
|
|
1049
1049
|
this.telemetryService.publicLog2("gettingStarted.ActionExecuted", {
|
|
1050
1050
|
command: "openRecent",
|
|
@@ -1070,8 +1070,8 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1070
1070
|
{
|
|
1071
1071
|
"tabindex": 0,
|
|
1072
1072
|
"role": "button",
|
|
1073
|
-
"title": ( localize(
|
|
1074
|
-
"aria-label": ( localize(
|
|
1073
|
+
"title": ( localize(16737, "Remove from Recently Opened")),
|
|
1074
|
+
"aria-label": ( localize(16738, "Remove {0} from Recently Opened", name))
|
|
1075
1075
|
}
|
|
1076
1076
|
);
|
|
1077
1077
|
const handleDelete = async e => {
|
|
@@ -1090,20 +1090,20 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1090
1090
|
return li;
|
|
1091
1091
|
};
|
|
1092
1092
|
const recentlyOpenedList = this.recentlyOpenedList.value = ( new GettingStartedIndexList({
|
|
1093
|
-
title: ( localize(
|
|
1093
|
+
title: ( localize(16739, "Recent")),
|
|
1094
1094
|
klass: "recently-opened",
|
|
1095
1095
|
limit: 5,
|
|
1096
|
-
empty: $(".empty-recent", {}, ( localize(
|
|
1096
|
+
empty: $(".empty-recent", {}, ( localize(16740, "You have no recent folders,")), $("button.button-link", {
|
|
1097
1097
|
"x-dispatch": "openFolder"
|
|
1098
|
-
}, ( localize(
|
|
1098
|
+
}, ( localize(16741, "open a folder"))), ( localize(16742, "to start."))),
|
|
1099
1099
|
more: $(".more", {}, $("button.button-link", {
|
|
1100
1100
|
"x-dispatch": "showMoreRecents",
|
|
1101
1101
|
title: ( localize(
|
|
1102
|
-
|
|
1102
|
+
16743,
|
|
1103
1103
|
"Show All Recent Folders {0}",
|
|
1104
1104
|
this.getKeybindingLabel(OpenRecentAction.ID)
|
|
1105
1105
|
))
|
|
1106
|
-
}, ( localize(
|
|
1106
|
+
}, ( localize(16744, "More...")))),
|
|
1107
1107
|
renderElement: renderRecent,
|
|
1108
1108
|
contextService: this.contextService
|
|
1109
1109
|
}));
|
|
@@ -1149,7 +1149,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1149
1149
|
title: entry.description + " " + this.getKeybindingLabel(entry.command)
|
|
1150
1150
|
}, this.iconWidgetFor(entry), $("span", {}, entry.title)));
|
|
1151
1151
|
const startList = this.startList.value = ( new GettingStartedIndexList({
|
|
1152
|
-
title: ( localize(
|
|
1152
|
+
title: ( localize(16745, "Start")),
|
|
1153
1153
|
klass: "start-container",
|
|
1154
1154
|
limit: 10,
|
|
1155
1155
|
renderElement: renderStartEntry,
|
|
@@ -1165,9 +1165,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1165
1165
|
const renderNewBadge = (category.newItems || category.newEntry) && !category.isFeatured;
|
|
1166
1166
|
const newBadge = $(".new-badge", {});
|
|
1167
1167
|
if (category.newEntry) {
|
|
1168
|
-
reset(newBadge, $(".new-category", {}, ( localize(
|
|
1168
|
+
reset(newBadge, $(".new-category", {}, ( localize(16746, "New"))));
|
|
1169
1169
|
} else if (category.newItems) {
|
|
1170
|
-
reset(newBadge, $(".new-items", {}, ( localize(
|
|
1170
|
+
reset(newBadge, $(".new-items", {}, ( localize(16747, "Updated"))));
|
|
1171
1171
|
}
|
|
1172
1172
|
const featuredBadge = $(".featured-badge", {});
|
|
1173
1173
|
const descriptionContent = $(".description-content", {});
|
|
@@ -1198,9 +1198,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1198
1198
|
$("a.codicon.codicon-close.hide-category-button", {
|
|
1199
1199
|
"tabindex": 0,
|
|
1200
1200
|
"x-dispatch": "hideCategory:" + category.id,
|
|
1201
|
-
"title": ( localize(
|
|
1201
|
+
"title": ( localize(16748, "Hide")),
|
|
1202
1202
|
"role": "button",
|
|
1203
|
-
"aria-label": ( localize(
|
|
1203
|
+
"aria-label": ( localize(16749, "Hide"))
|
|
1204
1204
|
})
|
|
1205
1205
|
),
|
|
1206
1206
|
descriptionContent,
|
|
@@ -1231,13 +1231,13 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1231
1231
|
return rank;
|
|
1232
1232
|
};
|
|
1233
1233
|
const gettingStartedList = this.gettingStartedList.value = ( new GettingStartedIndexList({
|
|
1234
|
-
title: ( localize(
|
|
1234
|
+
title: ( localize(16750, "Walkthroughs")),
|
|
1235
1235
|
klass: "getting-started",
|
|
1236
1236
|
limit: 5,
|
|
1237
1237
|
footer: $("span.button-link.see-all-walkthroughs", {
|
|
1238
1238
|
"x-dispatch": "seeAllWalkthroughs",
|
|
1239
1239
|
"tabindex": 0
|
|
1240
|
-
}, ( localize(
|
|
1240
|
+
}, ( localize(16744, "More..."))),
|
|
1241
1241
|
renderElement: renderGetttingStaredWalkthrough,
|
|
1242
1242
|
rankElement: rankWalkthrough,
|
|
1243
1243
|
contextService: this.contextService
|
|
@@ -1290,9 +1290,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1290
1290
|
bar.style.width = `${progress}%`;
|
|
1291
1291
|
element.parentElement.classList.toggle("no-progress", stats.stepsComplete === 0);
|
|
1292
1292
|
if (stats.stepsTotal === stats.stepsComplete) {
|
|
1293
|
-
bar.title = ( localize(
|
|
1293
|
+
bar.title = ( localize(16751, "All {0} steps complete!", stats.stepsComplete));
|
|
1294
1294
|
} else {
|
|
1295
|
-
bar.title = ( localize(
|
|
1295
|
+
bar.title = ( localize(16752, "{0} of {1} steps complete", stats.stepsComplete, stats.stepsTotal));
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
1298
1298
|
}
|
|
@@ -1443,7 +1443,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1443
1443
|
if (isCommand) {
|
|
1444
1444
|
const keybinding = this.getKeyBinding(command);
|
|
1445
1445
|
if (keybinding) {
|
|
1446
|
-
const shortcutMessage = $("span.shortcut-message", {}, ( localize(
|
|
1446
|
+
const shortcutMessage = $("span.shortcut-message", {}, ( localize(16753, "Tip: Use keyboard shortcut ")));
|
|
1447
1447
|
container.appendChild(shortcutMessage);
|
|
1448
1448
|
const label = ( new KeybindingLabel(shortcutMessage, OS, {
|
|
1449
1449
|
...defaultKeybindingLabelStyles
|
|
@@ -1549,7 +1549,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1549
1549
|
"x-dispatch": "toggleStepCompletion:" + step.id,
|
|
1550
1550
|
"role": "checkbox",
|
|
1551
1551
|
"aria-checked": step.done ? "true" : "false",
|
|
1552
|
-
"aria-label": step.done ? ( localize(
|
|
1552
|
+
"aria-label": step.done ? ( localize(16725, "{0}: Completed", step.title)) : ( localize(16726, "{0}: Not completed", step.title))
|
|
1553
1553
|
}
|
|
1554
1554
|
);
|
|
1555
1555
|
const container = $(".step-description-container", {
|
|
@@ -1563,11 +1563,11 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1563
1563
|
const stepDescription = $(".step-container", {}, stepTitle, container);
|
|
1564
1564
|
if (step.media.type === "image") {
|
|
1565
1565
|
stepDescription.appendChild($(".image-description", {
|
|
1566
|
-
"aria-label": ( localize(
|
|
1566
|
+
"aria-label": ( localize(16754, "Image showing {0}", step.media.altText))
|
|
1567
1567
|
}));
|
|
1568
1568
|
} else if (step.media.type === "video") {
|
|
1569
1569
|
stepDescription.appendChild($(".video-description", {
|
|
1570
|
-
"aria-label": ( localize(
|
|
1570
|
+
"aria-label": ( localize(16755, "Video showing {0}", step.media.altText))
|
|
1571
1571
|
}));
|
|
1572
1572
|
}
|
|
1573
1573
|
return $("button.getting-started-step", {
|
|
@@ -1592,9 +1592,9 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1592
1592
|
"role": "list"
|
|
1593
1593
|
}, stepListContainer, $(".done-next-container", {}, $("button.button-link.all-done", {
|
|
1594
1594
|
"x-dispatch": "allDone"
|
|
1595
|
-
}, $("span.codicon.codicon-check-all"), ( localize(
|
|
1595
|
+
}, $("span.codicon.codicon-check-all"), ( localize(16756, "Mark Done"))), ...(showNextCategory ? [$("button.button-link.next", {
|
|
1596
1596
|
"x-dispatch": "nextSection"
|
|
1597
|
-
}, ( localize(
|
|
1597
|
+
}, ( localize(16757, "Next Section")), $("span.codicon.codicon-arrow-right"))] : [])));
|
|
1598
1598
|
this.detailsScrollbar.value = ( new DomScrollableElement(stepsContainer, {
|
|
1599
1599
|
className: "steps-container"
|
|
1600
1600
|
}));
|
|
@@ -1617,12 +1617,12 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1617
1617
|
this.registerDispatchListeners();
|
|
1618
1618
|
}
|
|
1619
1619
|
buildTelemetryFooter(parent) {
|
|
1620
|
-
const privacyStatementCopy = ( localize(
|
|
1620
|
+
const privacyStatementCopy = ( localize(16758, "privacy statement"));
|
|
1621
1621
|
const privacyStatementButton = `[${privacyStatementCopy}](command:workbench.action.openPrivacyStatementUrl)`;
|
|
1622
|
-
const optOutCopy = ( localize(
|
|
1622
|
+
const optOutCopy = ( localize(16759, "opt out"));
|
|
1623
1623
|
const optOutButton = `[${optOutCopy}](command:settings.filterByTelemetry)`;
|
|
1624
1624
|
const text = ( localize(
|
|
1625
|
-
|
|
1625
|
+
16760,
|
|
1626
1626
|
"{0} collects usage data. Read our {1} and learn how to {2}.",
|
|
1627
1627
|
this.productService.nameShort,
|
|
1628
1628
|
privacyStatementButton,
|
|
@@ -1697,7 +1697,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1697
1697
|
const prevButton = this.container.querySelector(".prev-button.button-link");
|
|
1698
1698
|
prevButton.style.display = this.editorInput?.showWelcome || this.editorInput?.returnToCommand || this.prevWalkthrough ? "block" : "none";
|
|
1699
1699
|
const moreTextElement = prevButton.querySelector(".moreText");
|
|
1700
|
-
moreTextElement.textContent = firstLaunch ? ( localize(
|
|
1700
|
+
moreTextElement.textContent = firstLaunch ? ( localize(16761, "Welcome")) : ( localize(16732, "Go Back"));
|
|
1701
1701
|
this.container.querySelector(".gettingStartedSlideDetails").querySelectorAll("button").forEach(button => button.disabled = false);
|
|
1702
1702
|
this.container.querySelector(".gettingStartedSlideCategories").querySelectorAll("button").forEach(button => button.disabled = true);
|
|
1703
1703
|
this.container.querySelector(".gettingStartedSlideCategories").querySelectorAll("input").forEach(button => button.disabled = true);
|
|
@@ -130,9 +130,9 @@ class GettingStartedAccessibleProvider extends Disposable {
|
|
|
130
130
|
}
|
|
131
131
|
_getContent(waltkrough, step, includeTitle) {
|
|
132
132
|
const description = ( step.description.map(lt => lt.nodes.filter(node => typeof node === "string"))).join("\n");
|
|
133
|
-
const stepsContent = ( localize(
|
|
133
|
+
const stepsContent = ( localize(16762, "{0}\n{1}", step.title, description));
|
|
134
134
|
if (includeTitle) {
|
|
135
|
-
return [( localize(
|
|
135
|
+
return [( localize(16763, "Title: {0}", waltkrough.title)), ( localize(16764, "Description: {0}", waltkrough.description)), stepsContent].join("\n");
|
|
136
136
|
} else {
|
|
137
137
|
return stepsContent;
|
|
138
138
|
}
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js
CHANGED
|
@@ -12,30 +12,30 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quic
|
|
|
12
12
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
13
13
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
14
14
|
|
|
15
|
-
registerColor("welcomePage.background", null, ( localize(
|
|
15
|
+
registerColor("welcomePage.background", null, ( localize(16765, "Background color for the Welcome page.")));
|
|
16
16
|
registerColor("welcomePage.tileBackground", {
|
|
17
17
|
dark: editorWidgetBackground,
|
|
18
18
|
light: editorWidgetBackground,
|
|
19
19
|
hcDark: "#000",
|
|
20
20
|
hcLight: editorWidgetBackground
|
|
21
|
-
}, ( localize(
|
|
21
|
+
}, ( localize(16766, "Background color for the tiles on the Welcome page.")));
|
|
22
22
|
registerColor("welcomePage.tileHoverBackground", {
|
|
23
23
|
dark: ( lighten(editorWidgetBackground, .2)),
|
|
24
24
|
light: ( darken(editorWidgetBackground, .1)),
|
|
25
25
|
hcDark: null,
|
|
26
26
|
hcLight: null
|
|
27
|
-
}, ( localize(
|
|
27
|
+
}, ( localize(16767, "Hover background color for the tiles on the Welcome.")));
|
|
28
28
|
registerColor("welcomePage.tileBorder", {
|
|
29
29
|
dark: "#ffffff1a",
|
|
30
30
|
light: "#0000001a",
|
|
31
31
|
hcDark: contrastBorder,
|
|
32
32
|
hcLight: contrastBorder
|
|
33
|
-
}, ( localize(
|
|
34
|
-
registerColor("welcomePage.progress.background", inputBackground, ( localize(
|
|
35
|
-
registerColor("welcomePage.progress.foreground", textLinkForeground, ( localize(
|
|
33
|
+
}, ( localize(16768, "Border color for the tiles on the Welcome page.")));
|
|
34
|
+
registerColor("welcomePage.progress.background", inputBackground, ( localize(16769, "Foreground color for the Welcome page progress bars.")));
|
|
35
|
+
registerColor("welcomePage.progress.foreground", textLinkForeground, ( localize(16770, "Background color for the Welcome page progress bars.")));
|
|
36
36
|
registerColor("walkthrough.stepTitle.foreground", {
|
|
37
37
|
light: "#000000",
|
|
38
38
|
dark: "#ffffff",
|
|
39
39
|
hcDark: null,
|
|
40
40
|
hcLight: null
|
|
41
|
-
}, ( localize(
|
|
41
|
+
}, ( localize(16771, "Foreground color of the heading of each walkthrough step")));
|