@codingame/monaco-vscode-api 1.83.13 → 1.83.14
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-api",
|
|
3
|
-
"version": "1.83.
|
|
3
|
+
"version": "1.83.14",
|
|
4
4
|
"description": "VSCode public API plugged on the monaco editor",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": {
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
"dependencies": {
|
|
97
97
|
"monaco-editor": "0.44.0",
|
|
98
98
|
"vscode-semver": "npm:semver@=5.5.0",
|
|
99
|
-
"@codingame/monaco-vscode-
|
|
100
|
-
"@codingame/monaco-vscode-
|
|
101
|
-
"@codingame/monaco-vscode-
|
|
102
|
-
"@codingame/monaco-vscode-
|
|
103
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "1.83.
|
|
99
|
+
"@codingame/monaco-vscode-extensions-service-override": "1.83.14",
|
|
100
|
+
"@codingame/monaco-vscode-files-service-override": "1.83.14",
|
|
101
|
+
"@codingame/monaco-vscode-layout-service-override": "1.83.14",
|
|
102
|
+
"@codingame/monaco-vscode-environment-service-override": "1.83.14",
|
|
103
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "1.83.14"
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -214,10 +214,10 @@ let StandaloneEditorGroup = StandaloneEditorGroup_1 = class StandaloneEditorGrou
|
|
|
214
214
|
this.closeEditors = unsupported;
|
|
215
215
|
this.closeAllEditors = unsupported;
|
|
216
216
|
this.replaceEditors = unsupported;
|
|
217
|
-
this.pinEditor =
|
|
218
|
-
this.stickEditor =
|
|
219
|
-
this.unstickEditor =
|
|
220
|
-
this.lock =
|
|
217
|
+
this.pinEditor = () => { };
|
|
218
|
+
this.stickEditor = () => { };
|
|
219
|
+
this.unstickEditor = () => { };
|
|
220
|
+
this.lock = () => { };
|
|
221
221
|
this.isFirst = unsupported;
|
|
222
222
|
this.isLast = unsupported;
|
|
223
223
|
const onNewModel = (uri) => {
|
package/vscode/src/vs/platform/extensionResourceLoader/browser/extensionResourceLoaderService.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
3
|
-
import { FileAccess, Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
4
|
-
import { IProductService } from 'monaco-editor/esm/vs/platform/product/common/productService.js';
|
|
5
|
-
import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
6
|
-
import { IEnvironmentService } from 'monaco-editor/esm/vs/platform/environment/common/environment.js';
|
|
7
|
-
import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
8
|
-
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
9
|
-
import { AbstractExtensionResourceLoaderService } from '../common/extensionResourceLoader.js';
|
|
10
|
-
let ExtensionResourceLoaderService = class ExtensionResourceLoaderService extends AbstractExtensionResourceLoaderService {
|
|
11
|
-
constructor(fileService, storageService, productService, environmentService, configurationService, _logService) {
|
|
12
|
-
super(fileService, storageService, productService, environmentService, configurationService);
|
|
13
|
-
this._logService = _logService;
|
|
14
|
-
}
|
|
15
|
-
async readExtensionResource(uri) {
|
|
16
|
-
uri = FileAccess.uriToBrowserUri(uri);
|
|
17
|
-
if (uri.scheme !== Schemas.http && uri.scheme !== Schemas.https && uri.scheme !== Schemas.data) {
|
|
18
|
-
const result = await this._fileService.readFile(uri);
|
|
19
|
-
return ( result.value.toString());
|
|
20
|
-
}
|
|
21
|
-
const requestInit = {};
|
|
22
|
-
if (this.isExtensionGalleryResource(uri)) {
|
|
23
|
-
requestInit.headers = await this.getExtensionGalleryRequestHeaders();
|
|
24
|
-
requestInit.mode = 'cors';
|
|
25
|
-
}
|
|
26
|
-
const response = await fetch(( uri.toString(true)), requestInit);
|
|
27
|
-
if (response.status !== 200) {
|
|
28
|
-
this._logService.info(`Request to '${( uri.toString(true))}' failed with status code ${response.status}`);
|
|
29
|
-
throw new Error(response.statusText);
|
|
30
|
-
}
|
|
31
|
-
return response.text();
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
ExtensionResourceLoaderService = ( __decorate([
|
|
35
|
-
( __param(0, IFileService)),
|
|
36
|
-
( __param(1, IStorageService)),
|
|
37
|
-
( __param(2, IProductService)),
|
|
38
|
-
( __param(3, IEnvironmentService)),
|
|
39
|
-
( __param(4, IConfigurationService)),
|
|
40
|
-
( __param(5, ILogService))
|
|
41
|
-
], ExtensionResourceLoaderService));
|
|
42
|
-
export { ExtensionResourceLoaderService };
|