@codingame/monaco-vscode-view-common-service-override 19.0.1 → 19.1.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/package.json +42 -42
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +2 -1
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +7 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +2 -2
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +2 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-common-service-override",
|
|
3
|
-
"version": "19.0
|
|
3
|
+
"version": "19.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - view-common service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,47 +15,47 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "19.0
|
|
19
|
-
"@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "19.0
|
|
20
|
-
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "19.0
|
|
21
|
-
"@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common": "19.0
|
|
22
|
-
"@codingame/monaco-vscode-210e86a9-a91b-5273-b05d-390c776dde1f-common": "19.0
|
|
23
|
-
"@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common": "19.0
|
|
24
|
-
"@codingame/monaco-vscode-2726569c-a06b-5f25-b851-14311bef12fa-common": "19.0
|
|
25
|
-
"@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common": "19.0
|
|
26
|
-
"@codingame/monaco-vscode-3109a756-1f83-5d09-945b-9f0fcad928f0-common": "19.0
|
|
27
|
-
"@codingame/monaco-vscode-33de3d75-8b1a-53f0-9e27-0c71c327e1a1-common": "19.0
|
|
28
|
-
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "19.0
|
|
29
|
-
"@codingame/monaco-vscode-4a316137-39d1-5d77-8b53-112db3547c1e-common": "19.0
|
|
30
|
-
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "19.0
|
|
31
|
-
"@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common": "19.0
|
|
32
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "19.0
|
|
33
|
-
"@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "19.0
|
|
34
|
-
"@codingame/monaco-vscode-72a1b7d3-3f58-5545-9b7e-f579bd003081-common": "19.0
|
|
35
|
-
"@codingame/monaco-vscode-7869cfe8-f42c-5721-9f2b-7d04a6a41f16-common": "19.0
|
|
36
|
-
"@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common": "19.0
|
|
37
|
-
"@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common": "19.0
|
|
38
|
-
"@codingame/monaco-vscode-897bebad-39df-57cb-8a57-36a271d038be-common": "19.0
|
|
39
|
-
"@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "19.0
|
|
40
|
-
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "19.0
|
|
41
|
-
"@codingame/monaco-vscode-937ecbdf-94c7-5b16-aefa-ad78ae557a93-common": "19.0
|
|
42
|
-
"@codingame/monaco-vscode-9c72783f-914c-50be-b9ef-da16356d81a8-common": "19.0
|
|
43
|
-
"@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "19.0
|
|
44
|
-
"@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "19.0
|
|
45
|
-
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "19.0
|
|
46
|
-
"@codingame/monaco-vscode-api": "19.0
|
|
47
|
-
"@codingame/monaco-vscode-bc6d9a89-1625-5010-b57e-ff44151144fe-common": "19.0
|
|
48
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "19.0
|
|
49
|
-
"@codingame/monaco-vscode-caf773dd-ab1d-5936-941d-a2fe9e896ffc-common": "19.0
|
|
50
|
-
"@codingame/monaco-vscode-d26a96d3-122c-5a3d-a04d-deb5ff0f19c0-common": "19.0
|
|
51
|
-
"@codingame/monaco-vscode-d481a59e-259c-524e-bee1-76483d75d3a1-common": "19.0
|
|
52
|
-
"@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "19.0
|
|
53
|
-
"@codingame/monaco-vscode-ddbd4d51-94af-51e5-96b5-f2166ed67ad0-common": "19.0
|
|
54
|
-
"@codingame/monaco-vscode-e59ecb8c-db32-5324-8fe4-cf9921fd92b8-common": "19.0
|
|
55
|
-
"@codingame/monaco-vscode-e72c94ca-257a-5b75-8b68-5a5fa3c18255-common": "19.0
|
|
56
|
-
"@codingame/monaco-vscode-f1bbc6d3-6129-583c-a2ba-c80b832993d2-common": "19.0
|
|
57
|
-
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "19.0
|
|
58
|
-
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "19.0
|
|
18
|
+
"@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "19.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "19.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "19.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common": "19.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-210e86a9-a91b-5273-b05d-390c776dde1f-common": "19.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common": "19.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-2726569c-a06b-5f25-b851-14311bef12fa-common": "19.1.0",
|
|
25
|
+
"@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common": "19.1.0",
|
|
26
|
+
"@codingame/monaco-vscode-3109a756-1f83-5d09-945b-9f0fcad928f0-common": "19.1.0",
|
|
27
|
+
"@codingame/monaco-vscode-33de3d75-8b1a-53f0-9e27-0c71c327e1a1-common": "19.1.0",
|
|
28
|
+
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "19.1.0",
|
|
29
|
+
"@codingame/monaco-vscode-4a316137-39d1-5d77-8b53-112db3547c1e-common": "19.1.0",
|
|
30
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "19.1.0",
|
|
31
|
+
"@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common": "19.1.0",
|
|
32
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "19.1.0",
|
|
33
|
+
"@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "19.1.0",
|
|
34
|
+
"@codingame/monaco-vscode-72a1b7d3-3f58-5545-9b7e-f579bd003081-common": "19.1.0",
|
|
35
|
+
"@codingame/monaco-vscode-7869cfe8-f42c-5721-9f2b-7d04a6a41f16-common": "19.1.0",
|
|
36
|
+
"@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common": "19.1.0",
|
|
37
|
+
"@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common": "19.1.0",
|
|
38
|
+
"@codingame/monaco-vscode-897bebad-39df-57cb-8a57-36a271d038be-common": "19.1.0",
|
|
39
|
+
"@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "19.1.0",
|
|
40
|
+
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "19.1.0",
|
|
41
|
+
"@codingame/monaco-vscode-937ecbdf-94c7-5b16-aefa-ad78ae557a93-common": "19.1.0",
|
|
42
|
+
"@codingame/monaco-vscode-9c72783f-914c-50be-b9ef-da16356d81a8-common": "19.1.0",
|
|
43
|
+
"@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "19.1.0",
|
|
44
|
+
"@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "19.1.0",
|
|
45
|
+
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "19.1.0",
|
|
46
|
+
"@codingame/monaco-vscode-api": "19.1.0",
|
|
47
|
+
"@codingame/monaco-vscode-bc6d9a89-1625-5010-b57e-ff44151144fe-common": "19.1.0",
|
|
48
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "19.1.0",
|
|
49
|
+
"@codingame/monaco-vscode-caf773dd-ab1d-5936-941d-a2fe9e896ffc-common": "19.1.0",
|
|
50
|
+
"@codingame/monaco-vscode-d26a96d3-122c-5a3d-a04d-deb5ff0f19c0-common": "19.1.0",
|
|
51
|
+
"@codingame/monaco-vscode-d481a59e-259c-524e-bee1-76483d75d3a1-common": "19.1.0",
|
|
52
|
+
"@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "19.1.0",
|
|
53
|
+
"@codingame/monaco-vscode-ddbd4d51-94af-51e5-96b5-f2166ed67ad0-common": "19.1.0",
|
|
54
|
+
"@codingame/monaco-vscode-e59ecb8c-db32-5324-8fe4-cf9921fd92b8-common": "19.1.0",
|
|
55
|
+
"@codingame/monaco-vscode-e72c94ca-257a-5b75-8b68-5a5fa3c18255-common": "19.1.0",
|
|
56
|
+
"@codingame/monaco-vscode-f1bbc6d3-6129-583c-a2ba-c80b832993d2-common": "19.1.0",
|
|
57
|
+
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "19.1.0",
|
|
58
|
+
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "19.1.0"
|
|
59
59
|
},
|
|
60
60
|
"main": "index.js",
|
|
61
61
|
"module": "index.js",
|
|
@@ -9,7 +9,7 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
|
9
9
|
import { ScrollType } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon';
|
|
10
10
|
import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
|
|
11
11
|
import { SplitView, Sizing } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/splitview/splitview';
|
|
12
|
-
import { Dimension, isKeyboardEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
12
|
+
import { Dimension, createElement, isKeyboardEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
13
13
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
14
14
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
15
15
|
import { EmbeddedCodeEditorWidget } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget';
|
|
@@ -119,16 +119,16 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
119
119
|
this._dim = ( new Dimension(0, 0));
|
|
120
120
|
this._parent = parent;
|
|
121
121
|
parent.classList.add('call-hierarchy');
|
|
122
|
-
const message =
|
|
122
|
+
const message = createElement('div');
|
|
123
123
|
message.classList.add('message');
|
|
124
124
|
parent.appendChild(message);
|
|
125
125
|
this._message = message;
|
|
126
126
|
this._message.tabIndex = 0;
|
|
127
|
-
const container =
|
|
127
|
+
const container = createElement('div');
|
|
128
128
|
container.classList.add('results');
|
|
129
129
|
parent.appendChild(container);
|
|
130
130
|
this._splitView = ( new SplitView(container, { orientation: Orientation.HORIZONTAL }));
|
|
131
|
-
const editorContainer =
|
|
131
|
+
const editorContainer = createElement('div');
|
|
132
132
|
editorContainer.classList.add('editor');
|
|
133
133
|
container.appendChild(editorContainer);
|
|
134
134
|
const editorOptions = {
|
|
@@ -148,7 +148,7 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
this._editor = this._instantiationService.createInstance(EmbeddedCodeEditorWidget, editorContainer, editorOptions, {}, this.editor);
|
|
151
|
-
const treeContainer =
|
|
151
|
+
const treeContainer = createElement('div');
|
|
152
152
|
treeContainer.classList.add('tree');
|
|
153
153
|
container.appendChild(treeContainer);
|
|
154
154
|
const options = {
|
|
@@ -8,6 +8,7 @@ import { compare } from '@codingame/monaco-vscode-api/vscode/vs/base/common/stri
|
|
|
8
8
|
import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
|
|
9
9
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
10
10
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
11
|
+
import { createElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
11
12
|
|
|
12
13
|
class Call {
|
|
13
14
|
constructor(item, locations, model, parent) {
|
|
@@ -78,7 +79,7 @@ class CallRenderer {
|
|
|
78
79
|
static { this.id = 'CallRenderer'; }
|
|
79
80
|
renderTemplate(container) {
|
|
80
81
|
container.classList.add('callhierarchy-element');
|
|
81
|
-
const icon =
|
|
82
|
+
const icon = createElement('div');
|
|
82
83
|
container.appendChild(icon);
|
|
83
84
|
const label = ( new IconLabel(container, { supportHighlights: true }));
|
|
84
85
|
return ( new CallRenderingTemplate(icon, label));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
4
4
|
import * as languageStatus from './media/languageStatus.css';
|
|
5
|
-
import { getWindow, isHTMLElement, addDisposableListener, append, $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
|
+
import { createElement, getWindow, isHTMLElement, addDisposableListener, append, $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
6
6
|
import { renderLabelWithIcons } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabels';
|
|
7
7
|
import { Disposable, DisposableStore, dispose, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
8
|
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
@@ -95,7 +95,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
95
95
|
this._dedicated = ( new Set());
|
|
96
96
|
this._dedicatedEntries = ( new Map());
|
|
97
97
|
this._renderDisposables = ( new DisposableStore());
|
|
98
|
-
this._combinedEntryTooltip =
|
|
98
|
+
this._combinedEntryTooltip = createElement('div');
|
|
99
99
|
_storageService.onDidChangeValue(StorageScope.PROFILE, LanguageStatus_1._keyDedicatedItems, this._disposables)(this._handleStorageChange, this, this._disposables);
|
|
100
100
|
this._restoreState();
|
|
101
101
|
this._interactionCounter = ( new StoredCounter(_storageService, 'languageStatus.interactCount'));
|
|
@@ -241,26 +241,26 @@ let LanguageStatus = class LanguageStatus {
|
|
|
241
241
|
this._dedicatedEntries = newDedicatedEntries;
|
|
242
242
|
}
|
|
243
243
|
_renderStatus(container, status, showSeverity, isPinned, store) {
|
|
244
|
-
const parent =
|
|
244
|
+
const parent = createElement('div');
|
|
245
245
|
parent.classList.add('hover-language-status');
|
|
246
246
|
container.appendChild(parent);
|
|
247
247
|
store.add(toDisposable(() => parent.remove()));
|
|
248
|
-
const severity =
|
|
248
|
+
const severity = createElement('div');
|
|
249
249
|
severity.classList.add('severity', `sev${status.severity}`);
|
|
250
250
|
severity.classList.toggle('show', showSeverity);
|
|
251
251
|
const severityText = LanguageStatus_1._severityToSingleCodicon(status.severity);
|
|
252
252
|
append(severity, ...renderLabelWithIcons(severityText));
|
|
253
253
|
parent.appendChild(severity);
|
|
254
|
-
const element =
|
|
254
|
+
const element = createElement('div');
|
|
255
255
|
element.classList.add('element');
|
|
256
256
|
parent.appendChild(element);
|
|
257
|
-
const left =
|
|
257
|
+
const left = createElement('div');
|
|
258
258
|
left.classList.add('left');
|
|
259
259
|
element.appendChild(left);
|
|
260
260
|
const label = typeof status.label === 'string' ? status.label : status.label.value;
|
|
261
261
|
append(left, ...renderLabelWithIcons(computeText(label, status.busy)));
|
|
262
262
|
this._renderTextPlus(left, status.detail, store);
|
|
263
|
-
const right =
|
|
263
|
+
const right = createElement('div');
|
|
264
264
|
right.classList.add('right');
|
|
265
265
|
element.appendChild(right);
|
|
266
266
|
const { command } = status;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { h, reset } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
2
|
+
import { h, reset, createElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
3
|
import { Disposable, toDisposable } 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-210e86a9-a91b-5273-b05d-390c776dde1f-common/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange';
|
|
@@ -62,7 +62,7 @@ class EditorGutter extends Disposable {
|
|
|
62
62
|
unusedIds.delete(gutterItem.id);
|
|
63
63
|
let view = this.views.get(gutterItem.id);
|
|
64
64
|
if (!view) {
|
|
65
|
-
const viewDomNode =
|
|
65
|
+
const viewDomNode = createElement('div');
|
|
66
66
|
this._domNode.appendChild(viewDomNode);
|
|
67
67
|
const itemView = this.itemProvider.createView(gutterItem, viewDomNode);
|
|
68
68
|
view = ( new ManagedGutterItemView(itemView, viewDomNode));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
4
4
|
import * as typeHierarchy from './media/typeHierarchy.css';
|
|
5
|
-
import { Dimension, isKeyboardEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
|
+
import { Dimension, createElement, isKeyboardEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
6
6
|
import { SplitView, Sizing } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/splitview/splitview';
|
|
7
7
|
import { TreeMouseEventTarget } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/tree';
|
|
8
8
|
import { Color } from '@codingame/monaco-vscode-api/vscode/vs/base/common/color';
|
|
@@ -119,16 +119,16 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
119
119
|
this._dim = ( new Dimension(0, 0));
|
|
120
120
|
this._parent = parent;
|
|
121
121
|
parent.classList.add('type-hierarchy');
|
|
122
|
-
const message =
|
|
122
|
+
const message = createElement('div');
|
|
123
123
|
message.classList.add('message');
|
|
124
124
|
parent.appendChild(message);
|
|
125
125
|
this._message = message;
|
|
126
126
|
this._message.tabIndex = 0;
|
|
127
|
-
const container =
|
|
127
|
+
const container = createElement('div');
|
|
128
128
|
container.classList.add('results');
|
|
129
129
|
parent.appendChild(container);
|
|
130
130
|
this._splitView = ( new SplitView(container, { orientation: Orientation.HORIZONTAL }));
|
|
131
|
-
const editorContainer =
|
|
131
|
+
const editorContainer = createElement('div');
|
|
132
132
|
editorContainer.classList.add('editor');
|
|
133
133
|
container.appendChild(editorContainer);
|
|
134
134
|
const editorOptions = {
|
|
@@ -148,7 +148,7 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
this._editor = this._instantiationService.createInstance(EmbeddedCodeEditorWidget, editorContainer, editorOptions, {}, this.editor);
|
|
151
|
-
const treeContainer =
|
|
151
|
+
const treeContainer = createElement('div');
|
|
152
152
|
treeContainer.classList.add('tree');
|
|
153
153
|
container.appendChild(treeContainer);
|
|
154
154
|
const options = {
|
|
@@ -8,6 +8,7 @@ import { compare } from '@codingame/monaco-vscode-api/vscode/vs/base/common/stri
|
|
|
8
8
|
import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
|
|
9
9
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
10
10
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
11
|
+
import { createElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
11
12
|
|
|
12
13
|
class Type {
|
|
13
14
|
constructor(item, model, parent) {
|
|
@@ -77,7 +78,7 @@ class TypeRenderer {
|
|
|
77
78
|
static { this.id = 'TypeRenderer'; }
|
|
78
79
|
renderTemplate(container) {
|
|
79
80
|
container.classList.add('typehierarchy-element');
|
|
80
|
-
const icon =
|
|
81
|
+
const icon = createElement('div');
|
|
81
82
|
container.appendChild(icon);
|
|
82
83
|
const label = ( new IconLabel(container, { supportHighlights: true }));
|
|
83
84
|
return ( new TypeRenderingTemplate(icon, label));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { getWindowById } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
+
import { getWindowById, createElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { FastDomNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/fastDomNode';
|
|
5
5
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
6
|
import { Disposable, MutableDisposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
@@ -77,7 +77,7 @@ let OverlayWebview = class OverlayWebview extends Disposable {
|
|
|
77
77
|
throw ( new Error(`OverlayWebview has been disposed`));
|
|
78
78
|
}
|
|
79
79
|
if (!this._container) {
|
|
80
|
-
const node =
|
|
80
|
+
const node = createElement('div');
|
|
81
81
|
node.style.position = 'absolute';
|
|
82
82
|
node.style.overflow = 'hidden';
|
|
83
83
|
this._container = ( new FastDomNode(node));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { isFirefox } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/browser';
|
|
4
|
-
import { getWindowById, EventType, addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { getWindowById, createElement, EventType, addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
5
|
import { parentOriginHash } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/iframe';
|
|
6
6
|
import { ThrottledDelayer, promiseWithResolvers } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
7
7
|
import { streamToBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
@@ -265,7 +265,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
_createElement(options, _contentOptions) {
|
|
268
|
-
const element =
|
|
268
|
+
const element = createElement('iframe');
|
|
269
269
|
element.name = this.id;
|
|
270
270
|
element.className = `webview ${options.customClasses || ''}`;
|
|
271
271
|
element.sandbox.add('allow-scripts', 'allow-same-origin', 'allow-forms', 'allow-pointer-lock', 'allow-downloads');
|