@codingame/monaco-vscode-walkthrough-service-override 11.1.2 → 12.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/assets/multi-file-edits.svg +513 -0
- package/index.d.ts +2 -1
- package/index.js +19 -1
- package/package.json +24 -8
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +67 -66
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.d.ts +146 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +153 -150
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.js +84 -32
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +8 -7
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.js +3 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +41 -37
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +3 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +3 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedList.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedList.js +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +10 -8
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.d.ts +147 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +86 -83
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +43 -38
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +208 -165
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/all.svg.js +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +4 -3
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +7 -6
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +7 -6
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/vs_code_editor_walkthrough.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/vs_code_editor_walkthrough.js +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/media/walkThroughPart.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +6 -5
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions.js +11 -8
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +6 -4
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +34 -31
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +5 -3
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +3 -2
- package/walkthrough.js +0 -18
package/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
2
|
+
export default function getServiceOverride(): IEditorOverrideServices;
|
package/index.js
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
|
+
import { WalkthroughsService } from './vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js';
|
|
4
|
+
import { IWalkthroughsService } from 'vscode/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service';
|
|
5
|
+
import './vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js';
|
|
6
|
+
import './vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js';
|
|
7
|
+
import svgAssets from './vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/all.svg.js';
|
|
8
|
+
import pngAssets from './vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/all.png.js';
|
|
9
|
+
import { registerAssets } from 'vscode/assets';
|
|
10
|
+
|
|
11
|
+
registerAssets(svgAssets);
|
|
12
|
+
registerAssets(pngAssets);
|
|
13
|
+
function getServiceOverride() {
|
|
14
|
+
return {
|
|
15
|
+
[IWalkthroughsService.toString()]: new SyncDescriptor(WalkthroughsService, [], true)
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { getServiceOverride as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-walkthrough-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "VSCode public API plugged on the monaco editor - walkthrough service-override",
|
|
4
6
|
"keywords": [],
|
|
5
7
|
"author": {
|
|
6
8
|
"name": "CodinGame",
|
|
@@ -12,8 +14,21 @@
|
|
|
12
14
|
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
13
15
|
},
|
|
14
16
|
"type": "module",
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@codingame/monaco-vscode-3dd5b442-bfbc-5b1d-8f4a-7567530c75f5-common": "12.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common": "12.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "12.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-7bbc9e7d-eeae-55fc-8bf9-dc2f66e0dc73-common": "12.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-82e231ca-6ed7-5920-b2b8-1874ccc0be07-common": "12.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "12.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "12.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-cc9ccbec-e2a1-599d-84ae-46f5efc666e3-common": "12.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-e571cbbb-526b-5d8b-92c5-a0437d2dabb3-common": "12.0.0",
|
|
27
|
+
"marked": "12.0.0",
|
|
28
|
+
"vscode": "npm:@codingame/monaco-vscode-api@12.0.0"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {},
|
|
31
|
+
"peerDependenciesMeta": {},
|
|
17
32
|
"main": "index.js",
|
|
18
33
|
"module": "index.js",
|
|
19
34
|
"types": "index.d.ts",
|
|
@@ -22,11 +37,12 @@
|
|
|
22
37
|
"default": "./index.js"
|
|
23
38
|
},
|
|
24
39
|
"./vscode/*": {
|
|
25
|
-
"default": "./vscode/src/*.js"
|
|
40
|
+
"default": "./vscode/src/*.js",
|
|
41
|
+
"types": "./vscode/src/*.d.ts"
|
|
42
|
+
},
|
|
43
|
+
"./*": {
|
|
44
|
+
"default": "./*.js",
|
|
45
|
+
"types": "./*.d.ts"
|
|
26
46
|
}
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.1.2",
|
|
30
|
-
"marked": "~14.0.0"
|
|
31
47
|
}
|
|
32
48
|
}
|
package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { localize2, localize } from 'vscode/vscode/vs/nls';
|
|
3
4
|
import { GettingStartedInputSerializer, GettingStartedPage, inWelcomeContext } from './gettingStarted.js';
|
|
4
5
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
@@ -9,23 +10,25 @@ import { ContextKeyExpr, RawContextKey } from 'vscode/vscode/vs/platform/context
|
|
|
9
10
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
10
11
|
import { SIDE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
11
12
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
12
|
-
import {
|
|
13
|
+
import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
14
|
+
import { KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
15
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/editor';
|
|
13
16
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
14
17
|
import { IWalkthroughsService } from 'vscode/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service';
|
|
15
18
|
import { GettingStartedInput } from './gettingStartedInput.js';
|
|
16
|
-
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
17
|
-
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
19
|
+
import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
20
|
+
import { Extensions, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
18
21
|
import { workbenchConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
|
|
19
22
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
20
23
|
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
21
24
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
22
25
|
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
23
26
|
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
24
|
-
import { isMacintosh, isLinux, isWindows } from 'vscode/vscode/vs/base/common/platform';
|
|
27
|
+
import { OperatingSystem, isMacintosh, isLinux, isWindows } from 'vscode/vscode/vs/base/common/platform';
|
|
25
28
|
import { IExtensionManagementServerService } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service';
|
|
26
29
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
27
30
|
import { StartupPageEditorResolverContribution, StartupPageRunnerContribution } from './startupPage.js';
|
|
28
|
-
import { ExtensionsInput } from 'vscode/vscode/vs/workbench/contrib/extensions/common/extensionsInput';
|
|
31
|
+
import { ExtensionsInput } from '@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common/vscode/vs/workbench/contrib/extensions/common/extensionsInput';
|
|
29
32
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
30
33
|
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
31
34
|
import { AccessibleViewRegistry } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
|
|
@@ -37,7 +40,7 @@ registerAction2(class extends Action2 {
|
|
|
37
40
|
constructor() {
|
|
38
41
|
super({
|
|
39
42
|
id: 'workbench.action.openWalkthrough',
|
|
40
|
-
title: ( localize2(
|
|
43
|
+
title: ( localize2(10719, 'Welcome')),
|
|
41
44
|
category: Categories.Help,
|
|
42
45
|
f1: true,
|
|
43
46
|
menu: {
|
|
@@ -46,7 +49,7 @@ registerAction2(class extends Action2 {
|
|
|
46
49
|
order: 1,
|
|
47
50
|
},
|
|
48
51
|
metadata: {
|
|
49
|
-
description: ( localize2(
|
|
52
|
+
description: ( localize2(10720, 'Opens a Walkthrough to help you get started in VS Code.'))
|
|
50
53
|
}
|
|
51
54
|
});
|
|
52
55
|
}
|
|
@@ -123,23 +126,23 @@ registerAction2(class extends Action2 {
|
|
|
123
126
|
}
|
|
124
127
|
}
|
|
125
128
|
});
|
|
126
|
-
(
|
|
127
|
-
(
|
|
128
|
-
(
|
|
129
|
+
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(GettingStartedInput.ID, GettingStartedInputSerializer);
|
|
130
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(GettingStartedPage, GettingStartedPage.ID, ( localize(10721, "Welcome"))), [
|
|
131
|
+
( new SyncDescriptor(GettingStartedInput))
|
|
129
132
|
]);
|
|
130
|
-
const category = ( localize2(
|
|
133
|
+
const category = ( localize2(10721, "Welcome"));
|
|
131
134
|
registerAction2(class extends Action2 {
|
|
132
135
|
constructor() {
|
|
133
136
|
super({
|
|
134
137
|
id: 'welcome.goBack',
|
|
135
|
-
title: ( localize2(
|
|
138
|
+
title: ( localize2(10722, 'Go Back')),
|
|
136
139
|
category,
|
|
137
140
|
keybinding: {
|
|
138
|
-
weight:
|
|
139
|
-
primary:
|
|
141
|
+
weight: KeybindingWeight.EditorContrib,
|
|
142
|
+
primary: KeyCode.Escape,
|
|
140
143
|
when: inWelcomeContext
|
|
141
144
|
},
|
|
142
|
-
precondition: (
|
|
145
|
+
precondition: ( ContextKeyExpr.equals('activeEditor', 'gettingStartedPage')),
|
|
143
146
|
f1: true
|
|
144
147
|
});
|
|
145
148
|
}
|
|
@@ -168,7 +171,7 @@ registerAction2(class extends Action2 {
|
|
|
168
171
|
constructor() {
|
|
169
172
|
super({
|
|
170
173
|
id: 'welcome.markStepComplete',
|
|
171
|
-
title: ( localize(
|
|
174
|
+
title: ( localize(10723, "Mark Step Complete")),
|
|
172
175
|
category,
|
|
173
176
|
});
|
|
174
177
|
}
|
|
@@ -184,7 +187,7 @@ registerAction2(class extends Action2 {
|
|
|
184
187
|
constructor() {
|
|
185
188
|
super({
|
|
186
189
|
id: 'welcome.markStepIncomplete',
|
|
187
|
-
title: ( localize(
|
|
190
|
+
title: ( localize(10724, "Mark Step Incomplete")),
|
|
188
191
|
category,
|
|
189
192
|
});
|
|
190
193
|
}
|
|
@@ -200,23 +203,21 @@ registerAction2(class extends Action2 {
|
|
|
200
203
|
constructor() {
|
|
201
204
|
super({
|
|
202
205
|
id: 'welcome.showAllWalkthroughs',
|
|
203
|
-
title: ( localize2(
|
|
206
|
+
title: ( localize2(10725, 'Open Walkthrough...')),
|
|
204
207
|
category,
|
|
205
208
|
f1: true,
|
|
206
209
|
});
|
|
207
210
|
}
|
|
208
211
|
async getQuickPickItems(contextService, gettingStartedService) {
|
|
209
212
|
const categories = await gettingStartedService.getWalkthroughs();
|
|
210
|
-
return (
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
})))
|
|
219
|
-
);
|
|
213
|
+
return ( categories
|
|
214
|
+
.filter(c => contextService.contextMatchesRules(c.when))
|
|
215
|
+
.map(x => ({
|
|
216
|
+
id: x.id,
|
|
217
|
+
label: x.title,
|
|
218
|
+
detail: x.description,
|
|
219
|
+
description: x.source,
|
|
220
|
+
})));
|
|
220
221
|
}
|
|
221
222
|
async run(accessor) {
|
|
222
223
|
const commandService = accessor.get(ICommandService);
|
|
@@ -224,12 +225,12 @@ registerAction2(class extends Action2 {
|
|
|
224
225
|
const quickInputService = accessor.get(IQuickInputService);
|
|
225
226
|
const gettingStartedService = accessor.get(IWalkthroughsService);
|
|
226
227
|
const extensionService = accessor.get(IExtensionService);
|
|
227
|
-
const disposables = (
|
|
228
|
+
const disposables = ( new DisposableStore());
|
|
228
229
|
const quickPick = disposables.add(quickInputService.createQuickPick());
|
|
229
230
|
quickPick.canSelectMany = false;
|
|
230
231
|
quickPick.matchOnDescription = true;
|
|
231
232
|
quickPick.matchOnDetail = true;
|
|
232
|
-
quickPick.placeholder = ( localize(
|
|
233
|
+
quickPick.placeholder = ( localize(10726, 'Select a walkthrough to open'));
|
|
233
234
|
quickPick.items = await this.getQuickPickItems(contextService, gettingStartedService);
|
|
234
235
|
quickPick.busy = true;
|
|
235
236
|
disposables.add(quickPick.onDidAccept(() => {
|
|
@@ -248,10 +249,10 @@ registerAction2(class extends Action2 {
|
|
|
248
249
|
quickPick.busy = false;
|
|
249
250
|
}
|
|
250
251
|
});
|
|
251
|
-
const WorkspacePlatform = (
|
|
252
|
-
|
|
252
|
+
const WorkspacePlatform = ( new RawContextKey('workspacePlatform', undefined, ( localize(
|
|
253
|
+
10727,
|
|
253
254
|
"The platform of the current workspace, which in remote or serverless contexts may be different from the platform of the UI"
|
|
254
|
-
))))
|
|
255
|
+
))));
|
|
255
256
|
let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
256
257
|
static { this.ID = 'workbench.contrib.workspacePlatform'; }
|
|
257
258
|
constructor(extensionManagementServerService, remoteAgentService, contextService) {
|
|
@@ -260,9 +261,9 @@ let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
|
260
261
|
this.contextService = contextService;
|
|
261
262
|
this.remoteAgentService.getEnvironment().then(env => {
|
|
262
263
|
const remoteOS = env?.os;
|
|
263
|
-
const remotePlatform = remoteOS ===
|
|
264
|
-
: remoteOS ===
|
|
265
|
-
: remoteOS ===
|
|
264
|
+
const remotePlatform = remoteOS === OperatingSystem.Macintosh ? 'mac'
|
|
265
|
+
: remoteOS === OperatingSystem.Windows ? 'windows'
|
|
266
|
+
: remoteOS === OperatingSystem.Linux ? 'linux'
|
|
266
267
|
: undefined;
|
|
267
268
|
if (remotePlatform) {
|
|
268
269
|
WorkspacePlatform.bindTo(this.contextService).set(remotePlatform);
|
|
@@ -287,63 +288,63 @@ let WorkspacePlatformContribution = class WorkspacePlatformContribution {
|
|
|
287
288
|
});
|
|
288
289
|
}
|
|
289
290
|
};
|
|
290
|
-
WorkspacePlatformContribution = (
|
|
291
|
-
(
|
|
292
|
-
(
|
|
293
|
-
(
|
|
294
|
-
], WorkspacePlatformContribution))
|
|
295
|
-
const configurationRegistry = (
|
|
291
|
+
WorkspacePlatformContribution = ( __decorate([
|
|
292
|
+
( __param(0, IExtensionManagementServerService)),
|
|
293
|
+
( __param(1, IRemoteAgentService)),
|
|
294
|
+
( __param(2, IContextKeyService))
|
|
295
|
+
], WorkspacePlatformContribution));
|
|
296
|
+
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
296
297
|
configurationRegistry.registerConfiguration({
|
|
297
298
|
...workbenchConfigurationNodeBase,
|
|
298
299
|
properties: {
|
|
299
300
|
'workbench.welcomePage.walkthroughs.openOnInstall': {
|
|
300
|
-
scope:
|
|
301
|
+
scope: ConfigurationScope.MACHINE,
|
|
301
302
|
type: 'boolean',
|
|
302
303
|
default: true,
|
|
303
304
|
description: ( localize(
|
|
304
|
-
|
|
305
|
+
10728,
|
|
305
306
|
"When enabled, an extension's walkthrough will open upon install of the extension."
|
|
306
307
|
))
|
|
307
308
|
},
|
|
308
309
|
'workbench.startupEditor': {
|
|
309
|
-
'scope':
|
|
310
|
+
'scope': ConfigurationScope.RESOURCE,
|
|
310
311
|
'type': 'string',
|
|
311
312
|
'enum': ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench', 'terminal'],
|
|
312
313
|
'enumDescriptions': [
|
|
313
|
-
( localize(
|
|
314
|
+
( localize(10729, "Start without an editor.")),
|
|
314
315
|
( localize(
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
10730,
|
|
317
|
+
"Open the Welcome page, with content to aid in getting started with VS Code and extensions."
|
|
318
|
+
)),
|
|
318
319
|
( localize(
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
10731,
|
|
321
|
+
"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."
|
|
322
|
+
)),
|
|
322
323
|
( localize(
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
( localize(
|
|
327
|
-
( localize(
|
|
324
|
+
10732,
|
|
325
|
+
"Open a new untitled text file (only applies when opening an empty window)."
|
|
326
|
+
)),
|
|
327
|
+
( localize(10733, "Open the Welcome page when opening an empty workbench.")),
|
|
328
|
+
( localize(10734, "Open a new terminal in the editor area.")),
|
|
328
329
|
],
|
|
329
330
|
'default': 'welcomePage',
|
|
330
331
|
'description': ( localize(
|
|
331
|
-
|
|
332
|
+
10735,
|
|
332
333
|
"Controls which editor is shown at startup, if none are restored from the previous session."
|
|
333
334
|
))
|
|
334
335
|
},
|
|
335
336
|
'workbench.welcomePage.preferReducedMotion': {
|
|
336
|
-
scope:
|
|
337
|
+
scope: ConfigurationScope.APPLICATION,
|
|
337
338
|
type: 'boolean',
|
|
338
339
|
default: false,
|
|
339
|
-
deprecationMessage: ( localize(
|
|
340
|
-
description: ( localize(
|
|
340
|
+
deprecationMessage: ( localize(10736, "Deprecated, use the global `workbench.reduceMotion`.")),
|
|
341
|
+
description: ( localize(10737, "When enabled, reduce motion in welcome page."))
|
|
341
342
|
}
|
|
342
343
|
}
|
|
343
344
|
});
|
|
344
|
-
registerWorkbenchContribution2(WorkspacePlatformContribution.ID, WorkspacePlatformContribution,
|
|
345
|
-
registerWorkbenchContribution2(StartupPageEditorResolverContribution.ID, StartupPageEditorResolverContribution,
|
|
346
|
-
registerWorkbenchContribution2(StartupPageRunnerContribution.ID, StartupPageRunnerContribution,
|
|
347
|
-
AccessibleViewRegistry.register((
|
|
345
|
+
registerWorkbenchContribution2(WorkspacePlatformContribution.ID, WorkspacePlatformContribution, WorkbenchPhase.AfterRestored);
|
|
346
|
+
registerWorkbenchContribution2(StartupPageEditorResolverContribution.ID, StartupPageEditorResolverContribution, WorkbenchPhase.BlockRestore);
|
|
347
|
+
registerWorkbenchContribution2(StartupPageRunnerContribution.ID, StartupPageRunnerContribution, WorkbenchPhase.AfterRestored);
|
|
348
|
+
AccessibleViewRegistry.register(( new GettingStartedAccessibleView()));
|
|
348
349
|
|
|
349
350
|
export { WorkspacePlatform };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { Dimension } from "vscode/vscode/vs/base/browser/dom";
|
|
2
|
+
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
3
|
+
import { ThemeIcon } from "vscode/vscode/vs/base/common/themables";
|
|
4
|
+
import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
|
|
5
|
+
import { IAccessibilityService } from "vscode/vscode/vs/platform/accessibility/common/accessibility.service";
|
|
6
|
+
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
7
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
8
|
+
import { ContextKeyExpression, RawContextKey } from "vscode/vscode/vs/platform/contextkey/common/contextkey";
|
|
9
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
10
|
+
import { IEditorOptions } from "vscode/vscode/vs/platform/editor/common/editor";
|
|
11
|
+
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
12
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
13
|
+
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
14
|
+
import { ILabelService } from "vscode/vscode/vs/platform/label/common/label.service";
|
|
15
|
+
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
16
|
+
import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
|
|
17
|
+
import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
|
|
18
|
+
import { IQuickInputService } from "vscode/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
19
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
20
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
21
|
+
import { IWorkspaceContextService } from "vscode/vscode/vs/platform/workspace/common/workspace.service";
|
|
22
|
+
import { IWorkspacesService } from "vscode/vscode/vs/platform/workspaces/common/workspaces.service";
|
|
23
|
+
import { EditorPane } from "@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/parts/editor/editorPane";
|
|
24
|
+
import { IEditorOpenContext, IEditorSerializer } from "vscode/vscode/vs/workbench/common/editor";
|
|
25
|
+
import { IWebviewService } from "vscode/vscode/vs/workbench/contrib/webview/browser/webview.service";
|
|
26
|
+
import { GettingStartedInput } from "./gettingStartedInput.js";
|
|
27
|
+
import { IWalkthroughsService } from "vscode/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service";
|
|
28
|
+
import { IEditorGroup } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService";
|
|
29
|
+
import { IEditorGroupsService } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
30
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
31
|
+
import { IHostService } from "vscode/vscode/vs/workbench/services/host/browser/host.service";
|
|
32
|
+
import { IWorkbenchThemeService } from "@codingame/monaco-vscode-3dd5b442-bfbc-5b1d-8f4a-7567530c75f5-common/vscode/vs/workbench/services/themes/common/workbenchThemeService.service";
|
|
33
|
+
export declare const allWalkthroughsHiddenContext: RawContextKey<boolean>;
|
|
34
|
+
export declare const inWelcomeContext: RawContextKey<boolean>;
|
|
35
|
+
export interface IWelcomePageStartEntry {
|
|
36
|
+
id: string;
|
|
37
|
+
title: string;
|
|
38
|
+
description: string;
|
|
39
|
+
command: string;
|
|
40
|
+
order: number;
|
|
41
|
+
icon: {
|
|
42
|
+
type: "icon";
|
|
43
|
+
icon: ThemeIcon;
|
|
44
|
+
};
|
|
45
|
+
when: ContextKeyExpression;
|
|
46
|
+
}
|
|
47
|
+
export declare class GettingStartedPage extends EditorPane {
|
|
48
|
+
private readonly commandService;
|
|
49
|
+
private readonly productService;
|
|
50
|
+
private readonly keybindingService;
|
|
51
|
+
private readonly gettingStartedService;
|
|
52
|
+
private readonly configurationService;
|
|
53
|
+
private readonly languageService;
|
|
54
|
+
private readonly fileService;
|
|
55
|
+
private readonly openerService;
|
|
56
|
+
protected readonly themeService: IWorkbenchThemeService;
|
|
57
|
+
private storageService;
|
|
58
|
+
private readonly extensionService;
|
|
59
|
+
private readonly instantiationService;
|
|
60
|
+
private readonly notificationService;
|
|
61
|
+
private readonly groupsService;
|
|
62
|
+
private quickInputService;
|
|
63
|
+
private readonly workspacesService;
|
|
64
|
+
private readonly labelService;
|
|
65
|
+
private readonly hostService;
|
|
66
|
+
private readonly webviewService;
|
|
67
|
+
private readonly workspaceContextService;
|
|
68
|
+
private readonly accessibilityService;
|
|
69
|
+
static readonly ID = "gettingStartedPage";
|
|
70
|
+
private editorInput;
|
|
71
|
+
private inProgressScroll;
|
|
72
|
+
private readonly dispatchListeners;
|
|
73
|
+
private readonly stepDisposables;
|
|
74
|
+
private readonly detailsPageDisposables;
|
|
75
|
+
private readonly mediaDisposables;
|
|
76
|
+
private recentlyOpened;
|
|
77
|
+
private gettingStartedCategories;
|
|
78
|
+
private currentWalkthrough;
|
|
79
|
+
private prevWalkthrough;
|
|
80
|
+
private categoriesPageScrollbar;
|
|
81
|
+
private detailsPageScrollbar;
|
|
82
|
+
private detailsScrollbar;
|
|
83
|
+
private buildSlideThrottle;
|
|
84
|
+
private container;
|
|
85
|
+
private contextService;
|
|
86
|
+
private hasScrolledToFirstCategory;
|
|
87
|
+
private recentlyOpenedList?;
|
|
88
|
+
private startList?;
|
|
89
|
+
private gettingStartedList?;
|
|
90
|
+
private stepsSlide;
|
|
91
|
+
private categoriesSlide;
|
|
92
|
+
private stepsContent;
|
|
93
|
+
private stepMediaComponent;
|
|
94
|
+
private webview;
|
|
95
|
+
private layoutMarkdown;
|
|
96
|
+
private detailsRenderer;
|
|
97
|
+
private readonly categoriesSlideDisposables;
|
|
98
|
+
private showFeaturedWalkthrough;
|
|
99
|
+
constructor(group: IEditorGroup, commandService: ICommandService, productService: IProductService, keybindingService: IKeybindingService, gettingStartedService: IWalkthroughsService, configurationService: IConfigurationService, telemetryService: ITelemetryService, languageService: ILanguageService, fileService: IFileService, openerService: IOpenerService, themeService: IWorkbenchThemeService, storageService: IStorageService, extensionService: IExtensionService, instantiationService: IInstantiationService, notificationService: INotificationService, groupsService: IEditorGroupsService, contextService: IContextKeyService, quickInputService: IQuickInputService, workspacesService: IWorkspacesService, labelService: ILabelService, hostService: IHostService, webviewService: IWebviewService, workspaceContextService: IWorkspaceContextService, accessibilityService: IAccessibilityService);
|
|
100
|
+
private shouldAnimate;
|
|
101
|
+
private getWalkthroughCompletionStats;
|
|
102
|
+
setInput(newInput: GettingStartedInput, options: IEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<void>;
|
|
103
|
+
makeCategoryVisibleWhenAvailable(categoryID: string, stepId?: string): Promise<void>;
|
|
104
|
+
private registerDispatchListeners;
|
|
105
|
+
private runDispatchCommand;
|
|
106
|
+
private hideCategory;
|
|
107
|
+
private markAllStepsComplete;
|
|
108
|
+
private toggleStepCompletion;
|
|
109
|
+
private openWalkthroughSelector;
|
|
110
|
+
private getHiddenCategories;
|
|
111
|
+
private setHiddenCategories;
|
|
112
|
+
private currentMediaComponent;
|
|
113
|
+
private currentMediaType;
|
|
114
|
+
private buildMediaComponent;
|
|
115
|
+
selectStepLoose(id: string): Promise<void>;
|
|
116
|
+
private provideScreenReaderUpdate;
|
|
117
|
+
private selectStep;
|
|
118
|
+
private updateMediaSourceForColorMode;
|
|
119
|
+
protected createEditor(parent: HTMLElement): void;
|
|
120
|
+
private buildCategoriesSlide;
|
|
121
|
+
private buildRecentlyOpenedList;
|
|
122
|
+
private buildStartList;
|
|
123
|
+
private buildGettingStartedWalkthroughsList;
|
|
124
|
+
layout(size: Dimension): void;
|
|
125
|
+
private updateCategoryProgress;
|
|
126
|
+
private scrollToCategory;
|
|
127
|
+
private iconWidgetFor;
|
|
128
|
+
private focusSideEditorGroup;
|
|
129
|
+
private runStepCommand;
|
|
130
|
+
private buildMarkdownDescription;
|
|
131
|
+
clearInput(): void;
|
|
132
|
+
private buildCategorySlide;
|
|
133
|
+
private buildTelemetryFooter;
|
|
134
|
+
private getKeybindingLabel;
|
|
135
|
+
private getKeyBinding;
|
|
136
|
+
private scrollPrev;
|
|
137
|
+
private runSkip;
|
|
138
|
+
escape(): void;
|
|
139
|
+
private setSlide;
|
|
140
|
+
focus(): void;
|
|
141
|
+
}
|
|
142
|
+
export declare class GettingStartedInputSerializer implements IEditorSerializer {
|
|
143
|
+
canSerialize(editorInput: GettingStartedInput): boolean;
|
|
144
|
+
serialize(editorInput: GettingStartedInput): string;
|
|
145
|
+
deserialize(instantiationService: IInstantiationService, serializedEditorInput: string): GettingStartedInput;
|
|
146
|
+
}
|