@codingame/monaco-vscode-walkthrough-service-override 9.0.2 → 10.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 +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +50 -39
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +84 -62
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.js +101 -0
- 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 +2 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +6 -7
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +5 -7
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +21 -17
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +182 -150
- 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/welcomeWalkthrough/browser/editor/editorWalkThrough.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/vs_code_editor_walkthrough.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions.js +8 -10
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +9 -8
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +10 -12
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +2 -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": "10.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.0.0",
|
|
30
30
|
"marked": "~14.0.0"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js
CHANGED
|
@@ -9,27 +9,27 @@ import { ContextKeyExpr, RawContextKey } from 'vscode/vscode/vs/platform/context
|
|
|
9
9
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
10
10
|
import { SIDE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
11
11
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
12
|
-
import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
13
|
-
import { KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
14
12
|
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
15
13
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
16
14
|
import { IWalkthroughsService } from 'vscode/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service';
|
|
17
15
|
import { GettingStartedInput } from './gettingStartedInput.js';
|
|
18
|
-
import { registerWorkbenchContribution2
|
|
19
|
-
import { Extensions
|
|
16
|
+
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
17
|
+
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
20
18
|
import { workbenchConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
|
|
21
19
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
22
20
|
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
23
21
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
24
22
|
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
25
23
|
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
26
|
-
import {
|
|
24
|
+
import { isMacintosh, isLinux, isWindows } from 'vscode/vscode/vs/base/common/platform';
|
|
27
25
|
import { IExtensionManagementServerService } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service';
|
|
28
26
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
29
27
|
import { StartupPageEditorResolverContribution, StartupPageRunnerContribution } from './startupPage.js';
|
|
30
28
|
import { ExtensionsInput } from 'vscode/vscode/vs/workbench/contrib/extensions/common/extensionsInput';
|
|
31
29
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
32
30
|
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
31
|
+
import { AccessibleViewRegistry } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
|
|
32
|
+
import { GettingStartedAccessibleView } from './gettingStartedAccessibleView.js';
|
|
33
33
|
import './gettingStartedService._contribution.js';
|
|
34
34
|
import './gettingStartedIcons.js';
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ registerAction2(class extends Action2 {
|
|
|
37
37
|
constructor() {
|
|
38
38
|
super({
|
|
39
39
|
id: 'workbench.action.openWalkthrough',
|
|
40
|
-
title: ( localize2(
|
|
40
|
+
title: ( localize2(3167, 'Welcome')),
|
|
41
41
|
category: Categories.Help,
|
|
42
42
|
f1: true,
|
|
43
43
|
menu: {
|
|
@@ -46,7 +46,7 @@ registerAction2(class extends Action2 {
|
|
|
46
46
|
order: 1,
|
|
47
47
|
},
|
|
48
48
|
metadata: {
|
|
49
|
-
description: ( localize2(
|
|
49
|
+
description: ( localize2(3168, 'Opens a Walkthrough to help you get started in VS Code.'))
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
}
|
|
@@ -57,7 +57,13 @@ registerAction2(class extends Action2 {
|
|
|
57
57
|
const commandService = accessor.get(ICommandService);
|
|
58
58
|
if (walkthroughID) {
|
|
59
59
|
const selectedCategory = typeof walkthroughID === 'string' ? walkthroughID : walkthroughID.category;
|
|
60
|
-
|
|
60
|
+
let selectedStep;
|
|
61
|
+
if (typeof walkthroughID === 'object' && 'category' in walkthroughID && 'step' in walkthroughID) {
|
|
62
|
+
selectedStep = `${walkthroughID.category}#${walkthroughID.step}`;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
selectedStep = undefined;
|
|
66
|
+
}
|
|
61
67
|
if (!selectedCategory && !selectedStep) {
|
|
62
68
|
editorService.openEditor({
|
|
63
69
|
resource: GettingStartedInput.RESOURCE,
|
|
@@ -67,6 +73,8 @@ registerAction2(class extends Action2 {
|
|
|
67
73
|
}
|
|
68
74
|
for (const group of editorGroupsService.groups) {
|
|
69
75
|
if (group.activeEditor instanceof GettingStartedInput) {
|
|
76
|
+
const activeEditor = group.activeEditor;
|
|
77
|
+
activeEditor.showWelcome = false;
|
|
70
78
|
group.activeEditorPane.makeCategoryVisibleWhenAvailable(selectedCategory, selectedStep);
|
|
71
79
|
return;
|
|
72
80
|
}
|
|
@@ -78,6 +86,7 @@ registerAction2(class extends Action2 {
|
|
|
78
86
|
if (!editor.selectedCategory && group) {
|
|
79
87
|
editor.selectedCategory = selectedCategory;
|
|
80
88
|
editor.selectedStep = selectedStep;
|
|
89
|
+
editor.showWelcome = false;
|
|
81
90
|
group.openEditor(editor, { revealIfOpened: true });
|
|
82
91
|
return;
|
|
83
92
|
}
|
|
@@ -85,6 +94,7 @@ registerAction2(class extends Action2 {
|
|
|
85
94
|
}
|
|
86
95
|
const activeEditor = editorService.activeEditor;
|
|
87
96
|
if (selectedStep && activeEditor instanceof GettingStartedInput && activeEditor.selectedCategory === selectedCategory) {
|
|
97
|
+
activeEditor.showWelcome = false;
|
|
88
98
|
commandService.executeCommand('walkthroughs.selectStep', selectedStep);
|
|
89
99
|
return;
|
|
90
100
|
}
|
|
@@ -92,11 +102,11 @@ registerAction2(class extends Action2 {
|
|
|
92
102
|
const activeGroup = editorGroupsService.activeGroup;
|
|
93
103
|
activeGroup.replaceEditors([{
|
|
94
104
|
editor: activeEditor,
|
|
95
|
-
replacement: instantiationService.createInstance(GettingStartedInput, { selectedCategory: selectedCategory, selectedStep: selectedStep })
|
|
105
|
+
replacement: instantiationService.createInstance(GettingStartedInput, { selectedCategory: selectedCategory, selectedStep: selectedStep, showWelcome: false })
|
|
96
106
|
}]);
|
|
97
107
|
}
|
|
98
108
|
else {
|
|
99
|
-
const options = { selectedCategory: selectedCategory, selectedStep: selectedStep, preserveFocus: toSide ?? false };
|
|
109
|
+
const options = { selectedCategory: selectedCategory, selectedStep: selectedStep, showWelcome: false, preserveFocus: toSide ?? false };
|
|
100
110
|
editorService.openEditor({
|
|
101
111
|
resource: GettingStartedInput.RESOURCE,
|
|
102
112
|
options
|
|
@@ -114,19 +124,19 @@ registerAction2(class extends Action2 {
|
|
|
114
124
|
}
|
|
115
125
|
});
|
|
116
126
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
|
|
117
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(
|
|
127
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(3169, "Welcome"))), [
|
|
118
128
|
( (new SyncDescriptor(GettingStartedInput)))
|
|
119
129
|
]);
|
|
120
|
-
const category = ( localize2(
|
|
130
|
+
const category = ( localize2(3169, "Welcome"));
|
|
121
131
|
registerAction2(class extends Action2 {
|
|
122
132
|
constructor() {
|
|
123
133
|
super({
|
|
124
134
|
id: 'welcome.goBack',
|
|
125
|
-
title: ( localize2(
|
|
135
|
+
title: ( localize2(3170, 'Go Back')),
|
|
126
136
|
category,
|
|
127
137
|
keybinding: {
|
|
128
|
-
weight:
|
|
129
|
-
primary:
|
|
138
|
+
weight: 100 ,
|
|
139
|
+
primary: 9 ,
|
|
130
140
|
when: inWelcomeContext
|
|
131
141
|
},
|
|
132
142
|
precondition: ( (ContextKeyExpr.equals('activeEditor', 'gettingStartedPage'))),
|
|
@@ -158,7 +168,7 @@ registerAction2(class extends Action2 {
|
|
|
158
168
|
constructor() {
|
|
159
169
|
super({
|
|
160
170
|
id: 'welcome.markStepComplete',
|
|
161
|
-
title: ( localize(
|
|
171
|
+
title: ( localize(3171, "Mark Step Complete")),
|
|
162
172
|
category,
|
|
163
173
|
});
|
|
164
174
|
}
|
|
@@ -174,7 +184,7 @@ registerAction2(class extends Action2 {
|
|
|
174
184
|
constructor() {
|
|
175
185
|
super({
|
|
176
186
|
id: 'welcome.markStepIncomplete',
|
|
177
|
-
title: ( localize(
|
|
187
|
+
title: ( localize(3172, "Mark Step Incomplete")),
|
|
178
188
|
category,
|
|
179
189
|
});
|
|
180
190
|
}
|
|
@@ -190,7 +200,7 @@ registerAction2(class extends Action2 {
|
|
|
190
200
|
constructor() {
|
|
191
201
|
super({
|
|
192
202
|
id: 'welcome.showAllWalkthroughs',
|
|
193
|
-
title: ( localize2(
|
|
203
|
+
title: ( localize2(3173, 'Open Walkthrough...')),
|
|
194
204
|
category,
|
|
195
205
|
f1: true,
|
|
196
206
|
});
|
|
@@ -219,7 +229,7 @@ registerAction2(class extends Action2 {
|
|
|
219
229
|
quickPick.canSelectMany = false;
|
|
220
230
|
quickPick.matchOnDescription = true;
|
|
221
231
|
quickPick.matchOnDetail = true;
|
|
222
|
-
quickPick.placeholder = ( localize(
|
|
232
|
+
quickPick.placeholder = ( localize(3174, 'Select a walkthrough to open'));
|
|
223
233
|
quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
|
|
224
234
|
quickPick.busy = true;
|
|
225
235
|
disposables.add(quickPick.onDidAccept(() => {
|
|
@@ -239,7 +249,7 @@ registerAction2(class extends Action2 {
|
|
|
239
249
|
}
|
|
240
250
|
});
|
|
241
251
|
const WorkspacePlatform = ( (new RawContextKey('workspacePlatform', undefined, ( localize(
|
|
242
|
-
|
|
252
|
+
3175,
|
|
243
253
|
"The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
|
|
244
254
|
)))));
|
|
245
255
|
let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
@@ -250,9 +260,9 @@ let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
|
250
260
|
this.contextService = contextService;
|
|
251
261
|
this.remoteAgentService.getEnvironment().then(env => {
|
|
252
262
|
const remoteOS = env?.os;
|
|
253
|
-
const remotePlatform = remoteOS ===
|
|
254
|
-
: remoteOS ===
|
|
255
|
-
: remoteOS ===
|
|
263
|
+
const remotePlatform = remoteOS === 2 ? 'mac'
|
|
264
|
+
: remoteOS === 1 ? 'windows'
|
|
265
|
+
: remoteOS === 3 ? 'linux'
|
|
256
266
|
: undefined;
|
|
257
267
|
if (remotePlatform) {
|
|
258
268
|
WorkspacePlatform.bindTo(this.contextService).set(remotePlatform);
|
|
@@ -287,52 +297,53 @@ configurationRegistry.registerConfiguration({
|
|
|
287
297
|
...workbenchConfigurationNodeBase,
|
|
288
298
|
properties: {
|
|
289
299
|
'workbench.welcomePage.walkthroughs.openOnInstall': {
|
|
290
|
-
scope:
|
|
300
|
+
scope: 2 ,
|
|
291
301
|
type: 'boolean',
|
|
292
302
|
default: true,
|
|
293
303
|
description: ( localize(
|
|
294
|
-
|
|
304
|
+
3176,
|
|
295
305
|
"When enabled, an extension's walkthrough will open upon install of the extension."
|
|
296
306
|
))
|
|
297
307
|
},
|
|
298
308
|
'workbench.startupEditor': {
|
|
299
|
-
'scope':
|
|
309
|
+
'scope': 4 ,
|
|
300
310
|
'type': 'string',
|
|
301
311
|
'enum': ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench', 'terminal'],
|
|
302
312
|
'enumDescriptions': [
|
|
303
|
-
( localize(
|
|
313
|
+
( localize(3177, "Start without an editor.")),
|
|
304
314
|
( localize(
|
|
305
|
-
|
|
315
|
+
3178,
|
|
306
316
|
"Open the Welcome page, with content to aid in getting started with VS Code and extensions."
|
|
307
317
|
)),
|
|
308
318
|
( localize(
|
|
309
|
-
|
|
319
|
+
3179,
|
|
310
320
|
"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."
|
|
311
321
|
)),
|
|
312
322
|
( localize(
|
|
313
|
-
|
|
323
|
+
3180,
|
|
314
324
|
"Open a new untitled text file (only applies when opening an empty window)."
|
|
315
325
|
)),
|
|
316
|
-
( localize(
|
|
317
|
-
( localize(
|
|
326
|
+
( localize(3181, "Open the Welcome page when opening an empty workbench.")),
|
|
327
|
+
( localize(3182, "Open a new terminal in the editor area.")),
|
|
318
328
|
],
|
|
319
329
|
'default': 'welcomePage',
|
|
320
330
|
'description': ( localize(
|
|
321
|
-
|
|
331
|
+
3183,
|
|
322
332
|
"Controls which editor is shown at startup, if none are restored from the previous session."
|
|
323
333
|
))
|
|
324
334
|
},
|
|
325
335
|
'workbench.welcomePage.preferReducedMotion': {
|
|
326
|
-
scope:
|
|
336
|
+
scope: 1 ,
|
|
327
337
|
type: 'boolean',
|
|
328
338
|
default: false,
|
|
329
|
-
deprecationMessage: ( localize(
|
|
330
|
-
description: ( localize(
|
|
339
|
+
deprecationMessage: ( localize(3184, "Deprecated, use the global `workbench.reduceMotion`.")),
|
|
340
|
+
description: ( localize(3185, "When enabled, reduce motion in welcome page."))
|
|
331
341
|
}
|
|
332
342
|
}
|
|
333
343
|
});
|
|
334
|
-
registerWorkbenchContribution2(WorkspacePlatformContribution.ID, WorkspacePlatformContribution,
|
|
335
|
-
registerWorkbenchContribution2(StartupPageEditorResolverContribution.ID, StartupPageEditorResolverContribution,
|
|
336
|
-
registerWorkbenchContribution2(StartupPageRunnerContribution.ID, StartupPageRunnerContribution,
|
|
344
|
+
registerWorkbenchContribution2(WorkspacePlatformContribution.ID, WorkspacePlatformContribution, 3 );
|
|
345
|
+
registerWorkbenchContribution2(StartupPageEditorResolverContribution.ID, StartupPageEditorResolverContribution, 2 );
|
|
346
|
+
registerWorkbenchContribution2(StartupPageRunnerContribution.ID, StartupPageRunnerContribution, 3 );
|
|
347
|
+
AccessibleViewRegistry.register(( (new GettingStartedAccessibleView())));
|
|
337
348
|
|
|
338
349
|
export { WorkspacePlatform };
|