@codingame/monaco-vscode-walkthrough-service-override 7.1.0 → 7.1.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.
Files changed (17) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +27 -34
  3. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +30 -39
  4. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +8 -9
  5. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +57 -93
  6. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +3 -12
  7. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +2 -3
  8. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +5 -7
  9. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +6 -7
  10. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +4 -6
  11. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +147 -177
  12. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +4 -5
  13. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +6 -7
  14. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +4 -9
  15. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +3 -4
  16. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +3 -4
  17. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +3 -5
@@ -1,7 +1,6 @@
1
1
  import { escape } from 'vscode/vscode/vs/base/common/strings';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize } from 'vscode/vscode/vs/nls';
3
3
 
4
- const _moduleId = "vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile";
5
4
  const profileArg = (profile) => encodeURIComponent(JSON.stringify({ profile }));
6
5
  const imageSize = 400;
7
6
  var notebookProfile = () => `
@@ -9,15 +8,15 @@ var notebookProfile = () => `
9
8
  <checklist>
10
9
  <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'">
11
10
  <img width="${imageSize}" src="./notebookThemes/default.png"/>
12
- ${escape(( localizeWithPath(_moduleId, 0, "Default")))}
11
+ ${escape(( localize(3248, "Default")))}
13
12
  </checkbox>
14
13
  <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'">
15
14
  <img width="${imageSize}" src="./notebookThemes/jupyter.png"/>
16
- ${escape(( localizeWithPath(_moduleId, 1, "Jupyter")))}
15
+ ${escape(( localize(3249, "Jupyter")))}
17
16
  </checkbox>
18
17
  <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'">
19
18
  <img width="${imageSize}" src="./notebookThemes/colab.png"/>
20
- ${escape(( localizeWithPath(_moduleId, 2, "Colab")))}
19
+ ${escape(( localize(3250, "Colab")))}
21
20
  </checkbox>
22
21
  </checklist>
23
22
  </vertically-centered>
@@ -1,33 +1,32 @@
1
1
  import { escape } from 'vscode/vscode/vs/base/common/strings';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize } 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";
6
5
  var theme_picker = () => `
7
6
  <checklist>
8
7
  <div class="theme-picker-row">
9
8
  <checkbox when-checked="setTheme:${ThemeSettingDefaults.COLOR_THEME_DARK}" checked-on="config.workbench.colorTheme == '${ThemeSettingDefaults.COLOR_THEME_DARK}'">
10
9
  <img width="200" src="./dark.png"/>
11
- ${escape(( localizeWithPath(_moduleId, 0, "Dark Modern")))}
10
+ ${escape(( localize(3243, "Dark Modern")))}
12
11
  </checkbox>
13
12
  <checkbox when-checked="setTheme:${ThemeSettingDefaults.COLOR_THEME_LIGHT}" checked-on="config.workbench.colorTheme == '${ThemeSettingDefaults.COLOR_THEME_LIGHT}'">
14
13
  <img width="200" src="./light.png"/>
15
- ${escape(( localizeWithPath(_moduleId, 1, "Light Modern")))}
14
+ ${escape(( localize(3244, "Light Modern")))}
16
15
  </checkbox>
17
16
  </div>
18
17
  <div class="theme-picker-row">
19
18
  <checkbox when-checked="setTheme:${ThemeSettingDefaults.COLOR_THEME_HC_DARK}" checked-on="config.workbench.colorTheme == '${ThemeSettingDefaults.COLOR_THEME_HC_DARK}'">
20
19
  <img width="200" src="./dark-hc.png"/>
21
- ${escape(( localizeWithPath(_moduleId, 2, "Dark High Contrast")))}
20
+ ${escape(( localize(3245, "Dark High Contrast")))}
22
21
  </checkbox>
23
22
  <checkbox when-checked="setTheme:${ThemeSettingDefaults.COLOR_THEME_HC_LIGHT}" checked-on="config.workbench.colorTheme == '${ThemeSettingDefaults.COLOR_THEME_HC_LIGHT}'">
24
23
  <img width="200" src="./light-hc.png"/>
25
- ${escape(( localizeWithPath(_moduleId, 3, "Light High Contrast")))}
24
+ ${escape(( localize(3246, "Light High Contrast")))}
26
25
  </checkbox>
27
26
  </div>
28
27
  </checklist>
29
28
  <checkbox class="theme-picker-link" when-checked="command:workbench.action.selectTheme" checked-on="false">
30
- ${escape(( localizeWithPath(_moduleId, 4, "See More Themes...")))}
29
+ ${escape(( localize(3247, "See More Themes...")))}
31
30
  </checkbox>
32
31
  `;
33
32
 
@@ -1,17 +1,16 @@
1
1
  import 'vscode/vscode/vs/base/common/platform';
2
2
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
3
- import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
3
+ import { localize, localize2 } from 'vscode/vscode/vs/nls';
4
4
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
5
5
  import { WalkThroughInput } from '../walkThroughInput.js';
6
6
  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";
11
10
  const typeId = 'workbench.editors.walkThroughInput';
12
11
  const inputOptions = {
13
12
  typeId,
14
- name: ( localizeWithPath(_moduleId, 0, "Editor Playground")),
13
+ name: ( localize(7583, "Editor Playground")),
15
14
  resource: ( (FileAccess.asBrowserUri(
16
15
  'vs/workbench/contrib/welcomeWalkthrough/browser/editor/vs_code_editor_walkthrough.md'
17
16
  )))
@@ -23,7 +22,7 @@ const inputOptions = {
23
22
  };
24
23
  class EditorWalkThroughAction extends Action2 {
25
24
  static { this.ID = 'workbench.action.showInteractivePlayground'; }
26
- static { this.LABEL = ( localize2WithPath(_moduleId, 1, 'Interactive Editor Playground')); }
25
+ static { this.LABEL = ( localize2(7584, 'Interactive Editor Playground')); }
27
26
  constructor() {
28
27
  super({
29
28
  id: EditorWalkThroughAction.ID,
@@ -31,11 +30,7 @@ class EditorWalkThroughAction extends Action2 {
31
30
  category: Categories.Help,
32
31
  f1: true,
33
32
  metadata: {
34
- description: ( localize2WithPath(
35
- _moduleId,
36
- 2,
37
- "Opens an interactive playground for learning about the editor."
38
- ))
33
+ description: ( localize2(7585, "Opens an interactive playground for learning about the editor."))
39
34
  }
40
35
  });
41
36
  }
@@ -1,4 +1,4 @@
1
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
1
+ import { localize } from 'vscode/vscode/vs/nls';
2
2
  import { WalkThroughInput } from './walkThroughInput.js';
3
3
  import { WalkThroughPart } from './walkThroughPart.js';
4
4
  import { WalkThroughArrowUp, WalkThroughArrowDown, WalkThroughPageUp, WalkThroughPageDown } from './walkThroughActions.js';
@@ -12,9 +12,8 @@ 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
- const _moduleId = "vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution";
16
15
  ( (Registry.as(EditorExtensions.EditorPane)))
17
- .registerEditorPane(EditorPaneDescriptor.create(WalkThroughPart, WalkThroughPart.ID, ( localizeWithPath(_moduleId, 0, "Playground"))), [( (new SyncDescriptor(WalkThroughInput)))]);
16
+ .registerEditorPane(EditorPaneDescriptor.create(WalkThroughPart, WalkThroughPart.ID, ( localize(3241, "Playground"))), [( (new SyncDescriptor(WalkThroughInput)))]);
18
17
  registerAction2(EditorWalkThroughAction);
19
18
  ( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(EditorWalkThroughInputSerializer.ID, EditorWalkThroughInputSerializer);
20
19
  registerWorkbenchContribution2(WalkThroughSnippetContentProvider.ID, WalkThroughSnippetContentProvider, { editorTypeId: WalkThroughPart.ID });
@@ -26,7 +25,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
26
25
  group: '1_welcome',
27
26
  command: {
28
27
  id: 'workbench.action.showInteractivePlayground',
29
- title: ( localizeWithPath(_moduleId, 1, "Editor Playgrou&&nd"))
28
+ title: ( localize(3242, "Editor Playgrou&&nd"))
30
29
  },
31
30
  order: 3
32
31
  });
@@ -15,7 +15,7 @@ import { ITextResourceConfigurationService } from 'vscode/vscode/vs/editor/commo
15
15
  import { CodeEditorWidget } from 'vscode/vscode/vs/editor/browser/widget/codeEditor/codeEditorWidget';
16
16
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
17
17
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
18
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
18
+ import { localize } from 'vscode/vscode/vs/nls';
19
19
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
20
20
  import { RawContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
21
21
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
@@ -33,9 +33,8 @@ import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor
33
33
  import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
34
34
 
35
35
  var WalkThroughPart_1;
36
- const _moduleId = "vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart";
37
36
  const WALK_THROUGH_FOCUS = ( (new RawContextKey('interactivePlaygroundFocus', false)));
38
- const UNBOUND_COMMAND = ( localizeWithPath(_moduleId, 0, "unbound"));
37
+ const UNBOUND_COMMAND = ( localize(7581, "unbound"));
39
38
  const WALK_THROUGH_EDITOR_VIEW_STATE_PREFERENCE_KEY = 'walkThroughEditorViewState';
40
39
  let WalkThroughPart = class WalkThroughPart extends EditorPane {
41
40
  static { WalkThroughPart_1 = this; }
@@ -145,7 +144,7 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
145
144
  }
146
145
  open(uri) {
147
146
  if (uri.scheme === 'command' && uri.path === 'git.clone' && !CommandsRegistry.getCommand('git.clone')) {
148
- this.notificationService.info(( localizeWithPath(_moduleId, 1, "It looks like Git is not installed on your system.")));
147
+ this.notificationService.info(( localize(7582, "It looks like Git is not installed on your system.")));
149
148
  return;
150
149
  }
151
150
  this.openerService.open(this.addFrom(uri), { allowCommands: true });
@@ -9,12 +9,10 @@ import 'vscode/vscode/vs/platform/theme/common/colors/minimapColors';
9
9
  import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
10
10
  import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
11
11
  import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
12
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
12
+ import { localize } from 'vscode/vscode/vs/nls';
13
13
  import { Color, RGBA } from 'vscode/vscode/vs/base/common/color';
14
14
 
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,
15
+ registerColor('walkThrough.embeddedEditorBackground', { dark: ( (new Color( (new RGBA(0, 0, 0, .4))))), light: '#f4f4f4', hcDark: null, hcLight: null }, ( localize(
16
+ 10614,
19
17
  'Background color for the embedded editors on the Interactive Playground.'
20
18
  )));