@codingame/monaco-vscode-api 4.2.0 → 4.3.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/README.md CHANGED
@@ -162,15 +162,15 @@ Additionally, several packages that include the VSCode version of some services
162
162
  - **Preferences**: `@codingame/monaco-vscode-preferences-service-override`
163
163
  - Allow to read and write preferences
164
164
  - **Output**: `@codingame/monaco-vscode-output-service-override`
165
- - Output panel support. *Hint*: It only makes sense to enable it when *Views* service is used.
165
+ - Output panel support. *Hint*: It only makes sense to enable it when *Views* or *Workbench* service are used.
166
166
  - **Terminal**: `@codingame/monaco-vscode-terminal-service-override`
167
- - Terminal panel support. *Hint*: It only makes sense to enable it when *Views* service is used.
167
+ - Terminal panel support. *Hint*: It only makes sense to enable it when *Views* or *Workbench* service are used.
168
168
  - **Search**: `@codingame/monaco-vscode-search-service-override`
169
- - search panel support. *Hint*: It only makes sense to enable it when *Views* service is used.
169
+ - search panel support. *Hint*: It only makes sense to enable it when *Views* or *Workbench* service are used.
170
170
  - **Markers**: `@codingame/monaco-vscode-markers-service-override`
171
- - It adds the problems panel tab. *Hint*: It only makes sense to enable it when *Views* service is used.
171
+ - It adds the problems panel tab. *Hint*: It only makes sense to enable it when *Views* or *Workbench* service are used.
172
172
  - **SCM**: `@codingame/monaco-vscode-scm-service-override`
173
- - It adds the SCM API that can be used to implement source control. *Hint*: It only makes sense to enable it when *Views* service is used.
173
+ - It adds the SCM API that can be used to implement source control. *Hint*: It only makes sense to enable it when *Views* or *Workbench* service are used.
174
174
  - **Testing**: `@codingame/monaco-vscode-testing-service-override`
175
175
  - It adds the Tests API. *Hint*: It makes more sense to enable it when *Views* service is used.
176
176
  - **Language detection worker**: `@codingame/monaco-vscode-language-detection-worker-service-override`
@@ -201,7 +201,9 @@ Additionally, several packages that include the VSCode version of some services
201
201
  - **Notebook**: `@codingame/monaco-vscode-notebook-service-override`
202
202
  - Support for Jupyter notebooks
203
203
  - **Welcome**: `@codingame/monaco-vscode-welcome-service-override`
204
- - Support for welcome pages/components. *Hint*: It only makes sense to enable it when *Views* service is used.
204
+ - Support for [viewsWelcome contribution point](https://code.visualstudio.com/api/references/contribution-points#contributes.viewsWelcome). *Hint*: It only makes sense to enable it when *Views* or *Workbench* service are used.
205
+ - **Walkthrough**: `@codingame/monaco-vscode-walkthrough-service-override`
206
+ - Getting Started page and support for [walkthrough contribution point](https://code.visualstudio.com/api/references/contribution-points#contributes.walkthroughs). *Hint*: It only makes sense to enable it when *Views* or *Workbench* service are used.
205
207
  - **User data sync**: `@codingame/monaco-vscode-user-data-sync-service-override`
206
208
  - Support for user data sync. ⚠️ It can't really be used as it relies on a [closed source backend from microsoft](https://code.visualstudio.com/docs/editor/settings-sync#_can-i-use-a-different-backend-or-service-for-settings-sync) for the moment ⚠️
207
209
  - **Ai**: `@codingame/monaco-vscode-ai-service-override`
@@ -209,9 +211,9 @@ Additionally, several packages that include the VSCode version of some services
209
211
  - **Task**: `@codingame/monaco-vscode-task-service-override`
210
212
  - Task management
211
213
  - **Outline**: `@codingame/monaco-vscode-outline-service-override`
212
- - Support for the outline view. *Hint*: It only makes sense to enable it when *Views* service is used.
214
+ - Support for the outline view. *Hint*: It only makes sense to enable it when *Views* or *Workbench* service are used.
213
215
  - **Timeline**: `@codingame/monaco-vscode-timeline-service-override`
214
- - Support for the timeline view. *Hint*: It only makes sense to enable it when *Views* service is used.
216
+ - Support for the timeline view. *Hint*: It only makes sense to enable it when *Views* or *Workbench* service are used.
215
217
  - **Workbench**: `@codingame/monaco-vscode-workbench-service-override`
216
218
  - Allows to render the full workbench layout. Is exclusive with the `views` service. Do not use both services at the same time.
217
219
  - **Comments**
package/api.js CHANGED
@@ -29,7 +29,7 @@ function createProxy(key) {
29
29
  });
30
30
  }
31
31
  const api = {
32
- version: "1.88.0",
32
+ version: "1.88.1",
33
33
  tasks: createProxy('tasks'),
34
34
  notebooks: createProxy('notebooks'),
35
35
  scm: createProxy('scm'),
@@ -565,8 +565,8 @@ registerSingleton(IPathService, class PathService {
565
565
  registerSingleton(IProductService, class ProductService {
566
566
  constructor() {
567
567
  this._serviceBrand = undefined;
568
- this.version = "1.88.0";
569
- this.commit = "5c3e652f63e798a5ac2f31ffd0d863669328dc4c";
568
+ this.version = "1.88.1";
569
+ this.commit = "e170252f762678dec6ca2cc69aba1570769a5d39";
570
570
  this.quality = 'oss';
571
571
  this.nameShort = 'Code - OSS Dev';
572
572
  this.nameLong = 'Code - OSS Dev';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "VSCode public API plugged on the monaco editor",
5
5
  "keywords": [],
6
6
  "author": {
@@ -63,6 +63,9 @@
63
63
  },
64
64
  "./vscode/*": {
65
65
  "default": "./vscode/src/*.js"
66
+ },
67
+ "./external/*": {
68
+ "default": "./external/*"
66
69
  }
67
70
  },
68
71
  "typesVersions": {
@@ -94,12 +97,12 @@
94
97
  }
95
98
  },
96
99
  "dependencies": {
97
- "@codingame/monaco-vscode-extensions-service-override": "4.2.0",
98
- "@codingame/monaco-vscode-files-service-override": "4.2.0",
99
- "@codingame/monaco-vscode-quickaccess-service-override": "4.2.0",
100
- "@codingame/monaco-vscode-environment-service-override": "4.2.0",
101
- "@codingame/monaco-vscode-layout-service-override": "4.2.0",
102
- "@codingame/monaco-vscode-host-service-override": "4.2.0",
103
- "@codingame/monaco-vscode-base-service-override": "4.2.0"
100
+ "@codingame/monaco-vscode-extensions-service-override": "4.3.0",
101
+ "@codingame/monaco-vscode-files-service-override": "4.3.0",
102
+ "@codingame/monaco-vscode-quickaccess-service-override": "4.3.0",
103
+ "@codingame/monaco-vscode-environment-service-override": "4.3.0",
104
+ "@codingame/monaco-vscode-layout-service-override": "4.3.0",
105
+ "@codingame/monaco-vscode-host-service-override": "4.3.0",
106
+ "@codingame/monaco-vscode-base-service-override": "4.3.0"
104
107
  }
105
108
  }
package/services.js CHANGED
@@ -153,9 +153,9 @@ async function initialize(overrides, container = document.body, configuration =
153
153
  initialize$1(container, configuration, env);
154
154
  const instantiationService = StandaloneServices.initialize({
155
155
  [( IProductService.toString())]: mixin({
156
- version: "1.88.0",
156
+ version: "1.88.1",
157
157
  quality: 'stable',
158
- commit: "5c3e652f63e798a5ac2f31ffd0d863669328dc4c",
158
+ commit: "e170252f762678dec6ca2cc69aba1570769a5d39",
159
159
  nameShort: 'Code - OSS',
160
160
  nameLong: 'Code - OSS',
161
161
  applicationName: 'code-oss',
@@ -50,8 +50,8 @@ let DiffEditorWidget = class DiffEditorWidget extends DelegatingEditor {
50
50
  this._editorProgressService = _editorProgressService;
51
51
  this.elements = h('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
52
52
  h('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$('span', {}, 'No Changes')]),
53
- h('div.editor.original@original', { style: { position: 'absolute', height: '100%', zIndex: '1', } }),
54
- h('div.editor.modified@modified', { style: { position: 'absolute', height: '100%', zIndex: '1', } }),
53
+ h('div.editor.original@original', { style: { position: 'absolute', height: '100%', } }),
54
+ h('div.editor.modified@modified', { style: { position: 'absolute', height: '100%', } }),
55
55
  h('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
56
56
  ]);
57
57
  this._diffModel = observableValue(this, undefined);
@@ -6,7 +6,7 @@ import { derived } from '../../../../../base/common/observableInternal/derived.j
6
6
  import { autorun, autorunWithStore } from '../../../../../base/common/observableInternal/autorun.js';
7
7
  import { observableFromEvent } from '../../../../../base/common/observableInternal/utils.js';
8
8
  import '../../../../../base/common/cancellation.js';
9
- import { appendRemoveOnDispose, applyStyle } from '../utils.js';
9
+ import { prependRemoveOnDispose, applyStyle, appendRemoveOnDispose } from '../utils.js';
10
10
  import { EditorGutter } from '../utils/editorGutter.js';
11
11
  import { ActionRunnerWithContext } from '../../multiDiffEditor/utils.js';
12
12
  import { LineRangeSet, LineRange } from '../../../../common/core/lineRange.js';
@@ -34,7 +34,7 @@ let DiffEditorGutter = class DiffEditorGutter extends Disposable {
34
34
  this._actions = observableFromEvent(this._menu.onDidChange, () => this._menu.getActions());
35
35
  this._hasActions = ( this._actions.map(a => a.length > 0));
36
36
  this.width = derived(this, reader => this._hasActions.read(reader) ? width : 0);
37
- this.elements = h('div.gutter@gutter', { style: { position: 'absolute', height: '100%', width: width + 'px', zIndex: '0' } }, []);
37
+ this.elements = h('div.gutter@gutter', { style: { position: 'absolute', height: '100%', width: width + 'px' } }, []);
38
38
  this._currentDiff = derived(this, (reader) => {
39
39
  const model = this._diffModel.read(reader);
40
40
  if (!model) {
@@ -68,7 +68,7 @@ let DiffEditorGutter = class DiffEditorGutter extends Disposable {
68
68
  }
69
69
  return result;
70
70
  });
71
- this._register(appendRemoveOnDispose(diffEditorRoot, this.elements.root));
71
+ this._register(prependRemoveOnDispose(diffEditorRoot, this.elements.root));
72
72
  this._register(addDisposableListener(this.elements.root, 'click', () => {
73
73
  this._editors.modified.focus();
74
74
  }));
@@ -69,6 +69,12 @@ function appendRemoveOnDispose(parent, child) {
69
69
  parent.removeChild(child);
70
70
  });
71
71
  }
72
+ function prependRemoveOnDispose(parent, child) {
73
+ parent.prepend(child);
74
+ return toDisposable(() => {
75
+ parent.removeChild(child);
76
+ });
77
+ }
72
78
  class ObservableElementSizeObserver extends Disposable {
73
79
  get width() { return this._width; }
74
80
  get height() { return this._height; }
@@ -341,4 +347,4 @@ function filterWithPrevious(arr, filter) {
341
347
  return result;
342
348
  });
343
349
  }
344
- export { DisposableCancellationTokenSource, ManagedOverlayWidget, ObservableElementSizeObserver, PlaceholderViewZone, ViewZoneOverlayWidget, animatedObservable, appendRemoveOnDispose, applyObservableDecorations, applyStyle, applyViewZones, bindContextKey, filterWithPrevious, joinCombine, observeHotReloadableExports, readHotReloadableExport, translatePosition };
350
+ export { DisposableCancellationTokenSource, ManagedOverlayWidget, ObservableElementSizeObserver, PlaceholderViewZone, ViewZoneOverlayWidget, animatedObservable, appendRemoveOnDispose, applyObservableDecorations, applyStyle, applyViewZones, bindContextKey, filterWithPrevious, joinCombine, observeHotReloadableExports, prependRemoveOnDispose, readHotReloadableExport, translatePosition };
@@ -195,7 +195,13 @@ let NotebookCellOutlineProvider = class NotebookCellOutlineProvider {
195
195
  }
196
196
  }
197
197
  }
198
- if (newActive !== this._activeEntry) {
198
+ const showCodeCells = this._configurationService.getValue(NotebookSetting.outlineShowCodeCells);
199
+ const showCodeCellSymbols = this._configurationService.getValue(NotebookSetting.outlineShowCodeCellSymbols);
200
+ const showMarkdownHeadersOnly = this._configurationService.getValue(NotebookSetting.outlineShowMarkdownHeadersOnly);
201
+ if ((newActive !== this._activeEntry) && !((
202
+ (showMarkdownHeadersOnly && newActive?.cell.cellKind === CellKind.Markup && newActive?.level === 7) ||
203
+ (!showCodeCells && newActive?.cell.cellKind === CellKind.Code) || (!showCodeCellSymbols && newActive?.cell.cellKind === CellKind.Code && newActive?.level > 7))
204
+ )) {
199
205
  this._activeEntry = newActive;
200
206
  this._onDidChange.fire({ affectOnlyActiveElement: true });
201
207
  }
@@ -3,7 +3,6 @@ import { createDecorator, IInstantiationService } from '../../../../platform/ins
3
3
  import { Emitter } from '../../../../base/common/event.js';
4
4
  import { IStorageService } from '../../../../platform/storage/common/storage.js';
5
5
  import { Memento } from '../../../common/memento.js';
6
- import { registerAction2, Action2 } from '../../../../platform/actions/common/actions.js';
7
6
  import { ICommandService } from '../../../../platform/commands/common/commands.js';
8
7
  import { ContextKeyExpr, IContextKeyService, RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
9
8
  import { Disposable } from '../../../../base/common/lifecycle.js';
@@ -21,7 +20,7 @@ import { walkthroughsExtensionPoint } from './gettingStartedExtensionPoint.js';
21
20
  import { dirname } from '../../../../base/common/path.js';
22
21
  import { coalesce, flatten } from '../../../../base/common/arrays.js';
23
22
  import { IViewsService } from '../../../services/views/common/viewsService.js';
24
- import { localize2WithPath, localizeWithPath } from '../../../../nls.js';
23
+ import { localizeWithPath } from '../../../../nls.js';
25
24
  import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.js';
26
25
  import { checkGlobFileExists } from '../../../services/extensions/common/workspaceContains.js';
27
26
  import { IWorkspaceContextService } from '../../../../platform/workspace/common/workspace.js';
@@ -523,41 +522,4 @@ const convertInternalMediaPathsToBrowserURIs = (path) => {
523
522
  };
524
523
  }
525
524
  };
526
- registerAction2(class extends Action2 {
527
- constructor() {
528
- super({
529
- id: 'resetGettingStartedProgress',
530
- category: ( localize2WithPath(
531
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService',
532
- 'developer',
533
- "Developer"
534
- )),
535
- title: ( localize2WithPath(
536
- 'vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService',
537
- 'resetWelcomePageWalkthroughProgress',
538
- "Reset Welcome Page Walkthrough Progress"
539
- )),
540
- f1: true
541
- });
542
- }
543
- run(accessor) {
544
- const gettingStartedService = accessor.get(IWalkthroughsService);
545
- const storageService = accessor.get(IStorageService);
546
- storageService.store(hiddenEntriesConfigurationKey, JSON.stringify([]), 0 , 0 );
547
- storageService.store(walkthroughMetadataConfigurationKey, JSON.stringify([]), 0 , 0 );
548
- const memento = ( new Memento('gettingStartedService', accessor.get(IStorageService)));
549
- const record = memento.getMemento(0 , 0 );
550
- for (const key in record) {
551
- if (Object.prototype.hasOwnProperty.call(record, key)) {
552
- try {
553
- gettingStartedService.deprogressStep(key);
554
- }
555
- catch (e) {
556
- console.error(e);
557
- }
558
- }
559
- }
560
- memento.saveMemento();
561
- }
562
- });
563
525
  export { HasMultipleNewFileEntries, IWalkthroughsService, WalkthroughsService, convertInternalMediaPathToFileURI, hiddenEntriesConfigurationKey, parseDescription, walkthroughMetadataConfigurationKey };