@codingame/monaco-vscode-extensions-service-override 36.2.6 → 36.2.7
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": "36.2.
|
|
3
|
+
"version": "36.2.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - extensions service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "36.2.
|
|
19
|
-
"@codingame/monaco-vscode-files-service-override": "36.2.
|
|
18
|
+
"@codingame/monaco-vscode-api": "36.2.7",
|
|
19
|
+
"@codingame/monaco-vscode-files-service-override": "36.2.7"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { createElement, addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
-
import { parentOriginHash } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/iframe';
|
|
4
|
+
import { parentOriginHash, replaceUriAuthorityPlaceholder } 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';
|
|
7
7
|
import { VSBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
@@ -98,14 +98,15 @@ let WebWorkerExtensionHost = class WebWorkerExtensionHost extends Disposable {
|
|
|
98
98
|
const hash = await parentOriginHash(mainWindow.origin, stableOriginUUID);
|
|
99
99
|
const uuid = `v--${hash}`;
|
|
100
100
|
if (webEndpointUrlTemplate && commit && quality) {
|
|
101
|
-
const baseUrl = (
|
|
102
|
-
|
|
101
|
+
const baseUrl = ( replaceUriAuthorityPlaceholder(( URI.parse(
|
|
102
|
+
webEndpointUrlTemplate.replace("{{commit}}", commit).replace("{{quality}}", quality)
|
|
103
|
+
)), "{{uuid}}", uuid).toString(true));
|
|
103
104
|
const res = ( new URL(`${baseUrl}/out/${iframeModulePath}${suffix}`));
|
|
104
105
|
res.searchParams.set("salt", stableOriginUUID);
|
|
105
106
|
return ( res.toString());
|
|
106
107
|
} else {
|
|
107
|
-
const relativeExtensionHostIframeSrc = ( ( FileAccess.asBrowserUri(iframeModulePath)).toString(true));
|
|
108
|
-
return `${relativeExtensionHostIframeSrc
|
|
108
|
+
const relativeExtensionHostIframeSrc = ( replaceUriAuthorityPlaceholder(( FileAccess.asBrowserUri(iframeModulePath)), "{{uuid}}", uuid).toString(true));
|
|
109
|
+
return `${relativeExtensionHostIframeSrc}${suffix}`;
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
112
|
const relativeExtensionHostIframeSrc = this._webWorkerService.getWorkerUrl(( new WebWorkerDescriptor({
|