@codingame/monaco-vscode-welcome-service-override 3.2.3 → 4.1.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/welcome.js +4 -4
- package/external/rollup-plugin-styles/dist/runtime/inject-css.js +0 -3
- package/external/tslib/tslib.es6.js +0 -11
- package/external/vscode-marked/lib/marked.esm.js +0 -2200
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +0 -381
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +0 -1416
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +0 -38
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.js +0 -263
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +0 -16
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +0 -53
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedList.js +0 -97
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +0 -218
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/newFile.contribution.js +0 -238
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcome.contribution.js +0 -19
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeContribution.js +0 -75
- package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeExtensionPoint.js +0 -99
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +0 -62
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/media/walkThroughPart.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +0 -39
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions.js +0 -59
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +0 -115
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +0 -434
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +0 -76
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js
DELETED
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { GettingStartedInputSerializer, GettingStartedPage, inWelcomeContext } from './gettingStarted.js';
|
|
4
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
5
|
-
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
6
|
-
import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
7
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
|
-
import { ContextKeyExpr, IContextKeyService, RawContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
|
-
import { IEditorService, SIDE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
10
|
-
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
11
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
12
|
-
import { IWalkthroughsService } from 'vscode/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService';
|
|
13
|
-
import { GettingStartedInput } from './gettingStartedInput.js';
|
|
14
|
-
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
15
|
-
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
16
|
-
import { workbenchConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
|
|
17
|
-
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
18
|
-
import { ICommandService, CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
19
|
-
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
20
|
-
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
21
|
-
import { isMacintosh, isLinux, isWindows } from 'vscode/vscode/vs/base/common/platform';
|
|
22
|
-
import { IExtensionManagementServerService } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionManagement';
|
|
23
|
-
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
24
|
-
import { StartupPageEditorResolverContribution, StartupPageRunnerContribution } from './startupPage.js';
|
|
25
|
-
import { ExtensionsInput } from 'vscode/vscode/vs/workbench/contrib/extensions/common/extensionsInput';
|
|
26
|
-
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
27
|
-
|
|
28
|
-
registerAction2(class extends Action2 {
|
|
29
|
-
constructor() {
|
|
30
|
-
super({
|
|
31
|
-
id: 'workbench.action.openWalkthrough',
|
|
32
|
-
title: ( localize2WithPath(
|
|
33
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
34
|
-
'miWelcome',
|
|
35
|
-
'Welcome'
|
|
36
|
-
)),
|
|
37
|
-
category: Categories.Help,
|
|
38
|
-
f1: true,
|
|
39
|
-
menu: {
|
|
40
|
-
id: MenuId.MenubarHelpMenu,
|
|
41
|
-
group: '1_welcome',
|
|
42
|
-
order: 1,
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
run(accessor, walkthroughID, toSide) {
|
|
47
|
-
const editorGroupsService = accessor.get(IEditorGroupsService);
|
|
48
|
-
const instantiationService = accessor.get(IInstantiationService);
|
|
49
|
-
const editorService = accessor.get(IEditorService);
|
|
50
|
-
const commandService = accessor.get(ICommandService);
|
|
51
|
-
if (walkthroughID) {
|
|
52
|
-
const selectedCategory = typeof walkthroughID === 'string' ? walkthroughID : walkthroughID.category;
|
|
53
|
-
const selectedStep = typeof walkthroughID === 'string' ? undefined : walkthroughID.step;
|
|
54
|
-
if (!selectedCategory && !selectedStep) {
|
|
55
|
-
editorService.openEditor({
|
|
56
|
-
resource: GettingStartedInput.RESOURCE,
|
|
57
|
-
options: { preserveFocus: toSide ?? false }
|
|
58
|
-
}, toSide ? SIDE_GROUP : undefined);
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
for (const group of editorGroupsService.groups) {
|
|
62
|
-
if (group.activeEditor instanceof GettingStartedInput) {
|
|
63
|
-
group.activeEditorPane.makeCategoryVisibleWhenAvailable(selectedCategory, selectedStep);
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
const result = editorService.findEditors({ typeId: GettingStartedInput.ID, editorId: undefined, resource: GettingStartedInput.RESOURCE });
|
|
68
|
-
for (const { editor, groupId } of result) {
|
|
69
|
-
if (editor instanceof GettingStartedInput) {
|
|
70
|
-
const group = editorGroupsService.getGroup(groupId);
|
|
71
|
-
if (!editor.selectedCategory && group) {
|
|
72
|
-
editor.selectedCategory = selectedCategory;
|
|
73
|
-
editor.selectedStep = selectedStep;
|
|
74
|
-
group.openEditor(editor, { revealIfOpened: true });
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
const activeEditor = editorService.activeEditor;
|
|
80
|
-
if (selectedStep && activeEditor instanceof GettingStartedInput && activeEditor.selectedCategory === selectedCategory) {
|
|
81
|
-
commandService.executeCommand('walkthroughs.selectStep', selectedStep);
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
if (activeEditor instanceof ExtensionsInput) {
|
|
85
|
-
const activeGroup = editorGroupsService.activeGroup;
|
|
86
|
-
activeGroup.replaceEditors([{
|
|
87
|
-
editor: activeEditor,
|
|
88
|
-
replacement: instantiationService.createInstance(GettingStartedInput, { selectedCategory: selectedCategory, selectedStep: selectedStep })
|
|
89
|
-
}]);
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
editorService.openEditor({
|
|
93
|
-
resource: GettingStartedInput.RESOURCE,
|
|
94
|
-
options: { selectedCategory: selectedCategory, selectedStep: selectedStep, preserveFocus: toSide ?? false }
|
|
95
|
-
}, toSide ? SIDE_GROUP : undefined).then((editor) => {
|
|
96
|
-
editor?.makeCategoryVisibleWhenAvailable(selectedCategory, selectedStep);
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
editorService.openEditor({
|
|
102
|
-
resource: GettingStartedInput.RESOURCE,
|
|
103
|
-
options: { preserveFocus: toSide ?? false }
|
|
104
|
-
}, toSide ? SIDE_GROUP : undefined);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
|
|
109
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localizeWithPath(
|
|
110
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
111
|
-
'welcome',
|
|
112
|
-
"Welcome"
|
|
113
|
-
))), [
|
|
114
|
-
( new SyncDescriptor(GettingStartedInput))
|
|
115
|
-
]);
|
|
116
|
-
const category = ( localize2WithPath(
|
|
117
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
118
|
-
'welcome',
|
|
119
|
-
"Welcome"
|
|
120
|
-
));
|
|
121
|
-
registerAction2(class extends Action2 {
|
|
122
|
-
constructor() {
|
|
123
|
-
super({
|
|
124
|
-
id: 'welcome.goBack',
|
|
125
|
-
title: ( localize2WithPath(
|
|
126
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
127
|
-
'welcome.goBack',
|
|
128
|
-
'Go Back'
|
|
129
|
-
)),
|
|
130
|
-
category,
|
|
131
|
-
keybinding: {
|
|
132
|
-
weight: 100 ,
|
|
133
|
-
primary: 9 ,
|
|
134
|
-
when: inWelcomeContext
|
|
135
|
-
},
|
|
136
|
-
precondition: ( ContextKeyExpr.equals('activeEditor', 'gettingStartedPage')),
|
|
137
|
-
f1: true
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
run(accessor) {
|
|
141
|
-
const editorService = accessor.get(IEditorService);
|
|
142
|
-
const editorPane = editorService.activeEditorPane;
|
|
143
|
-
if (editorPane instanceof GettingStartedPage) {
|
|
144
|
-
editorPane.escape();
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
CommandsRegistry.registerCommand({
|
|
149
|
-
id: 'walkthroughs.selectStep',
|
|
150
|
-
handler: (accessor, stepID) => {
|
|
151
|
-
const editorService = accessor.get(IEditorService);
|
|
152
|
-
const editorPane = editorService.activeEditorPane;
|
|
153
|
-
if (editorPane instanceof GettingStartedPage) {
|
|
154
|
-
editorPane.selectStepLoose(stepID);
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
console.error('Cannot run walkthroughs.selectStep outside of walkthrough context');
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
registerAction2(class extends Action2 {
|
|
162
|
-
constructor() {
|
|
163
|
-
super({
|
|
164
|
-
id: 'welcome.markStepComplete',
|
|
165
|
-
title: ( localizeWithPath(
|
|
166
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
167
|
-
'welcome.markStepComplete',
|
|
168
|
-
"Mark Step Complete"
|
|
169
|
-
)),
|
|
170
|
-
category,
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
run(accessor, arg) {
|
|
174
|
-
if (!arg) {
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
const gettingStartedService = accessor.get(IWalkthroughsService);
|
|
178
|
-
gettingStartedService.progressStep(arg);
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
registerAction2(class extends Action2 {
|
|
182
|
-
constructor() {
|
|
183
|
-
super({
|
|
184
|
-
id: 'welcome.markStepIncomplete',
|
|
185
|
-
title: ( localizeWithPath(
|
|
186
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
187
|
-
'welcome.markStepInomplete',
|
|
188
|
-
"Mark Step Incomplete"
|
|
189
|
-
)),
|
|
190
|
-
category,
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
run(accessor, arg) {
|
|
194
|
-
if (!arg) {
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
const gettingStartedService = accessor.get(IWalkthroughsService);
|
|
198
|
-
gettingStartedService.deprogressStep(arg);
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
registerAction2(class extends Action2 {
|
|
202
|
-
constructor() {
|
|
203
|
-
super({
|
|
204
|
-
id: 'welcome.showAllWalkthroughs',
|
|
205
|
-
title: ( localize2WithPath(
|
|
206
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
207
|
-
'welcome.showAllWalkthroughs',
|
|
208
|
-
'Open Walkthrough...'
|
|
209
|
-
)),
|
|
210
|
-
category,
|
|
211
|
-
f1: true,
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
async getQuickPickItems(contextService, gettingStartedService) {
|
|
215
|
-
const categories = await gettingStartedService.getWalkthroughs();
|
|
216
|
-
return ( categories
|
|
217
|
-
.filter(c => contextService.contextMatchesRules(c.when))
|
|
218
|
-
.map(x => ({
|
|
219
|
-
id: x.id,
|
|
220
|
-
label: x.title,
|
|
221
|
-
detail: x.description,
|
|
222
|
-
description: x.source,
|
|
223
|
-
})));
|
|
224
|
-
}
|
|
225
|
-
async run(accessor) {
|
|
226
|
-
const commandService = accessor.get(ICommandService);
|
|
227
|
-
const contextService = accessor.get(IContextKeyService);
|
|
228
|
-
const quickInputService = accessor.get(IQuickInputService);
|
|
229
|
-
const gettingStartedService = accessor.get(IWalkthroughsService);
|
|
230
|
-
const extensionService = accessor.get(IExtensionService);
|
|
231
|
-
const quickPick = quickInputService.createQuickPick();
|
|
232
|
-
quickPick.canSelectMany = false;
|
|
233
|
-
quickPick.matchOnDescription = true;
|
|
234
|
-
quickPick.matchOnDetail = true;
|
|
235
|
-
quickPick.placeholder = ( localizeWithPath(
|
|
236
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
237
|
-
'pickWalkthroughs',
|
|
238
|
-
'Select a walkthrough to open'
|
|
239
|
-
));
|
|
240
|
-
quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
|
|
241
|
-
quickPick.busy = true;
|
|
242
|
-
quickPick.onDidAccept(() => {
|
|
243
|
-
const selection = quickPick.selectedItems[0];
|
|
244
|
-
if (selection) {
|
|
245
|
-
commandService.executeCommand('workbench.action.openWalkthrough', selection.id);
|
|
246
|
-
}
|
|
247
|
-
quickPick.hide();
|
|
248
|
-
});
|
|
249
|
-
quickPick.onDidHide(() => quickPick.dispose());
|
|
250
|
-
await extensionService.whenInstalledExtensionsRegistered();
|
|
251
|
-
gettingStartedService.onDidAddWalkthrough(async () => {
|
|
252
|
-
quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
|
|
253
|
-
});
|
|
254
|
-
quickPick.show();
|
|
255
|
-
quickPick.busy = false;
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
const WorkspacePlatform = ( new RawContextKey('workspacePlatform', undefined, ( localizeWithPath(
|
|
259
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
260
|
-
'workspacePlatform',
|
|
261
|
-
"The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
|
|
262
|
-
))));
|
|
263
|
-
let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
264
|
-
static { this.ID = 'workbench.contrib.workspacePlatform'; }
|
|
265
|
-
constructor(extensionManagementServerService, remoteAgentService, contextService) {
|
|
266
|
-
this.extensionManagementServerService = extensionManagementServerService;
|
|
267
|
-
this.remoteAgentService = remoteAgentService;
|
|
268
|
-
this.contextService = contextService;
|
|
269
|
-
this.remoteAgentService.getEnvironment().then(env => {
|
|
270
|
-
const remoteOS = env?.os;
|
|
271
|
-
const remotePlatform = remoteOS === 2 ? 'mac'
|
|
272
|
-
: remoteOS === 1 ? 'windows'
|
|
273
|
-
: remoteOS === 3 ? 'linux'
|
|
274
|
-
: undefined;
|
|
275
|
-
if (remotePlatform) {
|
|
276
|
-
WorkspacePlatform.bindTo(this.contextService).set(remotePlatform);
|
|
277
|
-
}
|
|
278
|
-
else if (this.extensionManagementServerService.localExtensionManagementServer) {
|
|
279
|
-
if (isMacintosh) {
|
|
280
|
-
WorkspacePlatform.bindTo(this.contextService).set('mac');
|
|
281
|
-
}
|
|
282
|
-
else if (isLinux) {
|
|
283
|
-
WorkspacePlatform.bindTo(this.contextService).set('linux');
|
|
284
|
-
}
|
|
285
|
-
else if (isWindows) {
|
|
286
|
-
WorkspacePlatform.bindTo(this.contextService).set('windows');
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
else if (this.extensionManagementServerService.webExtensionManagementServer) {
|
|
290
|
-
WorkspacePlatform.bindTo(this.contextService).set('webworker');
|
|
291
|
-
}
|
|
292
|
-
else {
|
|
293
|
-
console.error('Error: Unable to detect workspace platform');
|
|
294
|
-
}
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
WorkspacePlatformContribution = ( __decorate([
|
|
299
|
-
( __param(0, IExtensionManagementServerService)),
|
|
300
|
-
( __param(1, IRemoteAgentService)),
|
|
301
|
-
( __param(2, IContextKeyService))
|
|
302
|
-
], WorkspacePlatformContribution));
|
|
303
|
-
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
304
|
-
configurationRegistry.registerConfiguration({
|
|
305
|
-
...workbenchConfigurationNodeBase,
|
|
306
|
-
properties: {
|
|
307
|
-
'workbench.welcomePage.walkthroughs.openOnInstall': {
|
|
308
|
-
scope: 2 ,
|
|
309
|
-
type: 'boolean',
|
|
310
|
-
default: true,
|
|
311
|
-
description: ( localizeWithPath(
|
|
312
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
313
|
-
'workbench.welcomePage.walkthroughs.openOnInstall',
|
|
314
|
-
"When enabled, an extension's walkthrough will open upon install of the extension."
|
|
315
|
-
))
|
|
316
|
-
},
|
|
317
|
-
'workbench.startupEditor': {
|
|
318
|
-
'scope': 4 ,
|
|
319
|
-
'type': 'string',
|
|
320
|
-
'enum': ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench', 'terminal'],
|
|
321
|
-
'enumDescriptions': [
|
|
322
|
-
( localizeWithPath(
|
|
323
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
324
|
-
{ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.none' },
|
|
325
|
-
"Start without an editor."
|
|
326
|
-
)),
|
|
327
|
-
( localizeWithPath(
|
|
328
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
329
|
-
{ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.welcomePage' },
|
|
330
|
-
"Open the Welcome page, with content to aid in getting started with VS Code and extensions."
|
|
331
|
-
)),
|
|
332
|
-
( localizeWithPath(
|
|
333
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
334
|
-
{ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.readme' },
|
|
335
|
-
"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."
|
|
336
|
-
)),
|
|
337
|
-
( localizeWithPath(
|
|
338
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
339
|
-
{ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.newUntitledFile' },
|
|
340
|
-
"Open a new untitled text file (only applies when opening an empty window)."
|
|
341
|
-
)),
|
|
342
|
-
( localizeWithPath(
|
|
343
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
344
|
-
{ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.welcomePageInEmptyWorkbench' },
|
|
345
|
-
"Open the Welcome page when opening an empty workbench."
|
|
346
|
-
)),
|
|
347
|
-
( localizeWithPath(
|
|
348
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
349
|
-
{ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.terminal' },
|
|
350
|
-
"Open a new terminal in the editor area."
|
|
351
|
-
)),
|
|
352
|
-
],
|
|
353
|
-
'default': 'welcomePage',
|
|
354
|
-
'description': ( localizeWithPath(
|
|
355
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
356
|
-
'workbench.startupEditor',
|
|
357
|
-
"Controls which editor is shown at startup, if none are restored from the previous session."
|
|
358
|
-
))
|
|
359
|
-
},
|
|
360
|
-
'workbench.welcomePage.preferReducedMotion': {
|
|
361
|
-
scope: 1 ,
|
|
362
|
-
type: 'boolean',
|
|
363
|
-
default: false,
|
|
364
|
-
deprecationMessage: ( localizeWithPath(
|
|
365
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
366
|
-
'deprecationMessage',
|
|
367
|
-
"Deprecated, use the global `workbench.reduceMotion`."
|
|
368
|
-
)),
|
|
369
|
-
description: ( localizeWithPath(
|
|
370
|
-
'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution',
|
|
371
|
-
'workbench.welcomePage.preferReducedMotion',
|
|
372
|
-
"When enabled, reduce motion in welcome page."
|
|
373
|
-
))
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
});
|
|
377
|
-
registerWorkbenchContribution2(WorkspacePlatformContribution.ID, WorkspacePlatformContribution, 3 );
|
|
378
|
-
registerWorkbenchContribution2(StartupPageEditorResolverContribution.ID, StartupPageEditorResolverContribution, 2 );
|
|
379
|
-
registerWorkbenchContribution2(StartupPageRunnerContribution.ID, StartupPageRunnerContribution, 3 );
|
|
380
|
-
|
|
381
|
-
export { WorkspacePlatform };
|