@codingame/monaco-vscode-welcome-service-override 4.0.0 → 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.
Files changed (26) hide show
  1. package/package.json +2 -2
  2. package/welcome.js +4 -4
  3. package/external/rollup-plugin-styles/dist/runtime/inject-css.js +0 -3
  4. package/external/tslib/tslib.es6.js +0 -11
  5. package/external/vscode-marked/lib/marked.esm.js +0 -2200
  6. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +0 -382
  7. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +0 -1528
  8. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +0 -48
  9. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedDetailsRenderer.js +0 -263
  10. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +0 -16
  11. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +0 -53
  12. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedList.js +0 -97
  13. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css.js +0 -6
  14. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +0 -218
  15. package/vscode/src/vs/workbench/contrib/welcomeViews/common/newFile.contribution.js +0 -238
  16. package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcome.contribution.js +0 -19
  17. package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeContribution.js +0 -75
  18. package/vscode/src/vs/workbench/contrib/welcomeViews/common/viewsWelcomeExtensionPoint.js +0 -99
  19. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +0 -63
  20. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/media/walkThroughPart.css.js +0 -6
  21. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +0 -39
  22. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions.js +0 -59
  23. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +0 -115
  24. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +0 -431
  25. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +0 -76
  26. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +0 -19
@@ -1,63 +0,0 @@
1
- import 'vscode/vscode/vs/base/common/platform';
2
- import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
3
- import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
4
- import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
5
- import { WalkThroughInput } from '../walkThroughInput.js';
6
- import { FileAccess, Schemas } from 'vscode/vscode/vs/base/common/network';
7
- import { Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
8
- import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
9
-
10
- const typeId = 'workbench.editors.walkThroughInput';
11
- const inputOptions = {
12
- typeId,
13
- name: ( localizeWithPath(
14
- 'vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough',
15
- 'editorWalkThrough.title',
16
- "Editor Playground"
17
- )),
18
- resource: ( FileAccess.asBrowserUri(
19
- 'vs/workbench/contrib/welcomeWalkthrough/browser/editor/vs_code_editor_walkthrough.md'
20
- ))
21
- .with({
22
- scheme: Schemas.walkThrough,
23
- query: JSON.stringify({ moduleId: 'vs/workbench/contrib/welcomeWalkthrough/browser/editor/vs_code_editor_walkthrough' })
24
- }),
25
- telemetryFrom: 'walkThrough'
26
- };
27
- class EditorWalkThroughAction extends Action2 {
28
- static { this.ID = 'workbench.action.showInteractivePlayground'; }
29
- static { this.LABEL = ( localize2WithPath(
30
- 'vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough',
31
- 'editorWalkThrough',
32
- 'Interactive Editor Playground'
33
- )); }
34
- constructor() {
35
- super({
36
- id: EditorWalkThroughAction.ID,
37
- title: EditorWalkThroughAction.LABEL,
38
- category: Categories.Help,
39
- f1: true
40
- });
41
- }
42
- run(serviceAccessor) {
43
- const editorService = serviceAccessor.get(IEditorService);
44
- const instantiationService = serviceAccessor.get(IInstantiationService);
45
- const input = instantiationService.createInstance(WalkThroughInput, inputOptions);
46
- return editorService.openEditor(input, { pinned: true })
47
- .then(() => void (0));
48
- }
49
- }
50
- class EditorWalkThroughInputSerializer {
51
- static { this.ID = typeId; }
52
- canSerialize(editorInput) {
53
- return true;
54
- }
55
- serialize(editorInput) {
56
- return '';
57
- }
58
- deserialize(instantiationService) {
59
- return instantiationService.createInstance(WalkThroughInput, inputOptions);
60
- }
61
- }
62
-
63
- export { EditorWalkThroughAction, EditorWalkThroughInputSerializer };
@@ -1,6 +0,0 @@
1
- import n from '../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
2
-
3
- var css = ".monaco-workbench .part.editor>.content .walkThroughContent{box-sizing:border-box;height:inherit;line-height:22px;padding:10px 20px;user-select:auto;-webkit-user-select:initial}.monaco-workbench .part.editor>.content .walkThroughContent img{max-height:100%;max-width:100%}.monaco-workbench .part.editor>.content .walkThroughContent a{text-decoration:none}.monaco-workbench .part.editor>.content .walkThroughContent a:focus,.monaco-workbench .part.editor>.content .walkThroughContent input:focus,.monaco-workbench .part.editor>.content .walkThroughContent select:focus,.monaco-workbench .part.editor>.content .walkThroughContent textarea:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-workbench .part.editor>.content .walkThroughContent hr{border:0;border-bottom:2px solid;height:2px}.monaco-workbench .part.editor>.content .walkThroughContent h1,.monaco-workbench .part.editor>.content .walkThroughContent h2,.monaco-workbench .part.editor>.content .walkThroughContent h3{font-weight:lighter;margin-bottom:10px;margin-top:20px}.monaco-workbench .part.editor>.content .walkThroughContent h1{border-bottom-style:solid;border-bottom-width:1px;font-size:40px;line-height:1.2;margin-bottom:15px;padding-bottom:.3em}.monaco-workbench .part.editor>.content .walkThroughContent h2{font-size:30px;margin-top:30px}.monaco-workbench .part.editor>.content .walkThroughContent h3{font-size:22px}.monaco-workbench .part.editor>.content .walkThroughContent h4{font-size:12px;margin-bottom:10px;margin-top:30px;text-transform:uppercase}.monaco-workbench .part.editor>.content .walkThroughContent a:hover{text-decoration:underline}.monaco-workbench .part.editor>.content .walkThroughContent table{border-collapse:collapse}.monaco-workbench .part.editor>.content .walkThroughContent table>thead>tr>th{border-bottom:1px solid;text-align:left}.monaco-workbench .part.editor>.content .walkThroughContent table>tbody>tr>td,.monaco-workbench .part.editor>.content .walkThroughContent table>tbody>tr>th,.monaco-workbench .part.editor>.content .walkThroughContent table>thead>tr>td,.monaco-workbench .part.editor>.content .walkThroughContent table>thead>tr>th{padding:5px 10px}.monaco-workbench .part.editor>.content .walkThroughContent table>tbody>tr+tr>td{border-top:1px solid}.monaco-workbench .part.editor>.content .walkThroughContent .shortcut,.monaco-workbench .part.editor>.content .walkThroughContent code{font-family:var(--monaco-monospace-font);font-size:14px;line-height:19px}.monaco-workbench .part.editor>.content .walkThroughContent blockquote{background:var(--vscode-textBlockQuote-background);border-left:5px solid;border-color:var(--vscode-textBlockQuote-border);margin:0 7px 0 5px;padding:0 16px 0 10px}.monaco-workbench .part.editor>.content .walkThroughContent .monaco-tokenized-source{white-space:pre}.file-icons-enabled .show-file-icons .vs_code_editor_walkthrough\\.md-name-file-icon.md-ext-file-icon.ext-file-icon.markdown-lang-file-icon.file-icon:before{background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGQ9Ik0xMDI0IDEwMjRIMFYwaDEwMjR2MTAyNHoiIHN0eWxlPSJmaWxsOiNmNmY2ZjY7ZmlsbC1vcGFjaXR5OjAiIGZpbGw9Im5vbmUiLz48cGF0aCBkPSJNMTAyNCA4NS4zMzN2ODUzLjMzM0gwVjg1LjMzM2gxMDI0eiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjxwYXRoIGQ9Ik0wIDg1LjMzM2gyOTguNjY3djg1My4zMzNIMFY4NS4zMzN6bTEwMjQgMHY4NTMuMzMzSDM4NFY4NS4zMzNoNjQwem0tNTU0LjY2NyAxNjBoMzQxLjMzM3YtNjRINDY5LjMzM3Y2NHptMzQxLjMzNCA1MzMuMzM0SDQ2OS4zMzN2NjRoMzQxLjMzM2wuMDAxLTY0em0xMjgtMTQ5LjMzNEg1OTcuMzMzdjY0aDM0MS4zMzNsLjAwMS02NHptMC0xNDkuMzMzSDU5Ny4zMzN2NjRoMzQxLjMzM2wuMDAxLTY0em0wLTE0OS4zMzNINTk3LjMzM3Y2NGgzNDEuMzMzbC4wMDEtNjR6IiBzdHlsZT0iZmlsbDojMTY3YWJmIi8+PC9zdmc+\");content:\" \"}.monaco-workbench .part.editor>.content .walkThroughContent .linux-only,.monaco-workbench .part.editor>.content .walkThroughContent .mac-only,.monaco-workbench .part.editor>.content .walkThroughContent .windows-only{display:none}.monaco-workbench.linux .part.editor>.content .walkThroughContent .linux-only,.monaco-workbench.mac .part.editor>.content .walkThroughContent .mac-only,.monaco-workbench.windows .part.editor>.content .walkThroughContent .windows-only{display:initial}.monaco-workbench.hc-black .part.editor>.content .walkThroughContent .monaco-editor,.monaco-workbench.hc-light .part.editor>.content .walkThroughContent .monaco-editor{border-style:solid;border-width:1px}.monaco-workbench .part.editor>.content .walkThroughContent a[href]{color:var(--vscode-textLink-foreground)}.monaco-workbench .part.editor>.content .walkThroughContent a:hover,.monaco-workbench .part.editor>.content .walkThroughContent a[href]:active{color:var(--vscode-textLink-activeForeground)}.monaco-workbench .part.editor>.content .walkThroughContent a[href]:focus{outline-color:var(--vscode-focusBorder)}.monaco-workbench .part.editor>.content .walkThroughContent .shortcut,.monaco-workbench .part.editor>.content .walkThroughContent code{color:var(--vscode-textPreformat-foreground)}.monaco-workbench .part.editor>.content .walkThroughContent .monaco-editor{border-color:var(--vscode-contrastBorder)}.monaco-workbench .part.editor>.content .walkThroughContent .margin-view-overlays,.monaco-workbench .part.editor>.content .walkThroughContent .monaco-editor-background{background:var(--vscode-walkThrough-embeddedEditorBackground)}";
4
- n(css,{});
5
-
6
- export { css, css as default };
@@ -1,39 +0,0 @@
1
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
- import { WalkThroughInput } from './walkThroughInput.js';
3
- import { WalkThroughPart } from './walkThroughPart.js';
4
- import { WalkThroughArrowUp, WalkThroughArrowDown, WalkThroughPageUp, WalkThroughPageDown } from './walkThroughActions.js';
5
- import { WalkThroughSnippetContentProvider } from '../common/walkThroughContentProvider.js';
6
- import { EditorWalkThroughAction, EditorWalkThroughInputSerializer } from './editor/editorWalkThrough.js';
7
- import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
8
- import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
9
- import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
10
- import { registerAction2, MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
11
- import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
12
- import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
13
- import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
14
-
15
- ( Registry.as(EditorExtensions.EditorPane))
16
- .registerEditorPane(EditorPaneDescriptor.create(WalkThroughPart, WalkThroughPart.ID, ( localizeWithPath(
17
- 'vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution',
18
- 'walkThrough.editor.label',
19
- "Playground"
20
- ))), [( new SyncDescriptor(WalkThroughInput))]);
21
- registerAction2(EditorWalkThroughAction);
22
- ( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(EditorWalkThroughInputSerializer.ID, EditorWalkThroughInputSerializer);
23
- registerWorkbenchContribution2(WalkThroughSnippetContentProvider.ID, WalkThroughSnippetContentProvider, { editorTypeId: WalkThroughPart.ID });
24
- KeybindingsRegistry.registerCommandAndKeybindingRule(WalkThroughArrowUp);
25
- KeybindingsRegistry.registerCommandAndKeybindingRule(WalkThroughArrowDown);
26
- KeybindingsRegistry.registerCommandAndKeybindingRule(WalkThroughPageUp);
27
- KeybindingsRegistry.registerCommandAndKeybindingRule(WalkThroughPageDown);
28
- MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
29
- group: '1_welcome',
30
- command: {
31
- id: 'workbench.action.showInteractivePlayground',
32
- title: ( localizeWithPath(
33
- 'vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution',
34
- { key: 'miPlayground', comment: ['&& denotes a mnemonic'] },
35
- "Editor Playgrou&&nd"
36
- ))
37
- },
38
- order: 3
39
- });
@@ -1,59 +0,0 @@
1
- import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
2
- import { WALK_THROUGH_FOCUS, WalkThroughPart } from './walkThroughPart.js';
3
- import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
4
- import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
5
-
6
- const WalkThroughArrowUp = {
7
- id: 'workbench.action.interactivePlayground.arrowUp',
8
- weight: 200 ,
9
- when: ( ContextKeyExpr.and(WALK_THROUGH_FOCUS, ( EditorContextKeys.editorTextFocus.toNegated()))),
10
- primary: 16 ,
11
- handler: accessor => {
12
- const editorService = accessor.get(IEditorService);
13
- const activeEditorPane = editorService.activeEditorPane;
14
- if (activeEditorPane instanceof WalkThroughPart) {
15
- activeEditorPane.arrowUp();
16
- }
17
- }
18
- };
19
- const WalkThroughArrowDown = {
20
- id: 'workbench.action.interactivePlayground.arrowDown',
21
- weight: 200 ,
22
- when: ( ContextKeyExpr.and(WALK_THROUGH_FOCUS, ( EditorContextKeys.editorTextFocus.toNegated()))),
23
- primary: 18 ,
24
- handler: accessor => {
25
- const editorService = accessor.get(IEditorService);
26
- const activeEditorPane = editorService.activeEditorPane;
27
- if (activeEditorPane instanceof WalkThroughPart) {
28
- activeEditorPane.arrowDown();
29
- }
30
- }
31
- };
32
- const WalkThroughPageUp = {
33
- id: 'workbench.action.interactivePlayground.pageUp',
34
- weight: 200 ,
35
- when: ( ContextKeyExpr.and(WALK_THROUGH_FOCUS, ( EditorContextKeys.editorTextFocus.toNegated()))),
36
- primary: 11 ,
37
- handler: accessor => {
38
- const editorService = accessor.get(IEditorService);
39
- const activeEditorPane = editorService.activeEditorPane;
40
- if (activeEditorPane instanceof WalkThroughPart) {
41
- activeEditorPane.pageUp();
42
- }
43
- }
44
- };
45
- const WalkThroughPageDown = {
46
- id: 'workbench.action.interactivePlayground.pageDown',
47
- weight: 200 ,
48
- when: ( ContextKeyExpr.and(WALK_THROUGH_FOCUS, ( EditorContextKeys.editorTextFocus.toNegated()))),
49
- primary: 12 ,
50
- handler: accessor => {
51
- const editorService = accessor.get(IEditorService);
52
- const activeEditorPane = editorService.activeEditorPane;
53
- if (activeEditorPane instanceof WalkThroughPart) {
54
- activeEditorPane.pageDown();
55
- }
56
- }
57
- };
58
-
59
- export { WalkThroughArrowDown, WalkThroughArrowUp, WalkThroughPageDown, WalkThroughPageUp };
@@ -1,115 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
3
- import { EditorModel } from 'vscode/vscode/vs/workbench/common/editor/editorModel';
4
- import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
5
- import marked_1 from '../../../../../../../external/vscode-marked/lib/marked.esm.js';
6
- import { isEqual } from 'vscode/vscode/vs/base/common/resources';
7
- import { requireToContent } from '../common/walkThroughContentProvider.js';
8
- import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
9
- import { Schemas } from 'vscode/vscode/vs/base/common/network';
10
-
11
- var WalkThroughInput_1;
12
- class WalkThroughModel extends EditorModel {
13
- constructor(mainRef, snippetRefs) {
14
- super();
15
- this.mainRef = mainRef;
16
- this.snippetRefs = snippetRefs;
17
- }
18
- get main() {
19
- return this.mainRef;
20
- }
21
- get snippets() {
22
- return ( this.snippetRefs.map(snippet => snippet.object));
23
- }
24
- dispose() {
25
- this.snippetRefs.forEach(ref => ref.dispose());
26
- super.dispose();
27
- }
28
- }
29
- let WalkThroughInput = WalkThroughInput_1 = class WalkThroughInput extends EditorInput {
30
- get capabilities() {
31
- return 8 | super.capabilities;
32
- }
33
- get resource() { return this.options.resource; }
34
- constructor(options, instantiationService, textModelResolverService) {
35
- super();
36
- this.options = options;
37
- this.instantiationService = instantiationService;
38
- this.textModelResolverService = textModelResolverService;
39
- this.promise = null;
40
- this.maxTopScroll = 0;
41
- this.maxBottomScroll = 0;
42
- }
43
- get typeId() {
44
- return this.options.typeId;
45
- }
46
- getName() {
47
- return this.options.name;
48
- }
49
- getDescription() {
50
- return this.options.description || '';
51
- }
52
- getTelemetryFrom() {
53
- return this.options.telemetryFrom;
54
- }
55
- getTelemetryDescriptor() {
56
- const descriptor = super.getTelemetryDescriptor();
57
- descriptor['target'] = this.getTelemetryFrom();
58
- return descriptor;
59
- }
60
- get onReady() {
61
- return this.options.onReady;
62
- }
63
- get layout() {
64
- return this.options.layout;
65
- }
66
- resolve() {
67
- if (!this.promise) {
68
- this.promise = requireToContent(this.instantiationService, this.options.resource)
69
- .then(content => {
70
- if (this.resource.path.endsWith('.html')) {
71
- return ( new WalkThroughModel(content, []));
72
- }
73
- const snippets = [];
74
- let i = 0;
75
- const renderer = new marked_1.Renderer();
76
- renderer.code = (code, lang) => {
77
- i++;
78
- const resource = this.options.resource.with({ scheme: Schemas.walkThroughSnippet, fragment: `${i}.${lang}` });
79
- snippets.push(this.textModelResolverService.createModelReference(resource));
80
- return `<div id="snippet-${resource.fragment}" class="walkThroughEditorContainer" ></div>`;
81
- };
82
- content = marked_1(content, { renderer });
83
- return Promise.all(snippets)
84
- .then(refs => ( new WalkThroughModel(content, refs)));
85
- });
86
- }
87
- return this.promise;
88
- }
89
- matches(otherInput) {
90
- if (super.matches(otherInput)) {
91
- return true;
92
- }
93
- if (otherInput instanceof WalkThroughInput_1) {
94
- return isEqual(otherInput.options.resource, this.options.resource);
95
- }
96
- return false;
97
- }
98
- dispose() {
99
- if (this.promise) {
100
- this.promise.then(model => model.dispose());
101
- this.promise = null;
102
- }
103
- super.dispose();
104
- }
105
- relativeScrollPosition(topScroll, bottomScroll) {
106
- this.maxTopScroll = Math.max(this.maxTopScroll, topScroll);
107
- this.maxBottomScroll = Math.max(this.maxBottomScroll, bottomScroll);
108
- }
109
- };
110
- WalkThroughInput = WalkThroughInput_1 = ( __decorate([
111
- ( __param(1, IInstantiationService)),
112
- ( __param(2, ITextModelService))
113
- ], WalkThroughInput));
114
-
115
- export { WalkThroughInput };