@codingame/monaco-vscode-view-common-service-override 26.2.1 → 26.2.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-common-service-override",
|
|
3
|
-
"version": "26.2.
|
|
3
|
+
"version": "26.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - view-common service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "26.2.
|
|
19
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "26.2.
|
|
18
|
+
"@codingame/monaco-vscode-api": "26.2.2",
|
|
19
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "26.2.2"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -31,6 +31,7 @@ import { nativeHoverDelegate } from '@codingame/monaco-vscode-api/vscode/vs/plat
|
|
|
31
31
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
32
32
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
33
33
|
import { joinStrings } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
34
|
+
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
34
35
|
|
|
35
36
|
var LanguageStatus_1;
|
|
36
37
|
registerCss(languageStatus);
|
|
@@ -247,12 +248,12 @@ let LanguageStatus = class LanguageStatus {
|
|
|
247
248
|
if (!userHasInteractedWithStatus) {
|
|
248
249
|
const hoverTarget = targetWindow.document.querySelector(".monaco-workbench .context-view");
|
|
249
250
|
if (isHTMLElement(hoverTarget)) {
|
|
250
|
-
const observer =
|
|
251
|
+
const observer = new mainWindow.MutationObserver(() => {
|
|
251
252
|
if (targetWindow.document.contains(this._combinedEntryTooltip)) {
|
|
252
253
|
this._interactionCounter.increment();
|
|
253
254
|
observer.disconnect();
|
|
254
255
|
}
|
|
255
|
-
})
|
|
256
|
+
});
|
|
256
257
|
observer.observe(hoverTarget, {
|
|
257
258
|
childList: true,
|
|
258
259
|
subtree: true
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
import { h, reset, createElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
-
import { Disposable
|
|
2
|
+
import { h, DisposableResizeObserver, reset, createElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
5
5
|
import { MergeEditorLineRange } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange';
|
|
6
6
|
import { observableFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableFromEvent';
|
|
7
7
|
import { observableSignalFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableSignalFromEvent';
|
|
8
8
|
import { observableSignal } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableSignal';
|
|
9
|
-
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
10
9
|
import { transaction } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/transaction';
|
|
10
|
+
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
11
11
|
|
|
12
12
|
class EditorGutter extends Disposable {
|
|
13
13
|
constructor(_editor, _domNode, itemProvider) {
|
|
@@ -38,13 +38,12 @@ class EditorGutter extends Disposable {
|
|
|
38
38
|
width: "100%"
|
|
39
39
|
}
|
|
40
40
|
}).root);
|
|
41
|
-
const o = ( new
|
|
41
|
+
const o = this._register(( new DisposableResizeObserver(() => {
|
|
42
42
|
transaction(tx => {
|
|
43
43
|
this.domNodeSizeChanged.trigger(tx);
|
|
44
44
|
});
|
|
45
|
-
}));
|
|
45
|
+
})));
|
|
46
46
|
o.observe(this._domNode);
|
|
47
|
-
this._register(toDisposable(() => o.disconnect()));
|
|
48
47
|
this._register(autorun(reader => {
|
|
49
48
|
scrollDecoration.className = this.isScrollTopZero.read(reader) ? "" : "scroll-decoration";
|
|
50
49
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { Dimension, getWindow, EventType, addDisposableListener, findParentWithClass } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
+
import { DisposableResizeObserver, Dimension, getWindow, EventType, addDisposableListener, findParentWithClass } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
5
5
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
6
|
import { MutableDisposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
@@ -105,14 +105,11 @@ let WebviewViewPane = class WebviewViewPane extends ViewPane {
|
|
|
105
105
|
this._container = container;
|
|
106
106
|
this._rootContainer = undefined;
|
|
107
107
|
if (!this._resizeObserver) {
|
|
108
|
-
this._resizeObserver = ( new
|
|
108
|
+
this._resizeObserver = this._register(( new DisposableResizeObserver(() => {
|
|
109
109
|
setTimeout(() => {
|
|
110
110
|
this.layoutWebview();
|
|
111
111
|
}, 0);
|
|
112
|
-
}));
|
|
113
|
-
this._register(toDisposable(() => {
|
|
114
|
-
this._resizeObserver?.disconnect();
|
|
115
|
-
}));
|
|
112
|
+
})));
|
|
116
113
|
this._resizeObserver.observe(container);
|
|
117
114
|
}
|
|
118
115
|
}
|