@codingame/monaco-vscode-walkthrough-service-override 25.1.2 → 26.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 -2
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.d.ts +107 -0
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.js +748 -0
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcomeInput.js +71 -0
- package/vscode/src/vs/workbench/contrib/welcomeAgentSessions/browser/media/agentSessionsWelcome.css +528 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +156 -126
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +737 -481
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.js +35 -26
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +27 -7
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.js +204 -222
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +189 -191
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +6 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +18 -4
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedList.js +15 -11
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +20 -11
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +239 -179
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css +0 -4
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +97 -77
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +698 -660
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +15 -13
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +21 -21
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker_small.js +20 -20
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +26 -15
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +10 -6
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +24 -16
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +129 -96
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +30 -19
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +8 -3
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js
CHANGED
|
@@ -17,6 +17,7 @@ import { IWalkthroughsService } from '@codingame/monaco-vscode-api/vscode/vs/wor
|
|
|
17
17
|
import { GettingStartedInput } from './gettingStartedInput.js';
|
|
18
18
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
19
19
|
import { Extensions, ConfigurationScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
20
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
20
21
|
import { workbenchConfigurationNodeBase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/configuration';
|
|
21
22
|
import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
|
|
22
23
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
@@ -30,83 +31,105 @@ import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/acti
|
|
|
30
31
|
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
31
32
|
import { AccessibleViewRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
|
|
32
33
|
import { GettingStartedAccessibleView } from './gettingStartedAccessibleView.js';
|
|
34
|
+
import { AgentSessionsWelcomePage } from '../../welcomeAgentSessions/browser/agentSessionsWelcome.js';
|
|
35
|
+
import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
|
|
33
36
|
import './gettingStartedService._contribution.js';
|
|
34
37
|
import './gettingStartedIcons.js';
|
|
35
38
|
|
|
36
39
|
registerAction2(class extends Action2 {
|
|
37
40
|
constructor() {
|
|
38
41
|
super({
|
|
39
|
-
id:
|
|
40
|
-
title: ( localize2(
|
|
42
|
+
id: "workbench.action.openWalkthrough",
|
|
43
|
+
title: ( localize2(13542, "Welcome")),
|
|
41
44
|
category: Categories.Help,
|
|
42
45
|
f1: true,
|
|
43
46
|
menu: {
|
|
44
47
|
id: MenuId.MenubarHelpMenu,
|
|
45
|
-
group:
|
|
46
|
-
order: 1
|
|
48
|
+
group: "1_welcome",
|
|
49
|
+
order: 1
|
|
47
50
|
},
|
|
48
51
|
metadata: {
|
|
49
|
-
description: ( localize2(
|
|
52
|
+
description: ( localize2(13543, "Opens a Walkthrough to help you get started in VS Code."))
|
|
50
53
|
}
|
|
51
54
|
});
|
|
52
55
|
}
|
|
53
56
|
run(accessor, walkthroughID, optionsOrToSide) {
|
|
54
57
|
const editorService = accessor.get(IEditorService);
|
|
55
58
|
const commandService = accessor.get(ICommandService);
|
|
56
|
-
const
|
|
57
|
-
const
|
|
59
|
+
const configurationService = accessor.get(IConfigurationService);
|
|
60
|
+
const chatEntitlementService = accessor.get(IChatEntitlementService);
|
|
61
|
+
const toSide = typeof optionsOrToSide === "object" ? optionsOrToSide.toSide : optionsOrToSide;
|
|
62
|
+
const inactive = typeof optionsOrToSide === "object" ? optionsOrToSide.inactive : false;
|
|
58
63
|
const activeEditor = editorService.activeEditor;
|
|
59
|
-
if (walkthroughID) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
64
|
+
if (!walkthroughID && !chatEntitlementService.sentiment.hidden && configurationService.getValue("workbench.startupEditor") === "agentSessionsWelcomePage") {
|
|
65
|
+
commandService.executeCommand(AgentSessionsWelcomePage.COMMAND_ID);
|
|
66
|
+
return;
|
|
67
|
+
} else {
|
|
68
|
+
if (walkthroughID) {
|
|
69
|
+
const selectedCategory = typeof walkthroughID === "string" ? walkthroughID : walkthroughID.category;
|
|
70
|
+
let selectedStep;
|
|
71
|
+
if (typeof walkthroughID === "object" && "category" in walkthroughID && "step" in walkthroughID) {
|
|
72
|
+
selectedStep = `${walkthroughID.category}#${walkthroughID.step}`;
|
|
73
|
+
} else {
|
|
74
|
+
selectedStep = undefined;
|
|
75
|
+
}
|
|
76
|
+
if (selectedStep && activeEditor instanceof GettingStartedInput && activeEditor.selectedCategory === selectedCategory) {
|
|
77
|
+
activeEditor.showWelcome = false;
|
|
78
|
+
commandService.executeCommand("walkthroughs.selectStep", selectedStep);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
let options;
|
|
82
|
+
if (selectedCategory) {
|
|
83
|
+
options = {
|
|
84
|
+
selectedCategory,
|
|
85
|
+
selectedStep,
|
|
86
|
+
showWelcome: false,
|
|
87
|
+
preserveFocus: toSide ?? false,
|
|
88
|
+
inactive
|
|
89
|
+
};
|
|
90
|
+
} else {
|
|
91
|
+
options = {
|
|
92
|
+
selectedCategory,
|
|
93
|
+
selectedStep,
|
|
94
|
+
showWelcome: true,
|
|
95
|
+
preserveFocus: toSide ?? false,
|
|
96
|
+
inactive
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
editorService.openEditor({
|
|
100
|
+
resource: GettingStartedInput.RESOURCE,
|
|
101
|
+
options
|
|
102
|
+
}, toSide ? SIDE_GROUP : undefined);
|
|
103
|
+
} else {
|
|
104
|
+
editorService.openEditor({
|
|
105
|
+
resource: GettingStartedInput.RESOURCE,
|
|
106
|
+
options: {
|
|
107
|
+
preserveFocus: toSide ?? false,
|
|
108
|
+
inactive
|
|
109
|
+
}
|
|
110
|
+
}, toSide ? SIDE_GROUP : undefined);
|
|
79
111
|
}
|
|
80
|
-
editorService.openEditor({
|
|
81
|
-
resource: GettingStartedInput.RESOURCE,
|
|
82
|
-
options
|
|
83
|
-
}, toSide ? SIDE_GROUP : undefined);
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
editorService.openEditor({
|
|
87
|
-
resource: GettingStartedInput.RESOURCE,
|
|
88
|
-
options: { preserveFocus: toSide ?? false, inactive }
|
|
89
|
-
}, toSide ? SIDE_GROUP : undefined);
|
|
90
112
|
}
|
|
91
113
|
}
|
|
92
114
|
});
|
|
93
115
|
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
|
|
94
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
|
|
95
|
-
(
|
|
96
|
-
]
|
|
97
|
-
|
|
116
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
|
|
117
|
+
EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(13544, "Welcome"))),
|
|
118
|
+
[( new SyncDescriptor(GettingStartedInput))]
|
|
119
|
+
);
|
|
120
|
+
const category = ( localize2(13544, "Welcome"));
|
|
98
121
|
registerAction2(class extends Action2 {
|
|
99
122
|
constructor() {
|
|
100
123
|
super({
|
|
101
|
-
id:
|
|
102
|
-
title: ( localize2(
|
|
124
|
+
id: "welcome.goBack",
|
|
125
|
+
title: ( localize2(13545, "Go Back")),
|
|
103
126
|
category,
|
|
104
127
|
keybinding: {
|
|
105
128
|
weight: KeybindingWeight.EditorContrib,
|
|
106
129
|
primary: KeyCode.Escape,
|
|
107
130
|
when: inWelcomeContext
|
|
108
131
|
},
|
|
109
|
-
precondition: ( ContextKeyExpr.equals(
|
|
132
|
+
precondition: ( ContextKeyExpr.equals("activeEditor", "gettingStartedPage")),
|
|
110
133
|
f1: true
|
|
111
134
|
});
|
|
112
135
|
}
|
|
@@ -119,24 +142,23 @@ registerAction2(class extends Action2 {
|
|
|
119
142
|
}
|
|
120
143
|
});
|
|
121
144
|
CommandsRegistry.registerCommand({
|
|
122
|
-
id:
|
|
145
|
+
id: "walkthroughs.selectStep",
|
|
123
146
|
handler: (accessor, stepID) => {
|
|
124
147
|
const editorService = accessor.get(IEditorService);
|
|
125
148
|
const editorPane = editorService.activeEditorPane;
|
|
126
149
|
if (editorPane instanceof GettingStartedPage) {
|
|
127
150
|
editorPane.selectStepLoose(stepID);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
console.error('Cannot run walkthroughs.selectStep outside of walkthrough context');
|
|
151
|
+
} else {
|
|
152
|
+
console.error("Cannot run walkthroughs.selectStep outside of walkthrough context");
|
|
131
153
|
}
|
|
132
154
|
}
|
|
133
155
|
});
|
|
134
156
|
registerAction2(class extends Action2 {
|
|
135
157
|
constructor() {
|
|
136
158
|
super({
|
|
137
|
-
id:
|
|
138
|
-
title: ( localize(
|
|
139
|
-
category
|
|
159
|
+
id: "welcome.markStepComplete",
|
|
160
|
+
title: ( localize(13546, "Mark Step Complete")),
|
|
161
|
+
category
|
|
140
162
|
});
|
|
141
163
|
}
|
|
142
164
|
run(accessor, arg) {
|
|
@@ -150,9 +172,9 @@ registerAction2(class extends Action2 {
|
|
|
150
172
|
registerAction2(class extends Action2 {
|
|
151
173
|
constructor() {
|
|
152
174
|
super({
|
|
153
|
-
id:
|
|
154
|
-
title: ( localize(
|
|
155
|
-
category
|
|
175
|
+
id: "welcome.markStepIncomplete",
|
|
176
|
+
title: ( localize(13547, "Mark Step Incomplete")),
|
|
177
|
+
category
|
|
156
178
|
});
|
|
157
179
|
}
|
|
158
180
|
run(accessor, arg) {
|
|
@@ -166,26 +188,24 @@ registerAction2(class extends Action2 {
|
|
|
166
188
|
registerAction2(class extends Action2 {
|
|
167
189
|
constructor() {
|
|
168
190
|
super({
|
|
169
|
-
id:
|
|
170
|
-
title: ( localize2(
|
|
191
|
+
id: "welcome.showAllWalkthroughs",
|
|
192
|
+
title: ( localize2(13548, "Open Walkthrough...")),
|
|
171
193
|
category,
|
|
172
194
|
f1: true,
|
|
173
195
|
menu: {
|
|
174
196
|
id: MenuId.MenubarHelpMenu,
|
|
175
|
-
group:
|
|
176
|
-
order: 3
|
|
177
|
-
}
|
|
197
|
+
group: "1_welcome",
|
|
198
|
+
order: 3
|
|
199
|
+
}
|
|
178
200
|
});
|
|
179
201
|
}
|
|
180
202
|
async getQuickPickItems(contextService, gettingStartedService) {
|
|
181
203
|
const categories = await gettingStartedService.getWalkthroughs();
|
|
182
|
-
return ( categories
|
|
183
|
-
.filter(c => contextService.contextMatchesRules(c.when))
|
|
184
|
-
.map(x => ({
|
|
204
|
+
return ( categories.filter(c => contextService.contextMatchesRules(c.when)).map(x => ({
|
|
185
205
|
id: x.id,
|
|
186
206
|
label: x.title,
|
|
187
207
|
detail: x.description,
|
|
188
|
-
description: x.source
|
|
208
|
+
description: x.source
|
|
189
209
|
})));
|
|
190
210
|
}
|
|
191
211
|
async run(accessor) {
|
|
@@ -199,13 +219,13 @@ registerAction2(class extends Action2 {
|
|
|
199
219
|
quickPick.canSelectMany = false;
|
|
200
220
|
quickPick.matchOnDescription = true;
|
|
201
221
|
quickPick.matchOnDetail = true;
|
|
202
|
-
quickPick.placeholder = ( localize(
|
|
222
|
+
quickPick.placeholder = ( localize(13549, "Select a walkthrough to open"));
|
|
203
223
|
quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
|
|
204
224
|
quickPick.busy = true;
|
|
205
225
|
disposables.add(quickPick.onDidAccept(() => {
|
|
206
226
|
const selection = quickPick.selectedItems[0];
|
|
207
227
|
if (selection) {
|
|
208
|
-
commandService.executeCommand(
|
|
228
|
+
commandService.executeCommand("workbench.action.openWalkthrough", selection.id);
|
|
209
229
|
}
|
|
210
230
|
quickPick.hide();
|
|
211
231
|
}));
|
|
@@ -219,108 +239,118 @@ registerAction2(class extends Action2 {
|
|
|
219
239
|
}
|
|
220
240
|
});
|
|
221
241
|
CommandsRegistry.registerCommand({
|
|
222
|
-
id:
|
|
242
|
+
id: "welcome.newWorkspaceChat",
|
|
223
243
|
handler: (accessor, stepID) => {
|
|
224
244
|
const commandService = accessor.get(ICommandService);
|
|
225
|
-
commandService.executeCommand(
|
|
245
|
+
commandService.executeCommand("workbench.action.chat.open", {
|
|
246
|
+
mode: "agent",
|
|
247
|
+
query: "#new ",
|
|
248
|
+
isPartialQuery: true
|
|
249
|
+
});
|
|
226
250
|
}
|
|
227
251
|
});
|
|
228
|
-
const WorkspacePlatform = ( new RawContextKey(
|
|
229
|
-
|
|
252
|
+
const WorkspacePlatform = ( new RawContextKey("workspacePlatform", undefined, ( localize(
|
|
253
|
+
13550,
|
|
230
254
|
"The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
|
|
231
255
|
))));
|
|
232
256
|
let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
233
|
-
static {
|
|
257
|
+
static {
|
|
258
|
+
this.ID = "workbench.contrib.workspacePlatform";
|
|
259
|
+
}
|
|
234
260
|
constructor(extensionManagementServerService, remoteAgentService, contextService) {
|
|
235
261
|
this.extensionManagementServerService = extensionManagementServerService;
|
|
236
262
|
this.remoteAgentService = remoteAgentService;
|
|
237
263
|
this.contextService = contextService;
|
|
238
264
|
this.remoteAgentService.getEnvironment().then(env => {
|
|
239
265
|
const remoteOS = env?.os;
|
|
240
|
-
const remotePlatform = remoteOS === OperatingSystem.Macintosh ?
|
|
241
|
-
: remoteOS === OperatingSystem.Windows ? 'windows'
|
|
242
|
-
: remoteOS === OperatingSystem.Linux ? 'linux'
|
|
243
|
-
: undefined;
|
|
266
|
+
const remotePlatform = remoteOS === OperatingSystem.Macintosh ? "mac" : remoteOS === OperatingSystem.Windows ? "windows" : remoteOS === OperatingSystem.Linux ? "linux" : undefined;
|
|
244
267
|
if (remotePlatform) {
|
|
245
268
|
WorkspacePlatform.bindTo(this.contextService).set(remotePlatform);
|
|
246
|
-
}
|
|
247
|
-
else if (this.extensionManagementServerService.localExtensionManagementServer) {
|
|
269
|
+
} else if (this.extensionManagementServerService.localExtensionManagementServer) {
|
|
248
270
|
if (isMacintosh) {
|
|
249
|
-
WorkspacePlatform.bindTo(this.contextService).set(
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
else if (isWindows) {
|
|
255
|
-
WorkspacePlatform.bindTo(this.contextService).set('windows');
|
|
271
|
+
WorkspacePlatform.bindTo(this.contextService).set("mac");
|
|
272
|
+
} else if (isLinux) {
|
|
273
|
+
WorkspacePlatform.bindTo(this.contextService).set("linux");
|
|
274
|
+
} else if (isWindows) {
|
|
275
|
+
WorkspacePlatform.bindTo(this.contextService).set("windows");
|
|
256
276
|
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
else {
|
|
262
|
-
console.error('Error: Unable to detect workspace platform');
|
|
277
|
+
} else if (this.extensionManagementServerService.webExtensionManagementServer) {
|
|
278
|
+
WorkspacePlatform.bindTo(this.contextService).set("webworker");
|
|
279
|
+
} else {
|
|
280
|
+
console.error("Error: Unable to detect workspace platform");
|
|
263
281
|
}
|
|
264
282
|
});
|
|
265
283
|
}
|
|
266
284
|
};
|
|
267
|
-
WorkspacePlatformContribution = ( __decorate([
|
|
268
|
-
( __param(0, IExtensionManagementServerService)),
|
|
269
|
-
( __param(1, IRemoteAgentService)),
|
|
270
|
-
( __param(2, IContextKeyService))
|
|
271
|
-
], WorkspacePlatformContribution));
|
|
285
|
+
WorkspacePlatformContribution = ( __decorate([( __param(0, IExtensionManagementServerService)), ( __param(1, IRemoteAgentService)), ( __param(2, IContextKeyService))], WorkspacePlatformContribution));
|
|
272
286
|
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
273
287
|
configurationRegistry.registerConfiguration({
|
|
274
288
|
...workbenchConfigurationNodeBase,
|
|
275
289
|
properties: {
|
|
276
|
-
|
|
290
|
+
"workbench.welcomePage.walkthroughs.openOnInstall": {
|
|
277
291
|
scope: ConfigurationScope.MACHINE,
|
|
278
|
-
type:
|
|
292
|
+
type: "boolean",
|
|
279
293
|
default: true,
|
|
280
294
|
description: ( localize(
|
|
281
|
-
|
|
295
|
+
13551,
|
|
282
296
|
"When enabled, an extension's walkthrough will open upon install of the extension."
|
|
283
297
|
))
|
|
284
298
|
},
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
299
|
+
"workbench.startupEditor": {
|
|
300
|
+
"scope": ConfigurationScope.RESOURCE,
|
|
301
|
+
"type": "string",
|
|
302
|
+
"enum": [
|
|
303
|
+
"none",
|
|
304
|
+
"welcomePage",
|
|
305
|
+
"readme",
|
|
306
|
+
"newUntitledFile",
|
|
307
|
+
"welcomePageInEmptyWorkbench",
|
|
308
|
+
"terminal",
|
|
309
|
+
"agentSessionsWelcomePage"
|
|
310
|
+
],
|
|
311
|
+
"enumDescriptions": [( localize(13552, "Start without an editor.")), ( localize(
|
|
312
|
+
13553,
|
|
293
313
|
"Open the Welcome page, with content to aid in getting started with VS Code and extensions."
|
|
294
|
-
)),
|
|
295
|
-
|
|
296
|
-
13178,
|
|
314
|
+
)), ( localize(
|
|
315
|
+
13554,
|
|
297
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."
|
|
298
|
-
)),
|
|
299
|
-
|
|
300
|
-
13179,
|
|
317
|
+
)), ( localize(
|
|
318
|
+
13555,
|
|
301
319
|
"Open a new untitled text file (only applies when opening an empty window)."
|
|
302
|
-
)),
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
'default': 'welcomePage',
|
|
307
|
-
'description': ( localize(
|
|
308
|
-
13182,
|
|
320
|
+
)), ( localize(13556, "Open the Welcome page when opening an empty workbench.")), ( localize(13557, "Open a new terminal in the editor area.")), ( localize(13558, "Open the Agent Sessions Welcome page."))],
|
|
321
|
+
"default": "welcomePage",
|
|
322
|
+
"description": ( localize(
|
|
323
|
+
13559,
|
|
309
324
|
"Controls which editor is shown at startup, if none are restored from the previous session."
|
|
310
|
-
))
|
|
325
|
+
)),
|
|
326
|
+
"experiment": {
|
|
327
|
+
mode: "auto"
|
|
328
|
+
}
|
|
311
329
|
},
|
|
312
|
-
|
|
330
|
+
"workbench.welcomePage.preferReducedMotion": {
|
|
313
331
|
scope: ConfigurationScope.APPLICATION,
|
|
314
|
-
type:
|
|
332
|
+
type: "boolean",
|
|
315
333
|
default: false,
|
|
316
|
-
deprecationMessage: ( localize(
|
|
317
|
-
description: ( localize(
|
|
334
|
+
deprecationMessage: ( localize(13560, "Deprecated, use the global `workbench.reduceMotion`.")),
|
|
335
|
+
description: ( localize(13561, "When enabled, reduce motion in welcome page."))
|
|
318
336
|
}
|
|
319
337
|
}
|
|
320
338
|
});
|
|
321
|
-
registerWorkbenchContribution2(
|
|
322
|
-
|
|
323
|
-
|
|
339
|
+
registerWorkbenchContribution2(
|
|
340
|
+
WorkspacePlatformContribution.ID,
|
|
341
|
+
WorkspacePlatformContribution,
|
|
342
|
+
WorkbenchPhase.AfterRestored
|
|
343
|
+
);
|
|
344
|
+
registerWorkbenchContribution2(
|
|
345
|
+
StartupPageEditorResolverContribution.ID,
|
|
346
|
+
StartupPageEditorResolverContribution,
|
|
347
|
+
WorkbenchPhase.BlockRestore
|
|
348
|
+
);
|
|
349
|
+
registerWorkbenchContribution2(
|
|
350
|
+
StartupPageRunnerContribution.ID,
|
|
351
|
+
StartupPageRunnerContribution,
|
|
352
|
+
WorkbenchPhase.AfterRestored
|
|
353
|
+
);
|
|
324
354
|
AccessibleViewRegistry.register(( new GettingStartedAccessibleView()));
|
|
325
355
|
|
|
326
356
|
export { WorkspacePlatform };
|