@codingame/monaco-vscode-walkthrough-service-override 9.0.2 → 10.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.
Files changed (23) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.js +50 -39
  3. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.js +84 -62
  4. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedAccessibleView.js +101 -0
  5. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedColors.js +7 -7
  6. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +37 -37
  7. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedIcons.js +2 -2
  8. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedInput.js +2 -1
  9. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService._contribution.js +6 -7
  10. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +5 -7
  11. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css.js +1 -1
  12. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.js +21 -17
  13. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +182 -150
  14. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile.js +3 -3
  15. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker.js +5 -5
  16. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/editorWalkThrough.js +3 -3
  17. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/editor/vs_code_editor_walkthrough.js +1 -1
  18. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.js +2 -2
  19. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughActions.js +8 -10
  20. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughInput.js +9 -8
  21. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThroughPart.js +10 -12
  22. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughContentProvider.js +2 -3
  23. package/vscode/src/vs/workbench/contrib/welcomeWalkthrough/common/walkThroughUtils.js +1 -1
@@ -8,15 +8,15 @@ var notebookProfileContent = () => `
8
8
  <checklist>
9
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'">
10
10
  <img width="${imageSize}" src="./notebookThemes/default.png"/>
11
- ${escape(( localize(10647, "Default")))}
11
+ ${escape(( localize(10747, "Default")))}
12
12
  </checkbox>
13
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'">
14
14
  <img width="${imageSize}" src="./notebookThemes/jupyter.png"/>
15
- ${escape(( localize(10648, "Jupyter")))}
15
+ ${escape(( localize(10748, "Jupyter")))}
16
16
  </checkbox>
17
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'">
18
18
  <img width="${imageSize}" src="./notebookThemes/colab.png"/>
19
- ${escape(( localize(10649, "Colab")))}
19
+ ${escape(( localize(10749, "Colab")))}
20
20
  </checkbox>
21
21
  </checklist>
22
22
  </vertically-centered>
@@ -7,26 +7,26 @@ var themePickerContent = () => `
7
7
  <div class="theme-picker-row">
8
8
  <checkbox when-checked="setTheme:${ThemeSettingDefaults.COLOR_THEME_DARK}" checked-on="config.workbench.colorTheme == '${ThemeSettingDefaults.COLOR_THEME_DARK}'">
9
9
  <img width="200" src="./dark.png"/>
10
- ${escape(( localize(10642, "Dark Modern")))}
10
+ ${escape(( localize(10742, "Dark Modern")))}
11
11
  </checkbox>
12
12
  <checkbox when-checked="setTheme:${ThemeSettingDefaults.COLOR_THEME_LIGHT}" checked-on="config.workbench.colorTheme == '${ThemeSettingDefaults.COLOR_THEME_LIGHT}'">
13
13
  <img width="200" src="./light.png"/>
14
- ${escape(( localize(10643, "Light Modern")))}
14
+ ${escape(( localize(10743, "Light Modern")))}
15
15
  </checkbox>
16
16
  </div>
17
17
  <div class="theme-picker-row">
18
18
  <checkbox when-checked="setTheme:${ThemeSettingDefaults.COLOR_THEME_HC_DARK}" checked-on="config.workbench.colorTheme == '${ThemeSettingDefaults.COLOR_THEME_HC_DARK}'">
19
19
  <img width="200" src="./dark-hc.png"/>
20
- ${escape(( localize(10644, "Dark High Contrast")))}
20
+ ${escape(( localize(10744, "Dark High Contrast")))}
21
21
  </checkbox>
22
22
  <checkbox when-checked="setTheme:${ThemeSettingDefaults.COLOR_THEME_HC_LIGHT}" checked-on="config.workbench.colorTheme == '${ThemeSettingDefaults.COLOR_THEME_HC_LIGHT}'">
23
23
  <img width="200" src="./light-hc.png"/>
24
- ${escape(( localize(10645, "Light High Contrast")))}
24
+ ${escape(( localize(10745, "Light High Contrast")))}
25
25
  </checkbox>
26
26
  </div>
27
27
  </checklist>
28
28
  <checkbox class="theme-picker-link" when-checked="command:workbench.action.selectTheme" checked-on="false">
29
- ${escape(( localize(10646, "See More Themes...")))}
29
+ ${escape(( localize(10746, "See More Themes...")))}
30
30
  </checkbox>
31
31
  `;
32
32
 
@@ -12,7 +12,7 @@ walkThroughContentRegistry.registerProvider('vs/workbench/contrib/welcomeWalkthr
12
12
  const typeId = 'workbench.editors.walkThroughInput';
13
13
  const inputOptions = {
14
14
  typeId,
15
- name: ( localize(7531, "Editor Playground")),
15
+ name: ( localize(7542, "Editor Playground")),
16
16
  resource: ( (FileAccess.asBrowserUri(
17
17
  'vs/workbench/contrib/welcomeWalkthrough/browser/editor/vs_code_editor_walkthrough.md'
18
18
  )))
@@ -24,7 +24,7 @@ const inputOptions = {
24
24
  };
25
25
  class EditorWalkThroughAction extends Action2 {
26
26
  static { this.ID = 'workbench.action.showInteractivePlayground'; }
27
- static { this.LABEL = ( localize2(7532, 'Interactive Editor Playground')); }
27
+ static { this.LABEL = ( localize2(7543, 'Interactive Editor Playground')); }
28
28
  constructor() {
29
29
  super({
30
30
  id: EditorWalkThroughAction.ID,
@@ -32,7 +32,7 @@ class EditorWalkThroughAction extends Action2 {
32
32
  category: Categories.Help,
33
33
  f1: true,
34
34
  metadata: {
35
- description: ( localize2(7533, "Opens an interactive playground for learning about the editor."))
35
+ description: ( localize2(7544, "Opens an interactive playground for learning about the editor."))
36
36
  }
37
37
  });
38
38
  }
@@ -5,7 +5,7 @@ function content(accessor) {
5
5
  const isServerless = isWeb && !accessor.get(IWorkbenchEnvironmentService).remoteAuthority;
6
6
  return `
7
7
  ## Interactive Editor Playground
8
- The core editor in VS Code is packed with features. This page highlights a number of them and lets you interactively try them out through the use of a number of embedded editors. For full details on the editor features for VS Code and more head over to our [documentation](command:workbench.action.openDocumentationUrl).
8
+ The core editor in VS Code is packed with features. This page highlights a number of them and lets you interactively try them out through the use of a number of embedded editors. For full details on the editor features for VS Code and more head over to our [documentation](https://code.visualstudio.com/docs).
9
9
 
10
10
  * [Multi-cursor Editing](#multi-cursor-editing) - block selection, select all occurrences, add additional cursors and more.
11
11
  * [IntelliSense](#intellisense) - get code assistance and parameter suggestions for your code and external modules.
@@ -13,7 +13,7 @@ import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor'
13
13
  import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
14
14
 
15
15
  ( (Registry.as(EditorExtensions.EditorPane)))
16
- .registerEditorPane(EditorPaneDescriptor.create(WalkThroughPart, WalkThroughPart.ID, ( localize(3149, "Playground"))), [( (new SyncDescriptor(WalkThroughInput)))]);
16
+ .registerEditorPane(EditorPaneDescriptor.create(WalkThroughPart, WalkThroughPart.ID, ( localize(3165, "Playground"))), [( (new SyncDescriptor(WalkThroughInput)))]);
17
17
  registerAction2(EditorWalkThroughAction);
18
18
  ( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(EditorWalkThroughInputSerializer.ID, EditorWalkThroughInputSerializer);
19
19
  registerWorkbenchContribution2(WalkThroughSnippetContentProvider.ID, WalkThroughSnippetContentProvider, { editorTypeId: WalkThroughPart.ID });
@@ -25,7 +25,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
25
25
  group: '1_welcome',
26
26
  command: {
27
27
  id: 'workbench.action.showInteractivePlayground',
28
- title: ( localize(3150, "Editor Playgrou&&nd"))
28
+ title: ( localize(3166, "Editor Playgrou&&nd"))
29
29
  },
30
30
  order: 3
31
31
  });
@@ -1,15 +1,13 @@
1
1
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
2
2
  import { WALK_THROUGH_FOCUS, WalkThroughPart } from './walkThroughPart.js';
3
- import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
4
3
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
5
4
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
6
- import { KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
7
5
 
8
6
  const WalkThroughArrowUp = {
9
7
  id: 'workbench.action.interactivePlayground.arrowUp',
10
- weight: KeybindingWeight.WorkbenchContrib,
8
+ weight: 200 ,
11
9
  when: ( ContextKeyExpr.and(WALK_THROUGH_FOCUS, ( EditorContextKeys.editorTextFocus.toNegated()))),
12
- primary: KeyCode.UpArrow,
10
+ primary: 16 ,
13
11
  handler: accessor => {
14
12
  const editorService = accessor.get(IEditorService);
15
13
  const activeEditorPane = editorService.activeEditorPane;
@@ -20,9 +18,9 @@ const WalkThroughArrowUp = {
20
18
  };
21
19
  const WalkThroughArrowDown = {
22
20
  id: 'workbench.action.interactivePlayground.arrowDown',
23
- weight: KeybindingWeight.WorkbenchContrib,
21
+ weight: 200 ,
24
22
  when: ( ContextKeyExpr.and(WALK_THROUGH_FOCUS, ( EditorContextKeys.editorTextFocus.toNegated()))),
25
- primary: KeyCode.DownArrow,
23
+ primary: 18 ,
26
24
  handler: accessor => {
27
25
  const editorService = accessor.get(IEditorService);
28
26
  const activeEditorPane = editorService.activeEditorPane;
@@ -33,9 +31,9 @@ const WalkThroughArrowDown = {
33
31
  };
34
32
  const WalkThroughPageUp = {
35
33
  id: 'workbench.action.interactivePlayground.pageUp',
36
- weight: KeybindingWeight.WorkbenchContrib,
34
+ weight: 200 ,
37
35
  when: ( ContextKeyExpr.and(WALK_THROUGH_FOCUS, ( EditorContextKeys.editorTextFocus.toNegated()))),
38
- primary: KeyCode.PageUp,
36
+ primary: 11 ,
39
37
  handler: accessor => {
40
38
  const editorService = accessor.get(IEditorService);
41
39
  const activeEditorPane = editorService.activeEditorPane;
@@ -46,9 +44,9 @@ const WalkThroughPageUp = {
46
44
  };
47
45
  const WalkThroughPageDown = {
48
46
  id: 'workbench.action.interactivePlayground.pageDown',
49
- weight: KeybindingWeight.WorkbenchContrib,
47
+ weight: 200 ,
50
48
  when: ( ContextKeyExpr.and(WALK_THROUGH_FOCUS, ( EditorContextKeys.editorTextFocus.toNegated()))),
51
- primary: KeyCode.PageDown,
49
+ primary: 12 ,
52
50
  handler: accessor => {
53
51
  const editorService = accessor.get(IEditorService);
54
52
  const activeEditorPane = editorService.activeEditorPane;
@@ -1,13 +1,13 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
+ import { marked, Marked } from 'marked';
3
+ import { Schemas } from 'vscode/vscode/vs/base/common/network';
4
+ import { isEqual } from 'vscode/vscode/vs/base/common/resources';
5
+ import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
6
+ import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
2
7
  import { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
3
8
  import { EditorModel } from 'vscode/vscode/vs/workbench/common/editor/editorModel';
4
- import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
5
- import { marked } from 'marked';
6
- import { isEqual } from 'vscode/vscode/vs/base/common/resources';
9
+ import { markedGfmHeadingIdPlugin } from 'vscode/vscode/vs/workbench/contrib/markdown/browser/markedGfmHeadingIdPlugin';
7
10
  import { moduleToContent } from '../common/walkThroughContentProvider.js';
8
- import { EditorInputCapabilities } from 'vscode/vscode/vs/workbench/common/editor';
9
- import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
10
- import { Schemas } from 'vscode/vscode/vs/base/common/network';
11
11
 
12
12
  var WalkThroughInput_1;
13
13
  class WalkThroughModel extends EditorModel {
@@ -29,7 +29,7 @@ class WalkThroughModel extends EditorModel {
29
29
  }
30
30
  let WalkThroughInput = WalkThroughInput_1 = class WalkThroughInput extends EditorInput {
31
31
  get capabilities() {
32
- return EditorInputCapabilities.Singleton | super.capabilities;
32
+ return 8 | super.capabilities;
33
33
  }
34
34
  get resource() { return this.options.resource; }
35
35
  constructor(options, instantiationService, textModelResolverService) {
@@ -80,7 +80,8 @@ let WalkThroughInput = WalkThroughInput_1 = class WalkThroughInput extends Edito
80
80
  snippets.push(this.textModelResolverService.createModelReference(resource));
81
81
  return `<div id="snippet-${resource.fragment}" class="walkThroughEditorContainer" ></div>`;
82
82
  };
83
- content = marked(content, { async: false, renderer });
83
+ const m = new Marked({ renderer }, markedGfmHeadingIdPlugin());
84
+ content = m.parse(content, { async: false });
84
85
  return Promise.all(snippets)
85
86
  .then(refs => ( new WalkThroughModel(content, refs)));
86
87
  });
@@ -3,7 +3,6 @@ import '../common/walkThroughUtils.js';
3
3
  import './media/walkThroughPart.css.js';
4
4
  import { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
5
5
  import { Gesture, EventType } from 'vscode/vscode/vs/base/browser/touch';
6
- import { ScrollbarVisibility } from 'vscode/vscode/vs/base/common/scrollable';
7
6
  import { escape } from 'vscode/vscode/vs/base/common/strings';
8
7
  import { URI } from 'vscode/vscode/vs/base/common/uri';
9
8
  import { DisposableStore, toDisposable, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
@@ -22,10 +21,9 @@ import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/
22
21
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
23
22
  import { isObject } from 'vscode/vscode/vs/base/common/types';
24
23
  import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
25
- import { EditorOption } from 'vscode/vscode/vs/editor/common/config/editorOptions';
26
24
  import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
27
25
  import { UILabelProvider } from 'vscode/vscode/vs/base/common/keybindingLabels';
28
- import { OS, OperatingSystem } from 'vscode/vscode/vs/base/common/platform';
26
+ import { OS } from 'vscode/vscode/vs/base/common/platform';
29
27
  import { deepClone } from 'vscode/vscode/vs/base/common/objects';
30
28
  import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
31
29
  import { isHTMLElement, isHTMLAnchorElement, isHTMLButtonElement, size, safeInnerHtml, addDisposableListener } from 'vscode/vscode/vs/base/browser/dom';
@@ -34,7 +32,7 @@ import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extension
34
32
 
35
33
  var WalkThroughPart_1;
36
34
  const WALK_THROUGH_FOCUS = ( (new RawContextKey('interactivePlaygroundFocus', false)));
37
- const UNBOUND_COMMAND = ( localize(7529, "unbound"));
35
+ const UNBOUND_COMMAND = ( localize(7540, "unbound"));
38
36
  const WALK_THROUGH_EDITOR_VIEW_STATE_PREFERENCE_KEY = 'walkThroughEditorViewState';
39
37
  let WalkThroughPart = class WalkThroughPart extends EditorPane {
40
38
  static { WalkThroughPart_1 = this; }
@@ -59,8 +57,8 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
59
57
  this.content.tabIndex = 0;
60
58
  this.content.style.outlineStyle = 'none';
61
59
  this.scrollbar = ( (new DomScrollableElement(this.content, {
62
- horizontal: ScrollbarVisibility.Auto,
63
- vertical: ScrollbarVisibility.Auto
60
+ horizontal: 1 ,
61
+ vertical: 1
64
62
  })));
65
63
  this.disposables.add(this.scrollbar);
66
64
  container.appendChild(this.scrollbar.getDomNode());
@@ -144,7 +142,7 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
144
142
  }
145
143
  open(uri) {
146
144
  if (uri.scheme === 'command' && uri.path === 'git.clone' && !CommandsRegistry.getCommand('git.clone')) {
147
- this.notificationService.info(( localize(7530, "It looks like Git is not installed on your system.")));
145
+ this.notificationService.info(( localize(7541, "It looks like Git is not installed on your system.")));
148
146
  return;
149
147
  }
150
148
  this.openerService.open(this.addFrom(uri), { allowCommands: true });
@@ -231,7 +229,7 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
231
229
  }
232
230
  const content = model.main;
233
231
  if (!input.resource.path.endsWith('.md')) {
234
- safeInnerHtml(this.content, content);
232
+ safeInnerHtml(this.content, content, { ALLOW_UNKNOWN_PROTOCOLS: true });
235
233
  this.updateSizeClasses();
236
234
  this.decorateContent();
237
235
  this.contentDisposables.push(this.keybindingService.onDidUpdateKeybindings(() => this.decorateContent()));
@@ -244,7 +242,7 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
244
242
  const innerContent = document.createElement('div');
245
243
  innerContent.classList.add('walkThroughContent');
246
244
  const markdown = this.expandMacros(content);
247
- safeInnerHtml(innerContent, markdown);
245
+ safeInnerHtml(innerContent, markdown, { ALLOW_UNKNOWN_PROTOCOLS: true });
248
246
  this.content.appendChild(innerContent);
249
247
  model.snippets.forEach((snippet, i) => {
250
248
  const model = snippet.textEditorModel;
@@ -264,7 +262,7 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
264
262
  editor.setModel(model);
265
263
  this.contentDisposables.push(editor);
266
264
  const updateHeight = (initial) => {
267
- const lineHeight = editor.getOption(EditorOption.lineHeight);
265
+ const lineHeight = editor.getOption(69 );
268
266
  const height = `${Math.max(model.getLineCount() + 1, 4) * lineHeight}px`;
269
267
  if (div.style.height !== height) {
270
268
  div.style.height = height;
@@ -281,7 +279,7 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
281
279
  if (innerContent) {
282
280
  const targetTop = div.getBoundingClientRect().top;
283
281
  const containerTop = innerContent.getBoundingClientRect().top;
284
- const lineHeight = editor.getOption(EditorOption.lineHeight);
282
+ const lineHeight = editor.getOption(69 );
285
283
  const lineTop = (targetTop + (e.position.lineNumber - 1) * lineHeight) - containerTop;
286
284
  const lineBottom = lineTop + lineHeight;
287
285
  const scrollDimensions = this.scrollbar.getScrollDimensions();
@@ -364,7 +362,7 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
364
362
  multiCursorModifier() {
365
363
  const labels = UILabelProvider.modifierLabels[OS];
366
364
  const value = this.configurationService.getValue('editor.multiCursorModifier');
367
- const modifier = labels[value === 'ctrlCmd' ? (OS === OperatingSystem.Macintosh ? 'metaKey' : 'ctrlKey') : 'altKey'];
365
+ const modifier = labels[value === 'ctrlCmd' ? (OS === 2 ? 'metaKey' : 'ctrlKey') : 'altKey'];
368
366
  const keys = this.content.querySelectorAll('.multi-cursor-modifier');
369
367
  Array.prototype.forEach.call(keys, (key) => {
370
368
  while (key.firstChild) {
@@ -1,7 +1,6 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
3
3
  import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
4
- import { DefaultEndOfLine, EndOfLinePreference } from 'vscode/vscode/vs/editor/common/model';
5
4
  import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
6
5
  import { marked } from 'marked';
7
6
  import { Schemas } from 'vscode/vscode/vs/base/common/network';
@@ -73,10 +72,10 @@ let WalkThroughSnippetContentProvider = class WalkThroughSnippetContentProvider
73
72
  }
74
73
  return '';
75
74
  };
76
- const textBuffer = factory.create(DefaultEndOfLine.LF).textBuffer;
75
+ const textBuffer = factory.create(1 ).textBuffer;
77
76
  const lineCount = textBuffer.getLineCount();
78
77
  const range = ( new Range(1, 1, lineCount, textBuffer.getLineLength(lineCount) + 1));
79
- const markdown = textBuffer.getValueInRange(range, EndOfLinePreference.TextDefined);
78
+ const markdown = textBuffer.getValueInRange(range, 0 );
80
79
  marked(markdown, { renderer });
81
80
  }
82
81
  return assertIsDefined(codeEditorModel);
@@ -13,6 +13,6 @@ import { localize } from 'vscode/vscode/vs/nls';
13
13
  import { Color, RGBA } from 'vscode/vscode/vs/base/common/color';
14
14
 
15
15
  registerColor('walkThrough.embeddedEditorBackground', { dark: ( (new Color( (new RGBA(0, 0, 0, .4))))), light: '#f4f4f4', hcDark: null, hcLight: null }, ( localize(
16
- 10657,
16
+ 10750,
17
17
  'Background color for the embedded editors on the Interactive Playground.'
18
18
  )));