@codingame/monaco-vscode-walkthrough-service-override 4.5.1 → 4.5.2
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 -107
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +138 -249
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +8 -35
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +61 -116
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +5 -4
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +3 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +74 -77
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +29 -32
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +147 -498
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +4 -15
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +6 -25
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +5 -12
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +5 -12
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +24 -31
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-walkthrough-service-override",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@4.5.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@4.5.2"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js
CHANGED
|
@@ -32,15 +32,12 @@ import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storag
|
|
|
32
32
|
import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
|
|
33
33
|
import './gettingStartedIcons.js';
|
|
34
34
|
|
|
35
|
+
const _moduleId = "vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution";
|
|
35
36
|
registerAction2(class extends Action2 {
|
|
36
37
|
constructor() {
|
|
37
38
|
super({
|
|
38
39
|
id: 'workbench.action.openWalkthrough',
|
|
39
|
-
title: ( localize2WithPath(
|
|
40
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
41
|
-
'miWelcome',
|
|
42
|
-
'Welcome'
|
|
43
|
-
)),
|
|
40
|
+
title: ( localize2WithPath(_moduleId, 0, 'Welcome')),
|
|
44
41
|
category: Categories.Help,
|
|
45
42
|
f1: true,
|
|
46
43
|
menu: {
|
|
@@ -112,35 +109,23 @@ registerAction2(class extends Action2 {
|
|
|
112
109
|
}
|
|
113
110
|
}
|
|
114
111
|
});
|
|
115
|
-
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
|
|
116
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localizeWithPath(
|
|
117
|
-
|
|
118
|
-
'welcome',
|
|
119
|
-
"Welcome"
|
|
120
|
-
))), [
|
|
121
|
-
( new SyncDescriptor(GettingStartedInput))
|
|
112
|
+
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
|
|
113
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localizeWithPath(_moduleId, 1, "Welcome"))), [
|
|
114
|
+
( (new SyncDescriptor(GettingStartedInput)))
|
|
122
115
|
]);
|
|
123
|
-
const category = ( localize2WithPath(
|
|
124
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
125
|
-
'welcome',
|
|
126
|
-
"Welcome"
|
|
127
|
-
));
|
|
116
|
+
const category = ( localize2WithPath(_moduleId, 1, "Welcome"));
|
|
128
117
|
registerAction2(class extends Action2 {
|
|
129
118
|
constructor() {
|
|
130
119
|
super({
|
|
131
120
|
id: 'welcome.goBack',
|
|
132
|
-
title: ( localize2WithPath(
|
|
133
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
134
|
-
'welcome.goBack',
|
|
135
|
-
'Go Back'
|
|
136
|
-
)),
|
|
121
|
+
title: ( localize2WithPath(_moduleId, 2, 'Go Back')),
|
|
137
122
|
category,
|
|
138
123
|
keybinding: {
|
|
139
124
|
weight: 100 ,
|
|
140
125
|
primary: 9 ,
|
|
141
126
|
when: inWelcomeContext
|
|
142
127
|
},
|
|
143
|
-
precondition: ( ContextKeyExpr.equals('activeEditor', 'gettingStartedPage')),
|
|
128
|
+
precondition: ( (ContextKeyExpr.equals('activeEditor', 'gettingStartedPage'))),
|
|
144
129
|
f1: true
|
|
145
130
|
});
|
|
146
131
|
}
|
|
@@ -169,11 +154,7 @@ registerAction2(class extends Action2 {
|
|
|
169
154
|
constructor() {
|
|
170
155
|
super({
|
|
171
156
|
id: 'welcome.markStepComplete',
|
|
172
|
-
title: ( localizeWithPath(
|
|
173
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
174
|
-
'welcome.markStepComplete',
|
|
175
|
-
"Mark Step Complete"
|
|
176
|
-
)),
|
|
157
|
+
title: ( localizeWithPath(_moduleId, 3, "Mark Step Complete")),
|
|
177
158
|
category,
|
|
178
159
|
});
|
|
179
160
|
}
|
|
@@ -189,11 +170,7 @@ registerAction2(class extends Action2 {
|
|
|
189
170
|
constructor() {
|
|
190
171
|
super({
|
|
191
172
|
id: 'welcome.markStepIncomplete',
|
|
192
|
-
title: ( localizeWithPath(
|
|
193
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
194
|
-
'welcome.markStepInomplete',
|
|
195
|
-
"Mark Step Incomplete"
|
|
196
|
-
)),
|
|
173
|
+
title: ( localizeWithPath(_moduleId, 4, "Mark Step Incomplete")),
|
|
197
174
|
category,
|
|
198
175
|
});
|
|
199
176
|
}
|
|
@@ -209,25 +186,23 @@ registerAction2(class extends Action2 {
|
|
|
209
186
|
constructor() {
|
|
210
187
|
super({
|
|
211
188
|
id: 'welcome.showAllWalkthroughs',
|
|
212
|
-
title: ( localize2WithPath(
|
|
213
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
214
|
-
'welcome.showAllWalkthroughs',
|
|
215
|
-
'Open Walkthrough...'
|
|
216
|
-
)),
|
|
189
|
+
title: ( localize2WithPath(_moduleId, 5, 'Open Walkthrough...')),
|
|
217
190
|
category,
|
|
218
191
|
f1: true,
|
|
219
192
|
});
|
|
220
193
|
}
|
|
221
194
|
async getQuickPickItems(contextService, gettingStartedService) {
|
|
222
195
|
const categories = await gettingStartedService.getWalkthroughs();
|
|
223
|
-
return (
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
196
|
+
return (
|
|
197
|
+
(categories
|
|
198
|
+
.filter(c => contextService.contextMatchesRules(c.when))
|
|
199
|
+
.map(x => ({
|
|
200
|
+
id: x.id,
|
|
201
|
+
label: x.title,
|
|
202
|
+
detail: x.description,
|
|
203
|
+
description: x.source,
|
|
204
|
+
})))
|
|
205
|
+
);
|
|
231
206
|
}
|
|
232
207
|
async run(accessor) {
|
|
233
208
|
const commandService = accessor.get(ICommandService);
|
|
@@ -239,11 +214,7 @@ registerAction2(class extends Action2 {
|
|
|
239
214
|
quickPick.canSelectMany = false;
|
|
240
215
|
quickPick.matchOnDescription = true;
|
|
241
216
|
quickPick.matchOnDetail = true;
|
|
242
|
-
quickPick.placeholder = ( localizeWithPath(
|
|
243
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
244
|
-
'pickWalkthroughs',
|
|
245
|
-
'Select a walkthrough to open'
|
|
246
|
-
));
|
|
217
|
+
quickPick.placeholder = ( localizeWithPath(_moduleId, 6, 'Select a walkthrough to open'));
|
|
247
218
|
quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
|
|
248
219
|
quickPick.busy = true;
|
|
249
220
|
quickPick.onDidAccept(() => {
|
|
@@ -262,11 +233,11 @@ registerAction2(class extends Action2 {
|
|
|
262
233
|
quickPick.busy = false;
|
|
263
234
|
}
|
|
264
235
|
});
|
|
265
|
-
const WorkspacePlatform = ( new RawContextKey('workspacePlatform', undefined, ( localizeWithPath(
|
|
266
|
-
|
|
267
|
-
|
|
236
|
+
const WorkspacePlatform = ( (new RawContextKey('workspacePlatform', undefined, ( localizeWithPath(
|
|
237
|
+
_moduleId,
|
|
238
|
+
7,
|
|
268
239
|
"The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
|
|
269
|
-
))));
|
|
240
|
+
)))));
|
|
270
241
|
let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
271
242
|
static { this.ID = 'workbench.contrib.workspacePlatform'; }
|
|
272
243
|
constructor(extensionManagementServerService, remoteAgentService, contextService) {
|
|
@@ -302,12 +273,12 @@ let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
|
302
273
|
});
|
|
303
274
|
}
|
|
304
275
|
};
|
|
305
|
-
WorkspacePlatformContribution = ( __decorate([
|
|
306
|
-
( __param(0, IExtensionManagementServerService)),
|
|
307
|
-
( __param(1, IRemoteAgentService)),
|
|
308
|
-
( __param(2, IContextKeyService))
|
|
309
|
-
], WorkspacePlatformContribution));
|
|
310
|
-
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
276
|
+
WorkspacePlatformContribution = ( (__decorate([
|
|
277
|
+
( (__param(0, IExtensionManagementServerService))),
|
|
278
|
+
( (__param(1, IRemoteAgentService))),
|
|
279
|
+
( (__param(2, IContextKeyService)))
|
|
280
|
+
], WorkspacePlatformContribution)));
|
|
281
|
+
const configurationRegistry = ( (Registry.as(Extensions.Configuration)));
|
|
311
282
|
configurationRegistry.registerConfiguration({
|
|
312
283
|
...workbenchConfigurationNodeBase,
|
|
313
284
|
properties: {
|
|
@@ -316,8 +287,8 @@ configurationRegistry.registerConfiguration({
|
|
|
316
287
|
type: 'boolean',
|
|
317
288
|
default: true,
|
|
318
289
|
description: ( localizeWithPath(
|
|
319
|
-
|
|
320
|
-
|
|
290
|
+
_moduleId,
|
|
291
|
+
8,
|
|
321
292
|
"When enabled, an extension's walkthrough will open upon install of the extension."
|
|
322
293
|
))
|
|
323
294
|
},
|
|
@@ -326,41 +297,29 @@ configurationRegistry.registerConfiguration({
|
|
|
326
297
|
'type': 'string',
|
|
327
298
|
'enum': ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench', 'terminal'],
|
|
328
299
|
'enumDescriptions': [
|
|
300
|
+
( localizeWithPath(_moduleId, 9, "Start without an editor.")),
|
|
329
301
|
( localizeWithPath(
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
"Start without an editor."
|
|
333
|
-
)),
|
|
334
|
-
( localizeWithPath(
|
|
335
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
336
|
-
{ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.welcomePage' },
|
|
302
|
+
_moduleId,
|
|
303
|
+
10,
|
|
337
304
|
"Open the Welcome page, with content to aid in getting started with VS Code and extensions."
|
|
338
305
|
)),
|
|
339
306
|
( localizeWithPath(
|
|
340
|
-
|
|
341
|
-
|
|
307
|
+
_moduleId,
|
|
308
|
+
11,
|
|
342
309
|
"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."
|
|
343
310
|
)),
|
|
344
311
|
( localizeWithPath(
|
|
345
|
-
|
|
346
|
-
|
|
312
|
+
_moduleId,
|
|
313
|
+
12,
|
|
347
314
|
"Open a new untitled text file (only applies when opening an empty window)."
|
|
348
315
|
)),
|
|
349
|
-
( localizeWithPath(
|
|
350
|
-
|
|
351
|
-
{ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.welcomePageInEmptyWorkbench' },
|
|
352
|
-
"Open the Welcome page when opening an empty workbench."
|
|
353
|
-
)),
|
|
354
|
-
( localizeWithPath(
|
|
355
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
356
|
-
{ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.terminal' },
|
|
357
|
-
"Open a new terminal in the editor area."
|
|
358
|
-
)),
|
|
316
|
+
( localizeWithPath(_moduleId, 13, "Open the Welcome page when opening an empty workbench.")),
|
|
317
|
+
( localizeWithPath(_moduleId, 14, "Open a new terminal in the editor area.")),
|
|
359
318
|
],
|
|
360
319
|
'default': 'welcomePage',
|
|
361
320
|
'description': ( localizeWithPath(
|
|
362
|
-
|
|
363
|
-
|
|
321
|
+
_moduleId,
|
|
322
|
+
15,
|
|
364
323
|
"Controls which editor is shown at startup, if none are restored from the previous session."
|
|
365
324
|
))
|
|
366
325
|
},
|
|
@@ -368,16 +327,8 @@ configurationRegistry.registerConfiguration({
|
|
|
368
327
|
scope: 1 ,
|
|
369
328
|
type: 'boolean',
|
|
370
329
|
default: false,
|
|
371
|
-
deprecationMessage: ( localizeWithPath(
|
|
372
|
-
|
|
373
|
-
'deprecationMessage',
|
|
374
|
-
"Deprecated, use the global `workbench.reduceMotion`."
|
|
375
|
-
)),
|
|
376
|
-
description: ( localizeWithPath(
|
|
377
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
378
|
-
'workbench.welcomePage.preferReducedMotion',
|
|
379
|
-
"When enabled, reduce motion in welcome page."
|
|
380
|
-
))
|
|
330
|
+
deprecationMessage: ( localizeWithPath(_moduleId, 16, "Deprecated, use the global `workbench.reduceMotion`.")),
|
|
331
|
+
description: ( localizeWithPath(_moduleId, 17, "When enabled, reduce motion in welcome page."))
|
|
381
332
|
}
|
|
382
333
|
}
|
|
383
334
|
});
|
|
@@ -388,16 +339,8 @@ registerAction2(class extends Action2 {
|
|
|
388
339
|
constructor() {
|
|
389
340
|
super({
|
|
390
341
|
id: 'resetGettingStartedProgress',
|
|
391
|
-
category: ( localize2WithPath(
|
|
392
|
-
|
|
393
|
-
'developer',
|
|
394
|
-
"Developer"
|
|
395
|
-
)),
|
|
396
|
-
title: ( localize2WithPath(
|
|
397
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
398
|
-
'resetWelcomePageWalkthroughProgress',
|
|
399
|
-
"Reset Welcome Page Walkthrough Progress"
|
|
400
|
-
)),
|
|
342
|
+
category: ( localize2WithPath(_moduleId, 18, "Developer")),
|
|
343
|
+
title: ( localize2WithPath(_moduleId, 19, "Reset Welcome Page Walkthrough Progress")),
|
|
401
344
|
f1: true
|
|
402
345
|
});
|
|
403
346
|
}
|
|
@@ -406,7 +349,7 @@ registerAction2(class extends Action2 {
|
|
|
406
349
|
const storageService = accessor.get(IStorageService);
|
|
407
350
|
storageService.store(hiddenEntriesConfigurationKey, JSON.stringify([]), 0 , 0 );
|
|
408
351
|
storageService.store(walkthroughMetadataConfigurationKey, JSON.stringify([]), 0 , 0 );
|
|
409
|
-
const memento = ( new Memento('gettingStartedService', accessor.get(IStorageService)));
|
|
352
|
+
const memento = ( (new Memento('gettingStartedService', accessor.get(IStorageService))));
|
|
410
353
|
const record = memento.getMemento(0 , 0 );
|
|
411
354
|
for (const key in record) {
|
|
412
355
|
if (Object.prototype.hasOwnProperty.call(record, key)) {
|