@codingame/monaco-vscode-api 4.2.0 → 4.2.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.
- package/api.js +1 -1
- package/missing-services.js +2 -2
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +3 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +7 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +7 -1
package/api.js
CHANGED
package/missing-services.js
CHANGED
|
@@ -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.
|
|
569
|
-
this.commit = "
|
|
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.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "VSCode public API plugged on the monaco editor",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": {
|
|
@@ -94,12 +94,12 @@
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"@codingame/monaco-vscode-
|
|
98
|
-
"@codingame/monaco-vscode-
|
|
99
|
-
"@codingame/monaco-vscode-
|
|
100
|
-
"@codingame/monaco-vscode-environment-service-override": "4.2.
|
|
101
|
-
"@codingame/monaco-vscode-layout-service-override": "4.2.
|
|
102
|
-
"@codingame/monaco-vscode-host-service-override": "4.2.
|
|
103
|
-
"@codingame/monaco-vscode-base-service-override": "4.2.
|
|
97
|
+
"@codingame/monaco-vscode-files-service-override": "4.2.1",
|
|
98
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "4.2.1",
|
|
99
|
+
"@codingame/monaco-vscode-extensions-service-override": "4.2.1",
|
|
100
|
+
"@codingame/monaco-vscode-environment-service-override": "4.2.1",
|
|
101
|
+
"@codingame/monaco-vscode-layout-service-override": "4.2.1",
|
|
102
|
+
"@codingame/monaco-vscode-host-service-override": "4.2.1",
|
|
103
|
+
"@codingame/monaco-vscode-base-service-override": "4.2.1"
|
|
104
104
|
}
|
|
105
105
|
}
|
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.
|
|
156
|
+
version: "1.88.1",
|
|
157
157
|
quality: 'stable',
|
|
158
|
-
commit: "
|
|
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%',
|
|
54
|
-
h('div.editor.modified@modified', { style: { position: 'absolute', height: '100%',
|
|
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 {
|
|
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'
|
|
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(
|
|
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 };
|
package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js
CHANGED
|
@@ -195,7 +195,13 @@ let NotebookCellOutlineProvider = class NotebookCellOutlineProvider {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
|
|
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
|
}
|