@codingame/monaco-vscode-walkthrough-service-override 16.1.0 → 17.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 +10 -10
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +56 -24
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.d.ts +10 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +418 -53
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.js +3 -3
- 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.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +4 -3
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css +375 -14
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +9 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +267 -168
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/ai-powered-suggestions.svg +63 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/all.svg.js +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/multi-file-edits.svg +376 -512
- 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.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker_small.js +31 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +3 -3
- 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": "17.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - walkthrough service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
18
|
+
"@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common": "17.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "17.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-7443a901-21f6-577a-9674-42893b997ee0-common": "17.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-7bbc9e7d-eeae-55fc-8bf9-dc2f66e0dc73-common": "17.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-common": "17.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "17.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-api": "17.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-c8227507-8e59-53d6-b50b-71c0ab384cf4-common": "17.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common": "17.0.0",
|
|
27
27
|
"marked": "14.0.0"
|
|
28
28
|
},
|
|
29
29
|
"main": "index.js",
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js
CHANGED
|
@@ -12,7 +12,7 @@ import { SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/ser
|
|
|
12
12
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
13
13
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
14
14
|
import { KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
15
|
-
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-
|
|
15
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/workbench/browser/editor';
|
|
16
16
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
17
17
|
import { IWalkthroughsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service';
|
|
18
18
|
import { GettingStartedInput } from './gettingStartedInput.js';
|
|
@@ -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(11482, '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(11483, 'Opens a Walkthrough to help you get started in VS Code.'))
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
}
|
|
@@ -72,7 +72,7 @@ registerAction2(class extends Action2 {
|
|
|
72
72
|
if (!selectedCategory && !selectedStep) {
|
|
73
73
|
editorService.openEditor({
|
|
74
74
|
resource: GettingStartedInput.RESOURCE,
|
|
75
|
-
options: { preserveFocus: toSide ?? false, inactive }
|
|
75
|
+
options: { preserveFocus: toSide ?? false, inactive, forceReload: true }
|
|
76
76
|
}, toSide ? SIDE_GROUP : undefined);
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
@@ -80,6 +80,9 @@ registerAction2(class extends Action2 {
|
|
|
80
80
|
if (group.activeEditor instanceof GettingStartedInput) {
|
|
81
81
|
const activeEditor = group.activeEditor;
|
|
82
82
|
activeEditor.showWelcome = false;
|
|
83
|
+
if (activeEditor.selectedCategory && activeEditor.selectedStep) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
83
86
|
group.activeEditorPane.makeCategoryVisibleWhenAvailable(selectedCategory, selectedStep);
|
|
84
87
|
return;
|
|
85
88
|
}
|
|
@@ -129,15 +132,15 @@ registerAction2(class extends Action2 {
|
|
|
129
132
|
}
|
|
130
133
|
});
|
|
131
134
|
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
|
|
132
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(
|
|
135
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(11484, "Welcome"))), [
|
|
133
136
|
( new SyncDescriptor(GettingStartedInput))
|
|
134
137
|
]);
|
|
135
|
-
const category = ( localize2(
|
|
138
|
+
const category = ( localize2(11484, "Welcome"));
|
|
136
139
|
registerAction2(class extends Action2 {
|
|
137
140
|
constructor() {
|
|
138
141
|
super({
|
|
139
142
|
id: 'welcome.goBack',
|
|
140
|
-
title: ( localize2(
|
|
143
|
+
title: ( localize2(11485, 'Go Back')),
|
|
141
144
|
category,
|
|
142
145
|
keybinding: {
|
|
143
146
|
weight: KeybindingWeight.EditorContrib,
|
|
@@ -173,7 +176,7 @@ registerAction2(class extends Action2 {
|
|
|
173
176
|
constructor() {
|
|
174
177
|
super({
|
|
175
178
|
id: 'welcome.markStepComplete',
|
|
176
|
-
title: ( localize(
|
|
179
|
+
title: ( localize(11486, "Mark Step Complete")),
|
|
177
180
|
category,
|
|
178
181
|
});
|
|
179
182
|
}
|
|
@@ -189,7 +192,7 @@ registerAction2(class extends Action2 {
|
|
|
189
192
|
constructor() {
|
|
190
193
|
super({
|
|
191
194
|
id: 'welcome.markStepIncomplete',
|
|
192
|
-
title: ( localize(
|
|
195
|
+
title: ( localize(11487, "Mark Step Incomplete")),
|
|
193
196
|
category,
|
|
194
197
|
});
|
|
195
198
|
}
|
|
@@ -205,9 +208,14 @@ registerAction2(class extends Action2 {
|
|
|
205
208
|
constructor() {
|
|
206
209
|
super({
|
|
207
210
|
id: 'welcome.showAllWalkthroughs',
|
|
208
|
-
title: ( localize2(
|
|
211
|
+
title: ( localize2(11488, 'Open Walkthrough...')),
|
|
209
212
|
category,
|
|
210
213
|
f1: true,
|
|
214
|
+
menu: {
|
|
215
|
+
id: MenuId.MenubarHelpMenu,
|
|
216
|
+
group: '1_welcome',
|
|
217
|
+
order: 3,
|
|
218
|
+
},
|
|
211
219
|
});
|
|
212
220
|
}
|
|
213
221
|
async getQuickPickItems(contextService, gettingStartedService) {
|
|
@@ -232,7 +240,7 @@ registerAction2(class extends Action2 {
|
|
|
232
240
|
quickPick.canSelectMany = false;
|
|
233
241
|
quickPick.matchOnDescription = true;
|
|
234
242
|
quickPick.matchOnDetail = true;
|
|
235
|
-
quickPick.placeholder = ( localize(
|
|
243
|
+
quickPick.placeholder = ( localize(11489, 'Select a walkthrough to open'));
|
|
236
244
|
quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
|
|
237
245
|
quickPick.busy = true;
|
|
238
246
|
disposables.add(quickPick.onDidAccept(() => {
|
|
@@ -244,15 +252,39 @@ registerAction2(class extends Action2 {
|
|
|
244
252
|
}));
|
|
245
253
|
disposables.add(quickPick.onDidHide(() => disposables.dispose()));
|
|
246
254
|
await extensionService.whenInstalledExtensionsRegistered();
|
|
247
|
-
gettingStartedService.onDidAddWalkthrough(async () => {
|
|
255
|
+
disposables.add(gettingStartedService.onDidAddWalkthrough(async () => {
|
|
248
256
|
quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
|
|
249
|
-
});
|
|
257
|
+
}));
|
|
250
258
|
quickPick.show();
|
|
251
259
|
quickPick.busy = false;
|
|
252
260
|
}
|
|
253
261
|
});
|
|
262
|
+
registerAction2(class extends Action2 {
|
|
263
|
+
constructor() {
|
|
264
|
+
super({
|
|
265
|
+
id: 'welcome.showNewWelcome',
|
|
266
|
+
title: ( localize2(11490, 'Open New Welcome Experience')),
|
|
267
|
+
f1: true,
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
async run(accessor) {
|
|
271
|
+
const editorService = accessor.get(IEditorService);
|
|
272
|
+
const options = { selectedCategory: 'NewWelcomeExperience', forceReload: true, showTelemetryNotice: true };
|
|
273
|
+
editorService.openEditor({
|
|
274
|
+
resource: GettingStartedInput.RESOURCE,
|
|
275
|
+
options
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
CommandsRegistry.registerCommand({
|
|
280
|
+
id: 'welcome.newWorkspaceChat',
|
|
281
|
+
handler: (accessor, stepID) => {
|
|
282
|
+
const commandService = accessor.get(ICommandService);
|
|
283
|
+
commandService.executeCommand('workbench.action.chat.open', { mode: 'agent', query: '#new ', isPartialQuery: true });
|
|
284
|
+
}
|
|
285
|
+
});
|
|
254
286
|
const WorkspacePlatform = ( new RawContextKey('workspacePlatform', undefined, ( localize(
|
|
255
|
-
|
|
287
|
+
11491,
|
|
256
288
|
"The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
|
|
257
289
|
))));
|
|
258
290
|
let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
@@ -304,7 +336,7 @@ configurationRegistry.registerConfiguration({
|
|
|
304
336
|
type: 'boolean',
|
|
305
337
|
default: true,
|
|
306
338
|
description: ( localize(
|
|
307
|
-
|
|
339
|
+
11492,
|
|
308
340
|
"When enabled, an extension's walkthrough will open upon install of the extension."
|
|
309
341
|
))
|
|
310
342
|
},
|
|
@@ -313,25 +345,25 @@ configurationRegistry.registerConfiguration({
|
|
|
313
345
|
'type': 'string',
|
|
314
346
|
'enum': ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench', 'terminal'],
|
|
315
347
|
'enumDescriptions': [
|
|
316
|
-
( localize(
|
|
348
|
+
( localize(11493, "Start without an editor.")),
|
|
317
349
|
( localize(
|
|
318
|
-
|
|
350
|
+
11494,
|
|
319
351
|
"Open the Welcome page, with content to aid in getting started with VS Code and extensions."
|
|
320
352
|
)),
|
|
321
353
|
( localize(
|
|
322
|
-
|
|
354
|
+
11495,
|
|
323
355
|
"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."
|
|
324
356
|
)),
|
|
325
357
|
( localize(
|
|
326
|
-
|
|
358
|
+
11496,
|
|
327
359
|
"Open a new untitled text file (only applies when opening an empty window)."
|
|
328
360
|
)),
|
|
329
|
-
( localize(
|
|
330
|
-
( localize(
|
|
361
|
+
( localize(11497, "Open the Welcome page when opening an empty workbench.")),
|
|
362
|
+
( localize(11498, "Open a new terminal in the editor area.")),
|
|
331
363
|
],
|
|
332
364
|
'default': 'welcomePage',
|
|
333
365
|
'description': ( localize(
|
|
334
|
-
|
|
366
|
+
11499,
|
|
335
367
|
"Controls which editor is shown at startup, if none are restored from the previous session."
|
|
336
368
|
))
|
|
337
369
|
},
|
|
@@ -339,8 +371,8 @@ configurationRegistry.registerConfiguration({
|
|
|
339
371
|
scope: ConfigurationScope.APPLICATION,
|
|
340
372
|
type: 'boolean',
|
|
341
373
|
default: false,
|
|
342
|
-
deprecationMessage: ( localize(
|
|
343
|
-
description: ( localize(
|
|
374
|
+
deprecationMessage: ( localize(11500, "Deprecated, use the global `workbench.reduceMotion`.")),
|
|
375
|
+
description: ( localize(11501, "When enabled, reduce motion in welcome page."))
|
|
344
376
|
}
|
|
345
377
|
}
|
|
346
378
|
});
|
|
@@ -20,7 +20,7 @@ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
20
20
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
21
21
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
22
22
|
import { IWorkspacesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service";
|
|
23
|
-
import { EditorPane } from "@codingame/monaco-vscode-
|
|
23
|
+
import { EditorPane } from "@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/workbench/browser/parts/editor/editorPane";
|
|
24
24
|
import { IEditorOpenContext, IEditorSerializer } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
25
25
|
import { IWebviewService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service";
|
|
26
26
|
import { GettingStartedInput } from "./gettingStartedInput.js";
|
|
@@ -29,7 +29,7 @@ import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/s
|
|
|
29
29
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
30
30
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
31
31
|
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
32
|
-
import { IWorkbenchThemeService } from "@codingame/monaco-vscode-
|
|
32
|
+
import { IWorkbenchThemeService } from "@codingame/monaco-vscode-7443a901-21f6-577a-9674-42893b997ee0-common/vscode/vs/workbench/services/themes/common/workbenchThemeService.service";
|
|
33
33
|
export declare const allWalkthroughsHiddenContext: RawContextKey<boolean>;
|
|
34
34
|
export declare const inWelcomeContext: RawContextKey<boolean>;
|
|
35
35
|
export interface IWelcomePageStartEntry {
|
|
@@ -129,6 +129,14 @@ export declare class GettingStartedPage extends EditorPane {
|
|
|
129
129
|
private runStepCommand;
|
|
130
130
|
private buildMarkdownDescription;
|
|
131
131
|
clearInput(): void;
|
|
132
|
+
private selectStepByIndex;
|
|
133
|
+
private updateNavButtons;
|
|
134
|
+
private buildNewCategorySlide;
|
|
135
|
+
private navigateWithinMultiStepContainer;
|
|
136
|
+
private selectSubStep;
|
|
137
|
+
private selectSlideWithPrefix;
|
|
138
|
+
private getCurrentSlideIndex;
|
|
139
|
+
private selectSlide;
|
|
132
140
|
private buildCategorySlide;
|
|
133
141
|
private buildTelemetryFooter;
|
|
134
142
|
private getKeybindingLabel;
|