@codingame/monaco-vscode-walkthrough-service-override 4.5.0 → 4.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (19) hide show
  1. package/index.d.ts +1 -1
  2. package/package.json +2 -2
  3. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +50 -107
  4. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +138 -249
  5. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +8 -35
  6. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +61 -116
  7. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +5 -4
  8. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +3 -6
  9. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +74 -77
  10. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +29 -32
  11. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +147 -498
  12. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +4 -15
  13. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +6 -25
  14. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +5 -12
  15. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +5 -12
  16. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +24 -31
  17. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +2 -2
  18. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +4 -3
  19. package/walkthrough.d.ts +0 -5
@@ -1,6 +1,7 @@
1
1
  import { escape } from 'vscode/vscode/vs/base/common/strings';
2
2
  import { localizeWithPath } from 'vscode/vscode/vs/nls';
3
3
 
4
+ const _moduleId = "vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile";
4
5
  const profileArg = (profile) => encodeURIComponent(JSON.stringify({ profile }));
5
6
  const imageSize = 400;
6
7
  var notebookProfile = () => `
@@ -8,27 +9,15 @@ var notebookProfile = () => `
8
9
  <checklist>
9
10
  <checkbox on-checked="command:notebook.setProfile?${profileArg('default')}" checked-on="config.notebook.cellFocusIndicator == 'border' && config.notebook.insertToolbarLocation == 'both' && config.notebook.globalToolbar == false && config.notebook.compactView == true && config.notebook.showCellStatusBar == 'visible'">
10
11
  <img width="${imageSize}" src="./notebookThemes/default.png"/>
11
- ${escape(( localizeWithPath(
12
- 'vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile',
13
- 'default',
14
- "Default"
15
- )))}
12
+ ${escape(( localizeWithPath(_moduleId, 0, "Default")))}
16
13
  </checkbox>
17
14
  <checkbox on-checked="command:notebook.setProfile?${profileArg('jupyter')}" checked-on="config.notebook.cellFocusIndicator == 'gutter' && config.notebook.insertToolbarLocation == 'notebookToolbar' && config.notebook.globalToolbar == true && config.notebook.compactView == true && config.notebook.showCellStatusBar == 'visible'">
18
15
  <img width="${imageSize}" src="./notebookThemes/jupyter.png"/>
19
- ${escape(( localizeWithPath(
20
- 'vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile',
21
- 'jupyter',
22
- "Jupyter"
23
- )))}
16
+ ${escape(( localizeWithPath(_moduleId, 1, "Jupyter")))}
24
17
  </checkbox>
25
18
  <checkbox on-checked="command:notebook.setProfile?${profileArg('colab')}" checked-on="config.notebook.cellFocusIndicator == 'border' && config.notebook.insertToolbarLocation == 'betweenCells' && config.notebook.globalToolbar == false && config.notebook.compactView == false && config.notebook.showCellStatusBar == 'hidden'">
26
19
  <img width="${imageSize}" src="./notebookThemes/colab.png"/>
27
- ${escape(( localizeWithPath(
28
- 'vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile',
29
- 'colab',
30
- "Colab"
31
- )))}
20
+ ${escape(( localizeWithPath(_moduleId, 2, "Colab")))}
32
21
  </checkbox>
33
22
  </checklist>
34
23
  </vertically-centered>
@@ -2,51 +2,32 @@ import { escape } from 'vscode/vscode/vs/base/common/strings';
2
2
  import { localizeWithPath } from 'vscode/vscode/vs/nls';
3
3
  import { ThemeSettingDefaults } from 'vscode/vscode/vs/workbench/services/themes/common/workbenchThemeService';
4
4
 
5
+ const _moduleId = "vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker";
5
6
  var theme_picker = () => `
6
7
  <checklist>
7
8
  <div class="theme-picker-row">
8
9
  <checkbox when-checked="setTheme:${ThemeSettingDefaults.COLOR_THEME_DARK}" checked-on="config.workbench.colorTheme == '${ThemeSettingDefaults.COLOR_THEME_DARK}'">
9
10
  <img width="200" src="./dark.png"/>
10
- ${escape(( localizeWithPath(
11
- 'vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker',
12
- 'dark',
13
- "Dark Modern"
14
- )))}
11
+ ${escape(( localizeWithPath(_moduleId, 0, "Dark Modern")))}
15
12
  </checkbox>
16
13
  <checkbox when-checked="setTheme:${ThemeSettingDefaults.COLOR_THEME_LIGHT}" checked-on="config.workbench.colorTheme == '${ThemeSettingDefaults.COLOR_THEME_LIGHT}'">
17
14
  <img width="200" src="./light.png"/>
18
- ${escape(( localizeWithPath(
19
- 'vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker',
20
- 'light',
21
- "Light Modern"
22
- )))}
15
+ ${escape(( localizeWithPath(_moduleId, 1, "Light Modern")))}
23
16
  </checkbox>
24
17
  </div>
25
18
  <div class="theme-picker-row">
26
19
  <checkbox when-checked="setTheme:${ThemeSettingDefaults.COLOR_THEME_HC_DARK}" checked-on="config.workbench.colorTheme == '${ThemeSettingDefaults.COLOR_THEME_HC_DARK}'">
27
20
  <img width="200" src="./dark-hc.png"/>
28
- ${escape(( localizeWithPath(
29
- 'vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker',
30
- 'HighContrast',
31
- "Dark High Contrast"
32
- )))}
21
+ ${escape(( localizeWithPath(_moduleId, 2, "Dark High Contrast")))}
33
22
  </checkbox>
34
23
  <checkbox when-checked="setTheme:${ThemeSettingDefaults.COLOR_THEME_HC_LIGHT}" checked-on="config.workbench.colorTheme == '${ThemeSettingDefaults.COLOR_THEME_HC_LIGHT}'">
35
24
  <img width="200" src="./light-hc.png"/>
36
- ${escape(( localizeWithPath(
37
- 'vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker',
38
- 'HighContrastLight',
39
- "Light High Contrast"
40
- )))}
25
+ ${escape(( localizeWithPath(_moduleId, 3, "Light High Contrast")))}
41
26
  </checkbox>
42
27
  </div>
43
28
  </checklist>
44
29
  <checkbox class="theme-picker-link" when-checked="command:workbench.action.selectTheme" checked-on="false">
45
- ${escape(( localizeWithPath(
46
- 'vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker',
47
- 'seeMore',
48
- "See More Themes..."
49
- )))}
30
+ ${escape(( localizeWithPath(_moduleId, 4, "See More Themes...")))}
50
31
  </checkbox>
51
32
  `;
52
33
 
@@ -7,17 +7,14 @@ import { FileAccess, Schemas } from 'vscode/vscode/vs/base/common/network';
7
7
  import { Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
8
8
  import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
9
9
 
10
+ const _moduleId = "vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough";
10
11
  const typeId = 'workbench.editors.walkThroughInput';
11
12
  const inputOptions = {
12
13
  typeId,
13
- name: ( localizeWithPath(
14
- 'vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough',
15
- 'editorWalkThrough.title',
16
- "Editor Playground"
17
- )),
18
- resource: ( FileAccess.asBrowserUri(
14
+ name: ( localizeWithPath(_moduleId, 0, "Editor Playground")),
15
+ resource: ( (FileAccess.asBrowserUri(
19
16
  'vs/workbench/contrib/welcomeWalkthrough/browser/editor/vs_code_editor_walkthrough.md'
20
- ))
17
+ )))
21
18
  .with({
22
19
  scheme: Schemas.walkThrough,
23
20
  query: JSON.stringify({ moduleId: 'vs/workbench/contrib/welcomeWalkthrough/browser/editor/vs_code_editor_walkthrough' })
@@ -26,11 +23,7 @@ const inputOptions = {
26
23
  };
27
24
  class EditorWalkThroughAction extends Action2 {
28
25
  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
- )); }
26
+ static { this.LABEL = ( localize2WithPath(_moduleId, 1, 'Interactive Editor Playground')); }
34
27
  constructor() {
35
28
  super({
36
29
  id: EditorWalkThroughAction.ID,
@@ -12,14 +12,11 @@ import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/commo
12
12
  import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
13
13
  import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
14
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))]);
15
+ const _moduleId = "vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution";
16
+ ( (Registry.as(EditorExtensions.EditorPane)))
17
+ .registerEditorPane(EditorPaneDescriptor.create(WalkThroughPart, WalkThroughPart.ID, ( localizeWithPath(_moduleId, 0, "Playground"))), [( (new SyncDescriptor(WalkThroughInput)))]);
21
18
  registerAction2(EditorWalkThroughAction);
22
- ( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(EditorWalkThroughInputSerializer.ID, EditorWalkThroughInputSerializer);
19
+ ( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(EditorWalkThroughInputSerializer.ID, EditorWalkThroughInputSerializer);
23
20
  registerWorkbenchContribution2(WalkThroughSnippetContentProvider.ID, WalkThroughSnippetContentProvider, { editorTypeId: WalkThroughPart.ID });
24
21
  KeybindingsRegistry.registerCommandAndKeybindingRule(WalkThroughArrowUp);
25
22
  KeybindingsRegistry.registerCommandAndKeybindingRule(WalkThroughArrowDown);
@@ -29,11 +26,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
29
26
  group: '1_welcome',
30
27
  command: {
31
28
  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
- ))
29
+ title: ( localizeWithPath(_moduleId, 1, "Editor Playgrou&&nd"))
37
30
  },
38
31
  order: 3
39
32
  });
@@ -31,12 +31,9 @@ import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor
31
31
  import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
32
32
 
33
33
  var WalkThroughPart_1;
34
- const WALK_THROUGH_FOCUS = ( new RawContextKey('interactivePlaygroundFocus', false));
35
- const UNBOUND_COMMAND = ( localizeWithPath(
36
- 'vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart',
37
- 'walkThrough.unboundCommand',
38
- "unbound"
39
- ));
34
+ const _moduleId = "vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart";
35
+ const WALK_THROUGH_FOCUS = ( (new RawContextKey('interactivePlaygroundFocus', false)));
36
+ const UNBOUND_COMMAND = ( localizeWithPath(_moduleId, 0, "unbound"));
40
37
  const WALK_THROUGH_EDITOR_VIEW_STATE_PREFERENCE_KEY = 'walkThroughEditorViewState';
41
38
  let WalkThroughPart = class WalkThroughPart extends EditorPane {
42
39
  static { WalkThroughPart_1 = this; }
@@ -50,7 +47,7 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
50
47
  this.configurationService = configurationService;
51
48
  this.notificationService = notificationService;
52
49
  this.extensionService = extensionService;
53
- this.disposables = ( new DisposableStore());
50
+ this.disposables = ( (new DisposableStore()));
54
51
  this.contentDisposables = [];
55
52
  this.editorFocus = WALK_THROUGH_FOCUS.bindTo(this.contextKeyService);
56
53
  this.editorMemento = this.getEditorMemento(editorGroupService, textResourceConfigurationService, WALK_THROUGH_EDITOR_VIEW_STATE_PREFERENCE_KEY);
@@ -60,10 +57,10 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
60
57
  this.content.classList.add('welcomePageFocusElement');
61
58
  this.content.tabIndex = 0;
62
59
  this.content.style.outlineStyle = 'none';
63
- this.scrollbar = ( new DomScrollableElement(this.content, {
60
+ this.scrollbar = ( (new DomScrollableElement(this.content, {
64
61
  horizontal: 1 ,
65
62
  vertical: 1
66
- }));
63
+ })));
67
64
  this.disposables.add(this.scrollbar);
68
65
  container.appendChild(this.scrollbar.getDomNode());
69
66
  this.registerFocusHandlers();
@@ -126,7 +123,7 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
126
123
  }
127
124
  }
128
125
  else {
129
- this.open(( URI.parse(node.href)));
126
+ this.open(( (URI.parse(node.href))));
130
127
  }
131
128
  event.preventDefault();
132
129
  break;
@@ -134,7 +131,7 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
134
131
  else if (node instanceof HTMLButtonElement) {
135
132
  const href = node.getAttribute('data-href');
136
133
  if (href) {
137
- this.open(( URI.parse(href)));
134
+ this.open(( (URI.parse(href))));
138
135
  }
139
136
  break;
140
137
  }
@@ -146,11 +143,7 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
146
143
  }
147
144
  open(uri) {
148
145
  if (uri.scheme === 'command' && uri.path === 'git.clone' && !CommandsRegistry.getCommand('git.clone')) {
149
- this.notificationService.info(( localizeWithPath(
150
- 'vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart',
151
- 'walkThrough.gitNotFound',
152
- "It looks like Git is not installed on your system."
153
- )));
146
+ this.notificationService.info(( localizeWithPath(_moduleId, 1, "It looks like Git is not installed on your system.")));
154
147
  return;
155
148
  }
156
149
  this.openerService.open(this.addFrom(uri), { allowCommands: true });
@@ -221,7 +214,7 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
221
214
  this.scrollbar.setScrollPosition({ scrollTop: scrollPosition.scrollTop + scrollDimensions.height });
222
215
  }
223
216
  setInput(input, options, context, token) {
224
- const store = ( new DisposableStore());
217
+ const store = ( (new DisposableStore()));
225
218
  this.contentDisposables.push(store);
226
219
  this.content.innerText = '';
227
220
  return super.setInput(input, options, context, token)
@@ -414,19 +407,19 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
414
407
  super.dispose();
415
408
  }
416
409
  };
417
- WalkThroughPart = WalkThroughPart_1 = ( __decorate([
418
- ( __param(1, ITelemetryService)),
419
- ( __param(2, IThemeService)),
420
- ( __param(3, ITextResourceConfigurationService)),
421
- ( __param(4, IInstantiationService)),
422
- ( __param(5, IOpenerService)),
423
- ( __param(6, IKeybindingService)),
424
- ( __param(7, IStorageService)),
425
- ( __param(8, IContextKeyService)),
426
- ( __param(9, IConfigurationService)),
427
- ( __param(10, INotificationService)),
428
- ( __param(11, IExtensionService)),
429
- ( __param(12, IEditorGroupsService))
430
- ], WalkThroughPart));
410
+ WalkThroughPart = WalkThroughPart_1 = ( (__decorate([
411
+ ( (__param(1, ITelemetryService))),
412
+ ( (__param(2, IThemeService))),
413
+ ( (__param(3, ITextResourceConfigurationService))),
414
+ ( (__param(4, IInstantiationService))),
415
+ ( (__param(5, IOpenerService))),
416
+ ( (__param(6, IKeybindingService))),
417
+ ( (__param(7, IStorageService))),
418
+ ( (__param(8, IContextKeyService))),
419
+ ( (__param(9, IConfigurationService))),
420
+ ( (__param(10, INotificationService))),
421
+ ( (__param(11, IExtensionService))),
422
+ ( (__param(12, IEditorGroupsService)))
423
+ ], WalkThroughPart)));
431
424
 
432
425
  export { WALK_THROUGH_FOCUS, WalkThroughPart };
@@ -11,11 +11,11 @@ import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/c
11
11
 
12
12
  async function requireToContent(instantiationService, resource) {
13
13
  if (!resource.query) {
14
- throw new Error('Welcome: invalid resource');
14
+ throw ( new Error('Welcome: invalid resource'));
15
15
  }
16
16
  const query = JSON.parse(resource.query);
17
17
  if (!query.moduleId) {
18
- throw new Error('Welcome: invalid resource');
18
+ throw ( new Error('Welcome: invalid resource'));
19
19
  }
20
20
  const content = await FileAccess.toModuleContent(query.moduleId);
21
21
  return instantiationService.invokeFunction(content);
@@ -12,8 +12,9 @@ import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
12
12
  import { localizeWithPath } from 'vscode/vscode/vs/nls';
13
13
  import { Color, RGBA } from 'vscode/vscode/vs/base/common/color';
14
14
 
15
- registerColor('walkThrough.embeddedEditorBackground', { dark: ( new Color(( new RGBA(0, 0, 0, .4)))), light: '#f4f4f4', hcDark: null, hcLight: null }, ( localizeWithPath(
16
- 'vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils',
17
- 'walkThrough.embeddedEditorBackground',
15
+ const _moduleId = "vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils";
16
+ registerColor('walkThrough.embeddedEditorBackground', { dark: ( (new Color( (new RGBA(0, 0, 0, .4))))), light: '#f4f4f4', hcDark: null, hcLight: null }, ( localizeWithPath(
17
+ _moduleId,
18
+ 0,
18
19
  'Background color for the embedded editors on the Interactive Playground.'
19
20
  )));
package/walkthrough.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { IEditorOverrideServices } from 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
2
-
3
- declare function getServiceOverride(): IEditorOverrideServices;
4
-
5
- export { getServiceOverride as default };