@theia/vsx-registry 1.34.2 → 1.34.3

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.
Files changed (73) hide show
  1. package/LICENSE +641 -641
  2. package/README.md +36 -36
  3. package/lib/browser/recommended-extensions/preference-provider-overrides.d.ts +17 -17
  4. package/lib/browser/recommended-extensions/preference-provider-overrides.js +95 -95
  5. package/lib/browser/recommended-extensions/recommended-extensions-json-schema.d.ts +14 -14
  6. package/lib/browser/recommended-extensions/recommended-extensions-json-schema.js +94 -94
  7. package/lib/browser/recommended-extensions/recommended-extensions-preference-contribution.d.ts +11 -11
  8. package/lib/browser/recommended-extensions/recommended-extensions-preference-contribution.js +59 -59
  9. package/lib/browser/vsx-extension-commands.d.ts +13 -13
  10. package/lib/browser/vsx-extension-commands.js +63 -63
  11. package/lib/browser/vsx-extension-editor-manager.d.ts +9 -9
  12. package/lib/browser/vsx-extension-editor-manager.js +49 -49
  13. package/lib/browser/vsx-extension-editor.d.ts +21 -21
  14. package/lib/browser/vsx-extension-editor.js +109 -109
  15. package/lib/browser/vsx-extension.d.ts +141 -141
  16. package/lib/browser/vsx-extension.js +581 -581
  17. package/lib/browser/vsx-extensions-contribution.d.ts +54 -54
  18. package/lib/browser/vsx-extensions-contribution.js +328 -328
  19. package/lib/browser/vsx-extensions-model.d.ts +67 -67
  20. package/lib/browser/vsx-extensions-model.js +368 -368
  21. package/lib/browser/vsx-extensions-search-bar.d.ts +14 -14
  22. package/lib/browser/vsx-extensions-search-bar.js +75 -75
  23. package/lib/browser/vsx-extensions-search-model.d.ts +21 -21
  24. package/lib/browser/vsx-extensions-search-model.js +70 -70
  25. package/lib/browser/vsx-extensions-source.d.ts +19 -19
  26. package/lib/browser/vsx-extensions-source.js +102 -102
  27. package/lib/browser/vsx-extensions-view-container.d.ts +49 -49
  28. package/lib/browser/vsx-extensions-view-container.js +179 -179
  29. package/lib/browser/vsx-extensions-widget.d.ts +29 -29
  30. package/lib/browser/vsx-extensions-widget.js +143 -143
  31. package/lib/browser/vsx-language-quick-pick-service.d.ts +13 -13
  32. package/lib/browser/vsx-language-quick-pick-service.js +103 -103
  33. package/lib/browser/vsx-registry-frontend-module.d.ts +4 -4
  34. package/lib/browser/vsx-registry-frontend-module.js +101 -101
  35. package/lib/common/ovsx-client-provider.d.ts +6 -6
  36. package/lib/common/ovsx-client-provider.js +28 -28
  37. package/lib/common/vsx-environment.d.ts +7 -7
  38. package/lib/common/vsx-environment.js +20 -20
  39. package/lib/common/vsx-extension-uri.d.ts +3 -3
  40. package/lib/common/vsx-extension-uri.js +20 -20
  41. package/lib/node/vsx-environment-impl.d.ts +10 -10
  42. package/lib/node/vsx-environment-impl.js +53 -53
  43. package/lib/node/vsx-extension-resolver.d.ts +17 -17
  44. package/lib/node/vsx-extension-resolver.js +137 -137
  45. package/lib/node/vsx-registry-backend-module.d.ts +3 -3
  46. package/lib/node/vsx-registry-backend-module.js +35 -35
  47. package/lib/package.spec.js +25 -25
  48. package/package.json +10 -10
  49. package/src/browser/recommended-extensions/preference-provider-overrides.ts +99 -99
  50. package/src/browser/recommended-extensions/recommended-extensions-json-schema.ts +74 -74
  51. package/src/browser/recommended-extensions/recommended-extensions-preference-contribution.ts +68 -68
  52. package/src/browser/style/extensions.svg +4 -4
  53. package/src/browser/style/index.css +354 -354
  54. package/src/browser/vsx-extension-commands.ts +63 -63
  55. package/src/browser/vsx-extension-editor-manager.ts +42 -42
  56. package/src/browser/vsx-extension-editor.tsx +96 -96
  57. package/src/browser/vsx-extension.tsx +662 -662
  58. package/src/browser/vsx-extensions-contribution.ts +315 -315
  59. package/src/browser/vsx-extensions-model.ts +366 -366
  60. package/src/browser/vsx-extensions-search-bar.tsx +69 -69
  61. package/src/browser/vsx-extensions-search-model.ts +61 -61
  62. package/src/browser/vsx-extensions-source.ts +83 -83
  63. package/src/browser/vsx-extensions-view-container.ts +179 -179
  64. package/src/browser/vsx-extensions-widget.tsx +138 -138
  65. package/src/browser/vsx-language-quick-pick-service.ts +97 -97
  66. package/src/browser/vsx-registry-frontend-module.ts +113 -113
  67. package/src/common/ovsx-client-provider.ts +30 -30
  68. package/src/common/vsx-environment.ts +24 -24
  69. package/src/common/vsx-extension-uri.ts +20 -20
  70. package/src/node/vsx-environment-impl.ts +41 -41
  71. package/src/node/vsx-extension-resolver.ts +111 -111
  72. package/src/node/vsx-registry-backend-module.ts +37 -37
  73. package/src/package.spec.ts +29 -29
@@ -1,138 +1,138 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 TypeFox and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.VSXExtensionResolver = void 0;
28
- const path = require("path");
29
- const semver = require("semver");
30
- const fs = require("@theia/core/shared/fs-extra");
31
- const inversify_1 = require("@theia/core/shared/inversify");
32
- const uri_1 = require("@theia/core/lib/common/uri");
33
- const plugin_protocol_1 = require("@theia/plugin-ext/lib/common/plugin-protocol");
34
- const plugin_vscode_uri_1 = require("@theia/plugin-ext-vscode/lib/common/plugin-vscode-uri");
35
- const ovsx_client_provider_1 = require("../common/ovsx-client-provider");
36
- const request_1 = require("@theia/core/shared/@theia/request");
37
- const plugin_vscode_environment_1 = require("@theia/plugin-ext-vscode/lib/common/plugin-vscode-environment");
38
- const plugin_uninstallation_manager_1 = require("@theia/plugin-ext/lib/main/node/plugin-uninstallation-manager");
39
- let VSXExtensionResolver = class VSXExtensionResolver {
40
- accept(pluginId) {
41
- return !!plugin_vscode_uri_1.VSCodeExtensionUri.toId(new uri_1.default(pluginId));
42
- }
43
- async resolve(context, options) {
44
- const id = plugin_vscode_uri_1.VSCodeExtensionUri.toId(new uri_1.default(context.getOriginId()));
45
- if (!id) {
46
- return;
47
- }
48
- let extension;
49
- const client = await this.clientProvider();
50
- if (options) {
51
- console.log(`[${id}]: trying to resolve version ${options.version}...`);
52
- extension = await client.getExtension(id, { extensionVersion: options.version, includeAllVersions: true });
53
- }
54
- else {
55
- console.log(`[${id}]: trying to resolve latest version...`);
56
- extension = await client.getLatestCompatibleExtensionVersion(id);
57
- }
58
- if (!extension) {
59
- return;
60
- }
61
- if (extension.error) {
62
- throw new Error(extension.error);
63
- }
64
- const resolvedId = id + '-' + extension.version;
65
- const downloadUrl = extension.files.download;
66
- console.log(`[${id}]: resolved to '${resolvedId}'`);
67
- if (!(options === null || options === void 0 ? void 0 : options.ignoreOtherVersions)) {
68
- const existingVersion = this.hasSameOrNewerVersion(id, extension);
69
- if (existingVersion) {
70
- console.log(`[${id}]: is already installed with the same or newer version '${existingVersion}'`);
71
- return;
72
- }
73
- }
74
- const downloadPath = (await this.environment.getExtensionsDirUri()).path.fsPath();
75
- await fs.ensureDir(downloadPath);
76
- const extensionPath = path.resolve(downloadPath, path.basename(downloadUrl));
77
- console.log(`[${resolvedId}]: trying to download from "${downloadUrl}"...`, 'to path', downloadPath);
78
- if (!await this.download(downloadUrl, extensionPath)) {
79
- console.log(`[${resolvedId}]: not found`);
80
- return;
81
- }
82
- console.log(`[${resolvedId}]: downloaded to ${extensionPath}"`);
83
- context.addPlugin(resolvedId, extensionPath);
84
- }
85
- hasSameOrNewerVersion(id, extension) {
86
- const existingPlugins = this.pluginDeployerHandler.getDeployedPluginsById(id)
87
- .filter(plugin => !this.uninstallationManager.isUninstalled(plugin_protocol_1.PluginIdentifiers.componentsToVersionedId(plugin.metadata.model)));
88
- const sufficientVersion = existingPlugins.find(existingPlugin => {
89
- const existingVersion = semver.clean(existingPlugin.metadata.model.version);
90
- const desiredVersion = semver.clean(extension.version);
91
- if (desiredVersion && existingVersion && semver.gte(existingVersion, desiredVersion)) {
92
- return existingVersion;
93
- }
94
- });
95
- return sufficientVersion === null || sufficientVersion === void 0 ? void 0 : sufficientVersion.metadata.model.version;
96
- }
97
- async download(downloadUrl, downloadPath) {
98
- if (await fs.pathExists(downloadPath)) {
99
- return true;
100
- }
101
- const context = await this.requestService.request({ url: downloadUrl });
102
- if (context.res.statusCode === 404) {
103
- return false;
104
- }
105
- else if (context.res.statusCode !== 200) {
106
- throw new Error('Request returned status code: ' + context.res.statusCode);
107
- }
108
- else {
109
- await fs.writeFile(downloadPath, context.buffer);
110
- return true;
111
- }
112
- }
113
- };
114
- __decorate([
115
- (0, inversify_1.inject)(ovsx_client_provider_1.OVSXClientProvider),
116
- __metadata("design:type", Function)
117
- ], VSXExtensionResolver.prototype, "clientProvider", void 0);
118
- __decorate([
119
- (0, inversify_1.inject)(plugin_protocol_1.PluginDeployerHandler),
120
- __metadata("design:type", Object)
121
- ], VSXExtensionResolver.prototype, "pluginDeployerHandler", void 0);
122
- __decorate([
123
- (0, inversify_1.inject)(request_1.RequestService),
124
- __metadata("design:type", Object)
125
- ], VSXExtensionResolver.prototype, "requestService", void 0);
126
- __decorate([
127
- (0, inversify_1.inject)(plugin_vscode_environment_1.PluginVSCodeEnvironment),
128
- __metadata("design:type", plugin_vscode_environment_1.PluginVSCodeEnvironment)
129
- ], VSXExtensionResolver.prototype, "environment", void 0);
130
- __decorate([
131
- (0, inversify_1.inject)(plugin_uninstallation_manager_1.PluginUninstallationManager),
132
- __metadata("design:type", plugin_uninstallation_manager_1.PluginUninstallationManager)
133
- ], VSXExtensionResolver.prototype, "uninstallationManager", void 0);
134
- VSXExtensionResolver = __decorate([
135
- (0, inversify_1.injectable)()
136
- ], VSXExtensionResolver);
137
- exports.VSXExtensionResolver = VSXExtensionResolver;
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2020 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ var __metadata = (this && this.__metadata) || function (k, v) {
24
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.VSXExtensionResolver = void 0;
28
+ const path = require("path");
29
+ const semver = require("semver");
30
+ const fs = require("@theia/core/shared/fs-extra");
31
+ const inversify_1 = require("@theia/core/shared/inversify");
32
+ const uri_1 = require("@theia/core/lib/common/uri");
33
+ const plugin_protocol_1 = require("@theia/plugin-ext/lib/common/plugin-protocol");
34
+ const plugin_vscode_uri_1 = require("@theia/plugin-ext-vscode/lib/common/plugin-vscode-uri");
35
+ const ovsx_client_provider_1 = require("../common/ovsx-client-provider");
36
+ const request_1 = require("@theia/core/shared/@theia/request");
37
+ const plugin_vscode_environment_1 = require("@theia/plugin-ext-vscode/lib/common/plugin-vscode-environment");
38
+ const plugin_uninstallation_manager_1 = require("@theia/plugin-ext/lib/main/node/plugin-uninstallation-manager");
39
+ let VSXExtensionResolver = class VSXExtensionResolver {
40
+ accept(pluginId) {
41
+ return !!plugin_vscode_uri_1.VSCodeExtensionUri.toId(new uri_1.default(pluginId));
42
+ }
43
+ async resolve(context, options) {
44
+ const id = plugin_vscode_uri_1.VSCodeExtensionUri.toId(new uri_1.default(context.getOriginId()));
45
+ if (!id) {
46
+ return;
47
+ }
48
+ let extension;
49
+ const client = await this.clientProvider();
50
+ if (options) {
51
+ console.log(`[${id}]: trying to resolve version ${options.version}...`);
52
+ extension = await client.getExtension(id, { extensionVersion: options.version, includeAllVersions: true });
53
+ }
54
+ else {
55
+ console.log(`[${id}]: trying to resolve latest version...`);
56
+ extension = await client.getLatestCompatibleExtensionVersion(id);
57
+ }
58
+ if (!extension) {
59
+ return;
60
+ }
61
+ if (extension.error) {
62
+ throw new Error(extension.error);
63
+ }
64
+ const resolvedId = id + '-' + extension.version;
65
+ const downloadUrl = extension.files.download;
66
+ console.log(`[${id}]: resolved to '${resolvedId}'`);
67
+ if (!(options === null || options === void 0 ? void 0 : options.ignoreOtherVersions)) {
68
+ const existingVersion = this.hasSameOrNewerVersion(id, extension);
69
+ if (existingVersion) {
70
+ console.log(`[${id}]: is already installed with the same or newer version '${existingVersion}'`);
71
+ return;
72
+ }
73
+ }
74
+ const downloadPath = (await this.environment.getExtensionsDirUri()).path.fsPath();
75
+ await fs.ensureDir(downloadPath);
76
+ const extensionPath = path.resolve(downloadPath, path.basename(downloadUrl));
77
+ console.log(`[${resolvedId}]: trying to download from "${downloadUrl}"...`, 'to path', downloadPath);
78
+ if (!await this.download(downloadUrl, extensionPath)) {
79
+ console.log(`[${resolvedId}]: not found`);
80
+ return;
81
+ }
82
+ console.log(`[${resolvedId}]: downloaded to ${extensionPath}"`);
83
+ context.addPlugin(resolvedId, extensionPath);
84
+ }
85
+ hasSameOrNewerVersion(id, extension) {
86
+ const existingPlugins = this.pluginDeployerHandler.getDeployedPluginsById(id)
87
+ .filter(plugin => !this.uninstallationManager.isUninstalled(plugin_protocol_1.PluginIdentifiers.componentsToVersionedId(plugin.metadata.model)));
88
+ const sufficientVersion = existingPlugins.find(existingPlugin => {
89
+ const existingVersion = semver.clean(existingPlugin.metadata.model.version);
90
+ const desiredVersion = semver.clean(extension.version);
91
+ if (desiredVersion && existingVersion && semver.gte(existingVersion, desiredVersion)) {
92
+ return existingVersion;
93
+ }
94
+ });
95
+ return sufficientVersion === null || sufficientVersion === void 0 ? void 0 : sufficientVersion.metadata.model.version;
96
+ }
97
+ async download(downloadUrl, downloadPath) {
98
+ if (await fs.pathExists(downloadPath)) {
99
+ return true;
100
+ }
101
+ const context = await this.requestService.request({ url: downloadUrl });
102
+ if (context.res.statusCode === 404) {
103
+ return false;
104
+ }
105
+ else if (context.res.statusCode !== 200) {
106
+ throw new Error('Request returned status code: ' + context.res.statusCode);
107
+ }
108
+ else {
109
+ await fs.writeFile(downloadPath, context.buffer);
110
+ return true;
111
+ }
112
+ }
113
+ };
114
+ __decorate([
115
+ (0, inversify_1.inject)(ovsx_client_provider_1.OVSXClientProvider),
116
+ __metadata("design:type", Function)
117
+ ], VSXExtensionResolver.prototype, "clientProvider", void 0);
118
+ __decorate([
119
+ (0, inversify_1.inject)(plugin_protocol_1.PluginDeployerHandler),
120
+ __metadata("design:type", Object)
121
+ ], VSXExtensionResolver.prototype, "pluginDeployerHandler", void 0);
122
+ __decorate([
123
+ (0, inversify_1.inject)(request_1.RequestService),
124
+ __metadata("design:type", Object)
125
+ ], VSXExtensionResolver.prototype, "requestService", void 0);
126
+ __decorate([
127
+ (0, inversify_1.inject)(plugin_vscode_environment_1.PluginVSCodeEnvironment),
128
+ __metadata("design:type", plugin_vscode_environment_1.PluginVSCodeEnvironment)
129
+ ], VSXExtensionResolver.prototype, "environment", void 0);
130
+ __decorate([
131
+ (0, inversify_1.inject)(plugin_uninstallation_manager_1.PluginUninstallationManager),
132
+ __metadata("design:type", plugin_uninstallation_manager_1.PluginUninstallationManager)
133
+ ], VSXExtensionResolver.prototype, "uninstallationManager", void 0);
134
+ VSXExtensionResolver = __decorate([
135
+ (0, inversify_1.injectable)()
136
+ ], VSXExtensionResolver);
137
+ exports.VSXExtensionResolver = VSXExtensionResolver;
138
138
  //# sourceMappingURL=vsx-extension-resolver.js.map
@@ -1,4 +1,4 @@
1
- import { ContainerModule } from '@theia/core/shared/inversify';
2
- declare const _default: ContainerModule;
3
- export default _default;
1
+ import { ContainerModule } from '@theia/core/shared/inversify';
2
+ declare const _default: ContainerModule;
3
+ export default _default;
4
4
  //# sourceMappingURL=vsx-registry-backend-module.d.ts.map
@@ -1,36 +1,36 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 TypeFox and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const inversify_1 = require("@theia/core/shared/inversify");
19
- const vsx_extension_resolver_1 = require("./vsx-extension-resolver");
20
- const plugin_protocol_1 = require("@theia/plugin-ext/lib/common/plugin-protocol");
21
- const ovsx_client_provider_1 = require("../common/ovsx-client-provider");
22
- const vsx_environment_1 = require("../common/vsx-environment");
23
- const vsx_environment_impl_1 = require("./vsx-environment-impl");
24
- const core_1 = require("@theia/core");
25
- const request_1 = require("@theia/core/shared/@theia/request");
26
- exports.default = new inversify_1.ContainerModule(bind => {
27
- bind(ovsx_client_provider_1.OVSXClientProvider).toDynamicValue(ctx => {
28
- const clientPromise = (0, ovsx_client_provider_1.createOVSXClient)(ctx.container.get(vsx_environment_1.VSXEnvironment), ctx.container.get(request_1.RequestService));
29
- return () => clientPromise;
30
- }).inSingletonScope();
31
- bind(vsx_environment_1.VSXEnvironment).to(vsx_environment_impl_1.VSXEnvironmentImpl).inSingletonScope();
32
- bind(core_1.ConnectionHandler).toDynamicValue(ctx => new core_1.JsonRpcConnectionHandler(vsx_environment_1.VSX_ENVIRONMENT_PATH, () => ctx.container.get(vsx_environment_1.VSXEnvironment))).inSingletonScope();
33
- bind(vsx_extension_resolver_1.VSXExtensionResolver).toSelf().inSingletonScope();
34
- bind(plugin_protocol_1.PluginDeployerResolver).toService(vsx_extension_resolver_1.VSXExtensionResolver);
35
- });
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2020 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const inversify_1 = require("@theia/core/shared/inversify");
19
+ const vsx_extension_resolver_1 = require("./vsx-extension-resolver");
20
+ const plugin_protocol_1 = require("@theia/plugin-ext/lib/common/plugin-protocol");
21
+ const ovsx_client_provider_1 = require("../common/ovsx-client-provider");
22
+ const vsx_environment_1 = require("../common/vsx-environment");
23
+ const vsx_environment_impl_1 = require("./vsx-environment-impl");
24
+ const core_1 = require("@theia/core");
25
+ const request_1 = require("@theia/core/shared/@theia/request");
26
+ exports.default = new inversify_1.ContainerModule(bind => {
27
+ bind(ovsx_client_provider_1.OVSXClientProvider).toDynamicValue(ctx => {
28
+ const clientPromise = (0, ovsx_client_provider_1.createOVSXClient)(ctx.container.get(vsx_environment_1.VSXEnvironment), ctx.container.get(request_1.RequestService));
29
+ return () => clientPromise;
30
+ }).inSingletonScope();
31
+ bind(vsx_environment_1.VSXEnvironment).to(vsx_environment_impl_1.VSXEnvironmentImpl).inSingletonScope();
32
+ bind(core_1.ConnectionHandler).toDynamicValue(ctx => new core_1.JsonRpcConnectionHandler(vsx_environment_1.VSX_ENVIRONMENT_PATH, () => ctx.container.get(vsx_environment_1.VSXEnvironment))).inSingletonScope();
33
+ bind(vsx_extension_resolver_1.VSXExtensionResolver).toSelf().inSingletonScope();
34
+ bind(plugin_protocol_1.PluginDeployerResolver).toService(vsx_extension_resolver_1.VSXExtensionResolver);
35
+ });
36
36
  //# sourceMappingURL=vsx-registry-backend-module.js.map
@@ -1,26 +1,26 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2020 TypeFox and others.
3
- //
4
- // This program and the accompanying materials are made available under the
5
- // terms of the Eclipse Public License v. 2.0 which is available at
6
- // http://www.eclipse.org/legal/epl-2.0.
7
- //
8
- // This Source Code may also be made available under the following Secondary
9
- // Licenses when the conditions for such availability set forth in the Eclipse
10
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- // with the GNU Classpath Exception which is available at
12
- // https://www.gnu.org/software/classpath/license.html.
13
- //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- // *****************************************************************************
16
- /* note: this bogus test file is required so that
17
- we are able to run mocha unit tests on this
18
- package, without having any actual unit tests in it.
19
- This way a coverage report will be generated,
20
- showing 0% coverage, instead of no report.
21
- This file can be removed once we have real unit
22
- tests in place. */
23
- describe('vsx-registry package', () => {
24
- it('support code coverage statistics', () => true);
25
- });
1
+ // *****************************************************************************
2
+ // Copyright (C) 2020 TypeFox and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+ /* note: this bogus test file is required so that
17
+ we are able to run mocha unit tests on this
18
+ package, without having any actual unit tests in it.
19
+ This way a coverage report will be generated,
20
+ showing 0% coverage, instead of no report.
21
+ This file can be removed once we have real unit
22
+ tests in place. */
23
+ describe('vsx-registry package', () => {
24
+ it('support code coverage statistics', () => true);
25
+ });
26
26
  //# sourceMappingURL=package.spec.js.map
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@theia/vsx-registry",
3
- "version": "1.34.2",
3
+ "version": "1.34.3",
4
4
  "description": "Theia - VSX Registry",
5
5
  "dependencies": {
6
- "@theia/core": "1.34.2",
7
- "@theia/filesystem": "1.34.2",
8
- "@theia/ovsx-client": "1.34.2",
9
- "@theia/plugin-ext": "1.34.2",
10
- "@theia/plugin-ext-vscode": "1.34.2",
11
- "@theia/preferences": "1.34.2",
12
- "@theia/workspace": "1.34.2",
6
+ "@theia/core": "1.34.3",
7
+ "@theia/filesystem": "1.34.3",
8
+ "@theia/ovsx-client": "1.34.3",
9
+ "@theia/plugin-ext": "1.34.3",
10
+ "@theia/plugin-ext-vscode": "1.34.3",
11
+ "@theia/preferences": "1.34.3",
12
+ "@theia/workspace": "1.34.3",
13
13
  "luxon": "^2.4.0",
14
14
  "p-debounce": "^2.1.0",
15
15
  "semver": "^5.4.1",
@@ -49,11 +49,11 @@
49
49
  "watch": "theiaext watch"
50
50
  },
51
51
  "devDependencies": {
52
- "@theia/ext-scripts": "1.34.2",
52
+ "@theia/ext-scripts": "1.34.3",
53
53
  "@types/luxon": "^2.3.2"
54
54
  },
55
55
  "nyc": {
56
56
  "extends": "../../configs/nyc.json"
57
57
  },
58
- "gitHead": "dba940bd8c0f9f4b324dad0e90d570d499456f60"
58
+ "gitHead": "a6cf9fe96b1624d6e27a11dce2ebdeae820478e5"
59
59
  }