@codingame/monaco-vscode-extensions-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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extensions-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 - extensions service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,32 +15,32 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-1cc4ea0a-c5b6-54ed-bb60-078a99119b55-common": "19.0
|
|
19
|
-
"@codingame/monaco-vscode-256d5b78-0649-50e9-8354-2807f95f68f4-common": "19.0
|
|
20
|
-
"@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common": "19.0
|
|
21
|
-
"@codingame/monaco-vscode-2726569c-a06b-5f25-b851-14311bef12fa-common": "19.0
|
|
22
|
-
"@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common": "19.0
|
|
23
|
-
"@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "19.0
|
|
24
|
-
"@codingame/monaco-vscode-4a3ac544-9a61-534c-88df-756262793ef7-common": "19.0
|
|
25
|
-
"@codingame/monaco-vscode-571c8352-7953-5038-9f09-e03bb6219a0e-common": "19.0
|
|
26
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "19.0
|
|
27
|
-
"@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common": "19.0
|
|
28
|
-
"@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common": "19.0
|
|
29
|
-
"@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common": "19.0
|
|
30
|
-
"@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common": "19.0
|
|
31
|
-
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "19.0
|
|
32
|
-
"@codingame/monaco-vscode-9c72783f-914c-50be-b9ef-da16356d81a8-common": "19.0
|
|
33
|
-
"@codingame/monaco-vscode-9ebd6daf-8734-5a28-ad24-b238f5e5819d-common": "19.0
|
|
34
|
-
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "19.0
|
|
35
|
-
"@codingame/monaco-vscode-a9da9abe-278d-5ce6-9418-99c7c07c5c37-common": "19.0
|
|
36
|
-
"@codingame/monaco-vscode-api": "19.0
|
|
37
|
-
"@codingame/monaco-vscode-bf94ddb5-e436-506a-9763-5ab86b642508-common": "19.0
|
|
38
|
-
"@codingame/monaco-vscode-ca445022-b812-53ca-a041-e46c7e0b13de-common": "19.0
|
|
39
|
-
"@codingame/monaco-vscode-caf773dd-ab1d-5936-941d-a2fe9e896ffc-common": "19.0
|
|
40
|
-
"@codingame/monaco-vscode-eb7d5efd-2e60-59f8-9ba4-9a8ae8cb2957-common": "19.0
|
|
41
|
-
"@codingame/monaco-vscode-eba0b9b3-174c-5dae-9867-a37810ca1808-common": "19.0
|
|
42
|
-
"@codingame/monaco-vscode-f22e7e55-aee8-5b52-a6bc-950efd9f5890-common": "19.0
|
|
43
|
-
"@codingame/monaco-vscode-files-service-override": "19.0
|
|
18
|
+
"@codingame/monaco-vscode-1cc4ea0a-c5b6-54ed-bb60-078a99119b55-common": "19.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-256d5b78-0649-50e9-8354-2807f95f68f4-common": "19.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common": "19.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-2726569c-a06b-5f25-b851-14311bef12fa-common": "19.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common": "19.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "19.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-4a3ac544-9a61-534c-88df-756262793ef7-common": "19.1.0",
|
|
25
|
+
"@codingame/monaco-vscode-571c8352-7953-5038-9f09-e03bb6219a0e-common": "19.1.0",
|
|
26
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "19.1.0",
|
|
27
|
+
"@codingame/monaco-vscode-6845754f-e617-5ed9-8aaa-6ca3653a9532-common": "19.1.0",
|
|
28
|
+
"@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common": "19.1.0",
|
|
29
|
+
"@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common": "19.1.0",
|
|
30
|
+
"@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common": "19.1.0",
|
|
31
|
+
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "19.1.0",
|
|
32
|
+
"@codingame/monaco-vscode-9c72783f-914c-50be-b9ef-da16356d81a8-common": "19.1.0",
|
|
33
|
+
"@codingame/monaco-vscode-9ebd6daf-8734-5a28-ad24-b238f5e5819d-common": "19.1.0",
|
|
34
|
+
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "19.1.0",
|
|
35
|
+
"@codingame/monaco-vscode-a9da9abe-278d-5ce6-9418-99c7c07c5c37-common": "19.1.0",
|
|
36
|
+
"@codingame/monaco-vscode-api": "19.1.0",
|
|
37
|
+
"@codingame/monaco-vscode-bf94ddb5-e436-506a-9763-5ab86b642508-common": "19.1.0",
|
|
38
|
+
"@codingame/monaco-vscode-ca445022-b812-53ca-a041-e46c7e0b13de-common": "19.1.0",
|
|
39
|
+
"@codingame/monaco-vscode-caf773dd-ab1d-5936-941d-a2fe9e896ffc-common": "19.1.0",
|
|
40
|
+
"@codingame/monaco-vscode-eb7d5efd-2e60-59f8-9ba4-9a8ae8cb2957-common": "19.1.0",
|
|
41
|
+
"@codingame/monaco-vscode-eba0b9b3-174c-5dae-9867-a37810ca1808-common": "19.1.0",
|
|
42
|
+
"@codingame/monaco-vscode-f22e7e55-aee8-5b52-a6bc-950efd9f5890-common": "19.1.0",
|
|
43
|
+
"@codingame/monaco-vscode-files-service-override": "19.1.0"
|
|
44
44
|
},
|
|
45
45
|
"main": "index.js",
|
|
46
46
|
"module": "index.js",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { getWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
+
import { createElement, getWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
5
|
import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
6
6
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
@@ -16,7 +16,7 @@ class EditorWebviewZone {
|
|
|
16
16
|
this.line = line;
|
|
17
17
|
this.height = height;
|
|
18
18
|
this.webview = webview;
|
|
19
|
-
this.domNode =
|
|
19
|
+
this.domNode = createElement('div');
|
|
20
20
|
this.domNode.style.zIndex = '10';
|
|
21
21
|
this.afterLineNumber = line;
|
|
22
22
|
this.afterColumn = 1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
+
import { createElement, addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { parentOriginHash } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/iframe';
|
|
5
5
|
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
6
6
|
import { Barrier } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
@@ -101,7 +101,7 @@ let WebWorkerExtensionHost = class WebWorkerExtensionHost extends Disposable {
|
|
|
101
101
|
async _startInsideIframe() {
|
|
102
102
|
const webWorkerExtensionHostIframeSrc = await this._getWebWorkerExtensionHostIframeSrc();
|
|
103
103
|
const emitter = this._register(( new Emitter()));
|
|
104
|
-
const iframe =
|
|
104
|
+
const iframe = createElement('iframe');
|
|
105
105
|
iframe.setAttribute('class', 'web-worker-ext-host-iframe');
|
|
106
106
|
iframe.setAttribute('sandbox', 'allow-scripts allow-same-origin');
|
|
107
107
|
iframe.setAttribute('allow', 'usb; serial; hid; cross-origin-isolated;');
|
|
@@ -161,7 +161,7 @@ let WebWorkerExtensionHost = class WebWorkerExtensionHost extends Disposable {
|
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
163
|
const { data } = event.data;
|
|
164
|
-
if (barrier.isOpen() || !(data instanceof MessagePort)) {
|
|
164
|
+
if (barrier.isOpen() || !(data instanceof mainWindow.MessagePort)) {
|
|
165
165
|
console.warn('UNEXPECTED message', event);
|
|
166
166
|
const err = ( new Error('UNEXPECTED message'));
|
|
167
167
|
return rejectBarrier(ExtensionHostExitCode.UnexpectedError, err);
|
|
@@ -178,12 +178,12 @@ let WebWorkerExtensionHost = class WebWorkerExtensionHost extends Disposable {
|
|
|
178
178
|
iframe.contentWindow.postMessage({ type: 'vscode.init', data: messagePorts }, '*', [...( messagePorts.values())]);
|
|
179
179
|
port.onmessage = (event) => {
|
|
180
180
|
const { data } = event;
|
|
181
|
-
if (!(data instanceof ArrayBuffer)) {
|
|
181
|
+
if (!(data instanceof mainWindow.ArrayBuffer)) {
|
|
182
182
|
console.warn('UNKNOWN data received', data);
|
|
183
183
|
this._onDidExit.fire([77, 'UNKNOWN data received']);
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
|
-
emitter.fire(VSBuffer.wrap(
|
|
186
|
+
emitter.fire(VSBuffer.wrap(new mainWindow.Uint8Array(data, 0, data.byteLength)));
|
|
187
187
|
};
|
|
188
188
|
const protocol = {
|
|
189
189
|
onMessage: emitter.event,
|