@theia/vsx-registry 1.67.0-next.56 → 1.67.0-next.86

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 (121) hide show
  1. package/lib/browser/recommended-extensions/preference-provider-overrides.d.ts +19 -0
  2. package/lib/browser/recommended-extensions/preference-provider-overrides.d.ts.map +1 -0
  3. package/lib/browser/recommended-extensions/preference-provider-overrides.js +92 -0
  4. package/lib/browser/recommended-extensions/preference-provider-overrides.js.map +1 -0
  5. package/lib/browser/recommended-extensions/recommended-extensions-json-schema.d.ts +13 -0
  6. package/lib/browser/recommended-extensions/recommended-extensions-json-schema.d.ts.map +1 -0
  7. package/lib/browser/recommended-extensions/recommended-extensions-json-schema.js +87 -0
  8. package/lib/browser/recommended-extensions/recommended-extensions-json-schema.js.map +1 -0
  9. package/lib/browser/vsx-extension-argument-processor.d.ts +5 -0
  10. package/lib/browser/vsx-extension-argument-processor.d.ts.map +1 -0
  11. package/lib/browser/vsx-extension-argument-processor.js +34 -0
  12. package/lib/browser/vsx-extension-argument-processor.js.map +1 -0
  13. package/lib/browser/vsx-extension-commands.d.ts +17 -0
  14. package/lib/browser/vsx-extension-commands.d.ts.map +1 -0
  15. package/lib/browser/vsx-extension-commands.js +75 -0
  16. package/lib/browser/vsx-extension-commands.js.map +1 -0
  17. package/lib/browser/vsx-extension-editor-manager.d.ts +11 -0
  18. package/lib/browser/vsx-extension-editor-manager.d.ts.map +1 -0
  19. package/lib/browser/vsx-extension-editor-manager.js +45 -0
  20. package/lib/browser/vsx-extension-editor-manager.js.map +1 -0
  21. package/lib/browser/vsx-extension-editor.d.ts +22 -0
  22. package/lib/browser/vsx-extension-editor.d.ts.map +1 -0
  23. package/lib/browser/vsx-extension-editor.js +102 -0
  24. package/lib/browser/vsx-extension-editor.js.map +1 -0
  25. package/lib/browser/vsx-extension.d.ts +162 -0
  26. package/lib/browser/vsx-extension.d.ts.map +1 -0
  27. package/lib/browser/vsx-extension.js +647 -0
  28. package/lib/browser/vsx-extension.js.map +1 -0
  29. package/lib/browser/vsx-extensions-contribution.d.ts +74 -0
  30. package/lib/browser/vsx-extensions-contribution.d.ts.map +1 -0
  31. package/lib/browser/vsx-extensions-contribution.js +405 -0
  32. package/lib/browser/vsx-extensions-contribution.js.map +1 -0
  33. package/lib/browser/vsx-extensions-model.d.ts +100 -0
  34. package/lib/browser/vsx-extensions-model.d.ts.map +1 -0
  35. package/lib/browser/vsx-extensions-model.js +522 -0
  36. package/lib/browser/vsx-extensions-model.js.map +1 -0
  37. package/lib/browser/vsx-extensions-preferences.d.ts +12 -0
  38. package/lib/browser/vsx-extensions-preferences.d.ts.map +1 -0
  39. package/lib/browser/vsx-extensions-preferences.js +46 -0
  40. package/lib/browser/vsx-extensions-preferences.js.map +1 -0
  41. package/lib/browser/vsx-extensions-search-bar.d.ts +23 -0
  42. package/lib/browser/vsx-extensions-search-bar.d.ts.map +1 -0
  43. package/lib/browser/vsx-extensions-search-bar.js +99 -0
  44. package/lib/browser/vsx-extensions-search-bar.js.map +1 -0
  45. package/lib/browser/vsx-extensions-search-model.d.ts +22 -0
  46. package/lib/browser/vsx-extensions-search-model.d.ts.map +1 -0
  47. package/lib/browser/vsx-extensions-search-model.js +66 -0
  48. package/lib/browser/vsx-extensions-search-model.js.map +1 -0
  49. package/lib/browser/vsx-extensions-source.d.ts +21 -0
  50. package/lib/browser/vsx-extensions-source.d.ts.map +1 -0
  51. package/lib/browser/vsx-extensions-source.js +102 -0
  52. package/lib/browser/vsx-extensions-source.js.map +1 -0
  53. package/lib/browser/vsx-extensions-view-container.d.ts +50 -0
  54. package/lib/browser/vsx-extensions-view-container.d.ts.map +1 -0
  55. package/lib/browser/vsx-extensions-view-container.js +185 -0
  56. package/lib/browser/vsx-extensions-view-container.js.map +1 -0
  57. package/lib/browser/vsx-extensions-widget.d.ts +36 -0
  58. package/lib/browser/vsx-extensions-widget.d.ts.map +1 -0
  59. package/lib/browser/vsx-extensions-widget.js +157 -0
  60. package/lib/browser/vsx-extensions-widget.js.map +1 -0
  61. package/lib/browser/vsx-language-quick-pick-service.d.ts +16 -0
  62. package/lib/browser/vsx-language-quick-pick-service.d.ts.map +1 -0
  63. package/lib/browser/vsx-language-quick-pick-service.js +117 -0
  64. package/lib/browser/vsx-language-quick-pick-service.js.map +1 -0
  65. package/lib/browser/vsx-registry-frontend-module.d.ts +5 -0
  66. package/lib/browser/vsx-registry-frontend-module.d.ts.map +1 -0
  67. package/lib/browser/vsx-registry-frontend-module.js +109 -0
  68. package/lib/browser/vsx-registry-frontend-module.js.map +1 -0
  69. package/lib/common/index.d.ts +4 -0
  70. package/lib/common/index.d.ts.map +1 -0
  71. package/lib/common/index.js +26 -0
  72. package/lib/common/index.js.map +1 -0
  73. package/lib/common/ovsx-client-provider.d.ts +14 -0
  74. package/lib/common/ovsx-client-provider.d.ts.map +1 -0
  75. package/lib/common/ovsx-client-provider.js +30 -0
  76. package/lib/common/ovsx-client-provider.js.map +1 -0
  77. package/lib/common/recommended-extensions-preference-contribution.d.ts +13 -0
  78. package/lib/common/recommended-extensions-preference-contribution.d.ts.map +1 -0
  79. package/lib/common/recommended-extensions-preference-contribution.js +53 -0
  80. package/lib/common/recommended-extensions-preference-contribution.js.map +1 -0
  81. package/lib/common/vsx-environment.d.ts +11 -0
  82. package/lib/common/vsx-environment.d.ts.map +1 -0
  83. package/lib/common/vsx-environment.js +21 -0
  84. package/lib/common/vsx-environment.js.map +1 -0
  85. package/lib/common/vsx-extension-uri.d.ts +4 -0
  86. package/lib/common/vsx-extension-uri.d.ts.map +1 -0
  87. package/lib/common/vsx-extension-uri.js +21 -0
  88. package/lib/common/vsx-extension-uri.js.map +1 -0
  89. package/lib/common/vsx-registry-common-module.d.ts +4 -0
  90. package/lib/common/vsx-registry-common-module.d.ts.map +1 -0
  91. package/lib/common/vsx-registry-common-module.js +77 -0
  92. package/lib/common/vsx-registry-common-module.js.map +1 -0
  93. package/lib/node/vsx-cli-deployer-participant.d.ts +7 -0
  94. package/lib/node/vsx-cli-deployer-participant.d.ts.map +1 -0
  95. package/lib/node/vsx-cli-deployer-participant.js +52 -0
  96. package/lib/node/vsx-cli-deployer-participant.js.map +1 -0
  97. package/lib/node/vsx-cli.d.ts +12 -0
  98. package/lib/node/vsx-cli.d.ts.map +1 -0
  99. package/lib/node/vsx-cli.js +56 -0
  100. package/lib/node/vsx-cli.js.map +1 -0
  101. package/lib/node/vsx-environment-impl.d.ts +16 -0
  102. package/lib/node/vsx-environment-impl.d.ts.map +1 -0
  103. package/lib/node/vsx-environment-impl.js +57 -0
  104. package/lib/node/vsx-environment-impl.js.map +1 -0
  105. package/lib/node/vsx-extension-resolver.d.ts +22 -0
  106. package/lib/node/vsx-extension-resolver.d.ts.map +1 -0
  107. package/lib/node/vsx-extension-resolver.js +156 -0
  108. package/lib/node/vsx-extension-resolver.js.map +1 -0
  109. package/lib/node/vsx-registry-backend-module.d.ts +4 -0
  110. package/lib/node/vsx-registry-backend-module.d.ts.map +1 -0
  111. package/lib/node/vsx-registry-backend-module.js +41 -0
  112. package/lib/node/vsx-registry-backend-module.js.map +1 -0
  113. package/lib/node/vsx-remote-cli.d.ts +7 -0
  114. package/lib/node/vsx-remote-cli.d.ts.map +1 -0
  115. package/lib/node/vsx-remote-cli.js +40 -0
  116. package/lib/node/vsx-remote-cli.js.map +1 -0
  117. package/lib/package.spec.d.ts +1 -0
  118. package/lib/package.spec.d.ts.map +1 -0
  119. package/lib/package.spec.js +26 -0
  120. package/lib/package.spec.js.map +1 -0
  121. package/package.json +10 -10
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vsx-cli.js","sourceRoot":"","sources":["../../src/node/vsx-cli.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAA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Aa,CAAC;QACzC,IAAI,CAAC,aAAa,GAAG,OAAO,aAAa,KAAK,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,6BAAe,CAAC;IAC7F,CAAC;CACJ,CAAA;AA/BY,wBAAM;iBAAN,MAAM;IADlB,IAAA,sBAAU,GAAE;GACA,MAAM,CA+BlB"}
@@ -0,0 +1,16 @@
1
+ import URI from '@theia/core/lib/common/uri';
2
+ import { OVSXRouterConfig } from '@theia/ovsx-client';
3
+ import { PluginVsCodeCliContribution } from '@theia/plugin-ext-vscode/lib/node/plugin-vscode-cli-contribution';
4
+ import { VSXEnvironment } from '../common/vsx-environment';
5
+ import { VsxCli } from './vsx-cli';
6
+ export declare class VSXEnvironmentImpl implements VSXEnvironment {
7
+ protected _registryUri: URI;
8
+ protected readonly pluginVscodeCli: PluginVsCodeCliContribution;
9
+ protected vsxCli: VsxCli;
10
+ getRateLimit(): Promise<number>;
11
+ getRegistryUri(): Promise<string>;
12
+ getRegistryApiUri(): Promise<string>;
13
+ getVscodeApiVersion(): Promise<string>;
14
+ getOvsxRouterConfig(): Promise<OVSXRouterConfig | undefined>;
15
+ }
16
+ //# sourceMappingURL=vsx-environment-impl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vsx-environment-impl.d.ts","sourceRoot":"","sources":["../../src/node/vsx-environment-impl.ts"],"names":[],"mappings":"AAgBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAE7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kEAAkE,CAAC;AAC/G,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,qBACa,kBAAmB,YAAW,cAAc;IAErD,SAAS,CAAC,YAAY,MAA8E;IAGpG,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,2BAA2B,CAAC;IAGhE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IAEnB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAI/B,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IAIjC,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC;IAIpC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC;IAItC,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;CAGrE"}
@@ -0,0 +1,57 @@
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-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.VSXEnvironmentImpl = void 0;
19
+ const tslib_1 = require("tslib");
20
+ const uri_1 = require("@theia/core/lib/common/uri");
21
+ const inversify_1 = require("@theia/core/shared/inversify");
22
+ const plugin_vscode_cli_contribution_1 = require("@theia/plugin-ext-vscode/lib/node/plugin-vscode-cli-contribution");
23
+ const vsx_cli_1 = require("./vsx-cli");
24
+ let VSXEnvironmentImpl = class VSXEnvironmentImpl {
25
+ constructor() {
26
+ var _a;
27
+ this._registryUri = new uri_1.default(((_a = process.env['VSX_REGISTRY_URL']) === null || _a === void 0 ? void 0 : _a.trim()) || 'https://open-vsx.org');
28
+ }
29
+ async getRateLimit() {
30
+ return this.vsxCli.ovsxRateLimit;
31
+ }
32
+ async getRegistryUri() {
33
+ return this._registryUri.toString(true);
34
+ }
35
+ async getRegistryApiUri() {
36
+ return this._registryUri.resolve('api').toString(true);
37
+ }
38
+ async getVscodeApiVersion() {
39
+ return this.pluginVscodeCli.vsCodeApiVersionPromise;
40
+ }
41
+ async getOvsxRouterConfig() {
42
+ return this.vsxCli.ovsxRouterConfig;
43
+ }
44
+ };
45
+ exports.VSXEnvironmentImpl = VSXEnvironmentImpl;
46
+ tslib_1.__decorate([
47
+ (0, inversify_1.inject)(plugin_vscode_cli_contribution_1.PluginVsCodeCliContribution),
48
+ tslib_1.__metadata("design:type", plugin_vscode_cli_contribution_1.PluginVsCodeCliContribution)
49
+ ], VSXEnvironmentImpl.prototype, "pluginVscodeCli", void 0);
50
+ tslib_1.__decorate([
51
+ (0, inversify_1.inject)(vsx_cli_1.VsxCli),
52
+ tslib_1.__metadata("design:type", vsx_cli_1.VsxCli)
53
+ ], VSXEnvironmentImpl.prototype, "vsxCli", void 0);
54
+ exports.VSXEnvironmentImpl = VSXEnvironmentImpl = tslib_1.__decorate([
55
+ (0, inversify_1.injectable)()
56
+ ], VSXEnvironmentImpl);
57
+ //# sourceMappingURL=vsx-environment-impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vsx-environment-impl.js","sourceRoot":"","sources":["../../src/node/vsx-environment-impl.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,oDAA6C;AAC7C,4DAAkE;AAElE,qHAA+G;AAE/G,uCAAmC;AAG5B,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAAxB;;QAEO,iBAAY,GAAG,IAAI,aAAG,CAAC,CAAA,MAAA,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,0CAAE,IAAI,EAAE,KAAI,sBAAsB,CAAC,CAAC;IA2BxG,CAAC;IAnBG,KAAK,CAAC,YAAY;QACd,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,cAAc;QAChB,OAAO,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,iBAAiB;QACnB,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,mBAAmB;QACrB,OAAO,IAAI,CAAC,eAAe,CAAC,uBAAuB,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,mBAAmB;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC;IACxC,CAAC;CACJ,CAAA;AA7BY,gDAAkB;AAKR;IADlB,IAAA,kBAAM,EAAC,4DAA2B,CAAC;sCACA,4DAA2B;2DAAC;AAGtD;IADT,IAAA,kBAAM,EAAC,gBAAM,CAAC;sCACG,gBAAM;kDAAC;6BARhB,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CA6B9B"}
@@ -0,0 +1,22 @@
1
+ import { PluginDeployerHandler, PluginDeployerResolver, PluginDeployerResolverContext, PluginDeployOptions } from '@theia/plugin-ext/lib/common/plugin-protocol';
2
+ import { OVSXClientProvider } from '../common/ovsx-client-provider';
3
+ import { OVSXApiFilterProvider, VSXExtensionRaw, VSXTargetPlatform } from '@theia/ovsx-client';
4
+ import { RequestService } from '@theia/core/shared/@theia/request';
5
+ import { PluginVSCodeEnvironment } from '@theia/plugin-ext-vscode/lib/common/plugin-vscode-environment';
6
+ import { PluginUninstallationManager } from '@theia/plugin-ext/lib/main/node/plugin-uninstallation-manager';
7
+ export declare class VSXExtensionResolver implements PluginDeployerResolver {
8
+ protected clientProvider: OVSXClientProvider;
9
+ protected pluginDeployerHandler: PluginDeployerHandler;
10
+ protected requestService: RequestService;
11
+ protected readonly environment: PluginVSCodeEnvironment;
12
+ protected readonly uninstallationManager: PluginUninstallationManager;
13
+ protected vsxApiFilter: OVSXApiFilterProvider;
14
+ accept(pluginId: string): boolean;
15
+ static readonly TEMP_DIR_PREFIX = "vscode-download";
16
+ static readonly TARGET_PLATFORM: VSXTargetPlatform;
17
+ resolve(context: PluginDeployerResolverContext, options?: PluginDeployOptions): Promise<void>;
18
+ protected getTempDir(): Promise<string>;
19
+ protected hasSameOrNewerVersion(id: string, extension: VSXExtensionRaw): string | undefined;
20
+ protected download(downloadUrl: string, downloadPath: string): Promise<boolean>;
21
+ }
22
+ //# sourceMappingURL=vsx-extension-resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vsx-extension-resolver.d.ts","sourceRoot":"","sources":["../../src/node/vsx-extension-resolver.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,mBAAmB,EAAqB,MAAM,8CAA8C,CAAC;AAGpL,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+DAA+D,CAAC;AACxG,OAAO,EAAE,2BAA2B,EAAE,MAAM,+DAA+D,CAAC;AAE5G,qBACa,oBAAqB,YAAW,sBAAsB;IAEnC,SAAS,CAAC,cAAc,EAAE,kBAAkB,CAAC;IAC1C,SAAS,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;IAC9D,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAChC,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,uBAAuB,CAAC;IACpD,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,2BAA2B,CAAC;IAC5E,SAAS,CAAC,YAAY,EAAE,qBAAqB,CAAC;IAE7E,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIjC,MAAM,CAAC,QAAQ,CAAC,eAAe,qBAAqB;IACpD,MAAM,CAAC,QAAQ,CAAC,eAAe,oBAA8D;IAEvF,OAAO,CAAC,OAAO,EAAE,6BAA6B,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;cAqDnF,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;IAQ7C,SAAS,CAAC,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS;cAa3E,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAYxF"}
@@ -0,0 +1,156 @@
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-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ var VSXExtensionResolver_1;
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.VSXExtensionResolver = void 0;
20
+ const tslib_1 = require("tslib");
21
+ const path = require("path");
22
+ const semver = require("semver");
23
+ const fs = require("@theia/core/shared/fs-extra");
24
+ const inversify_1 = require("@theia/core/shared/inversify");
25
+ const uri_1 = require("@theia/core/lib/common/uri");
26
+ const plugin_protocol_1 = require("@theia/plugin-ext/lib/common/plugin-protocol");
27
+ const node_1 = require("@theia/core/lib/node");
28
+ const plugin_vscode_uri_1 = require("@theia/plugin-ext-vscode/lib/common/plugin-vscode-uri");
29
+ const ovsx_client_provider_1 = require("../common/ovsx-client-provider");
30
+ const ovsx_client_1 = require("@theia/ovsx-client");
31
+ const request_1 = require("@theia/core/shared/@theia/request");
32
+ const plugin_vscode_environment_1 = require("@theia/plugin-ext-vscode/lib/common/plugin-vscode-environment");
33
+ const plugin_uninstallation_manager_1 = require("@theia/plugin-ext/lib/main/node/plugin-uninstallation-manager");
34
+ let VSXExtensionResolver = VSXExtensionResolver_1 = class VSXExtensionResolver {
35
+ accept(pluginId) {
36
+ return !!plugin_vscode_uri_1.VSCodeExtensionUri.toId(new uri_1.default(pluginId));
37
+ }
38
+ async resolve(context, options) {
39
+ const id = plugin_vscode_uri_1.VSCodeExtensionUri.toId(new uri_1.default(context.getOriginId()));
40
+ if (!id) {
41
+ return;
42
+ }
43
+ let extension;
44
+ const filter = await this.vsxApiFilter();
45
+ const version = (options === null || options === void 0 ? void 0 : options.version) || id.version;
46
+ if (version) {
47
+ console.log(`[${id.id}]: trying to resolve version ${version}...`);
48
+ extension = await filter.findLatestCompatibleExtension({
49
+ extensionId: id.id,
50
+ extensionVersion: version,
51
+ includeAllVersions: true,
52
+ targetPlatform: VSXExtensionResolver_1.TARGET_PLATFORM
53
+ });
54
+ }
55
+ else {
56
+ console.log(`[${id.id}]: trying to resolve latest version...`);
57
+ extension = await filter.findLatestCompatibleExtension({
58
+ extensionId: id.id,
59
+ includeAllVersions: true,
60
+ targetPlatform: VSXExtensionResolver_1.TARGET_PLATFORM
61
+ });
62
+ }
63
+ if (!extension) {
64
+ return;
65
+ }
66
+ if (extension.error) {
67
+ throw new Error(extension.error);
68
+ }
69
+ const resolvedId = id.id + '-' + extension.version;
70
+ const downloadUrl = extension.files.download;
71
+ console.log(`[${id.id}]: resolved to '${resolvedId}'`);
72
+ if (!(options === null || options === void 0 ? void 0 : options.ignoreOtherVersions)) {
73
+ const existingVersion = this.hasSameOrNewerVersion(id.id, extension);
74
+ if (existingVersion) {
75
+ console.log(`[${id.id}]: is already installed with the same or newer version '${existingVersion}'`);
76
+ return;
77
+ }
78
+ }
79
+ const downloadDir = await this.getTempDir();
80
+ await fs.ensureDir(downloadDir);
81
+ const downloadedExtensionPath = path.resolve(downloadDir, path.basename(downloadUrl));
82
+ console.log(`[${resolvedId}]: trying to download from "${downloadUrl}"...`, 'to path', downloadDir);
83
+ if (!await this.download(downloadUrl, downloadedExtensionPath)) {
84
+ console.log(`[${resolvedId}]: not found`);
85
+ return;
86
+ }
87
+ console.log(`[${resolvedId}]: downloaded to ${downloadedExtensionPath}"`);
88
+ context.addPlugin(resolvedId, downloadedExtensionPath);
89
+ }
90
+ async getTempDir() {
91
+ const tempDir = node_1.FileUri.fsPath(await this.environment.getTempDirUri(VSXExtensionResolver_1.TEMP_DIR_PREFIX));
92
+ if (!await fs.pathExists(tempDir)) {
93
+ await fs.mkdirs(tempDir);
94
+ }
95
+ return tempDir;
96
+ }
97
+ hasSameOrNewerVersion(id, extension) {
98
+ const existingPlugins = this.pluginDeployerHandler.getDeployedPluginsById(id)
99
+ .filter(plugin => !this.uninstallationManager.isUninstalled(plugin_protocol_1.PluginIdentifiers.componentsToVersionedId(plugin.metadata.model)));
100
+ const sufficientVersion = existingPlugins.find(existingPlugin => {
101
+ const existingVersion = semver.clean(existingPlugin.metadata.model.version);
102
+ const desiredVersion = semver.clean(extension.version);
103
+ if (desiredVersion && existingVersion && semver.gte(existingVersion, desiredVersion)) {
104
+ return existingVersion;
105
+ }
106
+ });
107
+ return sufficientVersion === null || sufficientVersion === void 0 ? void 0 : sufficientVersion.metadata.model.version;
108
+ }
109
+ async download(downloadUrl, downloadPath) {
110
+ if (await fs.pathExists(downloadPath)) {
111
+ return true;
112
+ }
113
+ const context = await this.requestService.request({ url: downloadUrl });
114
+ if (context.res.statusCode === 404) {
115
+ return false;
116
+ }
117
+ else if (context.res.statusCode !== 200) {
118
+ throw new Error('Request returned status code: ' + context.res.statusCode);
119
+ }
120
+ else {
121
+ await fs.writeFile(downloadPath, context.buffer);
122
+ return true;
123
+ }
124
+ }
125
+ };
126
+ exports.VSXExtensionResolver = VSXExtensionResolver;
127
+ VSXExtensionResolver.TEMP_DIR_PREFIX = 'vscode-download';
128
+ VSXExtensionResolver.TARGET_PLATFORM = `${process.platform}-${process.arch}`;
129
+ tslib_1.__decorate([
130
+ (0, inversify_1.inject)(ovsx_client_provider_1.OVSXClientProvider),
131
+ tslib_1.__metadata("design:type", Function)
132
+ ], VSXExtensionResolver.prototype, "clientProvider", void 0);
133
+ tslib_1.__decorate([
134
+ (0, inversify_1.inject)(plugin_protocol_1.PluginDeployerHandler),
135
+ tslib_1.__metadata("design:type", Object)
136
+ ], VSXExtensionResolver.prototype, "pluginDeployerHandler", void 0);
137
+ tslib_1.__decorate([
138
+ (0, inversify_1.inject)(request_1.RequestService),
139
+ tslib_1.__metadata("design:type", Object)
140
+ ], VSXExtensionResolver.prototype, "requestService", void 0);
141
+ tslib_1.__decorate([
142
+ (0, inversify_1.inject)(plugin_vscode_environment_1.PluginVSCodeEnvironment),
143
+ tslib_1.__metadata("design:type", plugin_vscode_environment_1.PluginVSCodeEnvironment)
144
+ ], VSXExtensionResolver.prototype, "environment", void 0);
145
+ tslib_1.__decorate([
146
+ (0, inversify_1.inject)(plugin_uninstallation_manager_1.PluginUninstallationManager),
147
+ tslib_1.__metadata("design:type", plugin_uninstallation_manager_1.PluginUninstallationManager)
148
+ ], VSXExtensionResolver.prototype, "uninstallationManager", void 0);
149
+ tslib_1.__decorate([
150
+ (0, inversify_1.inject)(ovsx_client_1.OVSXApiFilterProvider),
151
+ tslib_1.__metadata("design:type", Function)
152
+ ], VSXExtensionResolver.prototype, "vsxApiFilter", void 0);
153
+ exports.VSXExtensionResolver = VSXExtensionResolver = VSXExtensionResolver_1 = tslib_1.__decorate([
154
+ (0, inversify_1.injectable)()
155
+ ], VSXExtensionResolver);
156
+ //# sourceMappingURL=vsx-extension-resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vsx-extension-resolver.js","sourceRoot":"","sources":["../../src/node/vsx-extension-resolver.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;AAEhF,6BAA6B;AAC7B,iCAAiC;AACjC,kDAAkD;AAClD,4DAAkE;AAClE,oDAA6C;AAC7C,kFAAoL;AACpL,+CAA+C;AAC/C,6FAA2F;AAC3F,yEAAoE;AACpE,oDAA+F;AAC/F,+DAAmE;AACnE,6GAAwG;AACxG,iHAA4G;AAGrG,IAAM,oBAAoB,4BAA1B,MAAM,oBAAoB;IAS7B,MAAM,CAAC,QAAgB;QACnB,OAAO,CAAC,CAAC,sCAAkB,CAAC,IAAI,CAAC,IAAI,aAAG,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxD,CAAC;IAKD,KAAK,CAAC,OAAO,CAAC,OAAsC,EAAE,OAA6B;QAC/E,MAAM,EAAE,GAAG,sCAAkB,CAAC,IAAI,CAAC,IAAI,aAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QACnE,IAAI,CAAC,EAAE,EAAE,CAAC;YACN,OAAO;QACX,CAAC;QACD,IAAI,SAAsC,CAAC;QAC3C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,EAAE,CAAC,OAAO,CAAC;QAC/C,IAAI,OAAO,EAAE,CAAC;YACV,OAAO,CAAC,GAAG,CAAC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I,CAAC;QAChB,CAAC;IACL,CAAC;;AArGQ,oDAAoB;AAab,oCAAe,GAAG,iBAAiB,AAApB,CAAqB;AACpC,oCAAe,GAAG,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,EAAuB,AAA7D,CAA8D;AAZvD;IAArC,IAAA,kBAAM,EAAC,yCAAkB,CAAC;;4DAA8C;AAChC;IAAxC,IAAA,kBAAM,EAAC,uCAAqB,CAAC;;mEAAwD;AACpD;IAAjC,IAAA,kBAAM,EAAC,wBAAc,CAAC;;4DAA0C;AACb;IAAnD,IAAA,kBAAM,EAAC,mDAAuB,CAAC;sCAAiC,mDAAuB;yDAAC;AACjC;IAAvD,IAAA,kBAAM,EAAC,2DAA2B,CAAC;sCAA2C,2DAA2B;mEAAC;AAClE;IAAxC,IAAA,kBAAM,EAAC,mCAAqB,CAAC;;0DAA+C;+BAPpE,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CAsGhC"}
@@ -0,0 +1,4 @@
1
+ import { ContainerModule } from '@theia/core/shared/inversify';
2
+ declare const _default: ContainerModule;
3
+ export default _default;
4
+ //# sourceMappingURL=vsx-registry-backend-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vsx-registry-backend-module.d.ts","sourceRoot":"","sources":["../../src/node/vsx-registry-backend-module.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAS/D,wBAYG"}
@@ -0,0 +1,41 @@
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-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const core_1 = require("@theia/core");
19
+ const node_1 = require("@theia/core/lib/node");
20
+ const inversify_1 = require("@theia/core/shared/inversify");
21
+ const plugin_protocol_1 = require("@theia/plugin-ext/lib/common/plugin-protocol");
22
+ const vsx_environment_1 = require("../common/vsx-environment");
23
+ const vsx_cli_1 = require("./vsx-cli");
24
+ const vsx_environment_impl_1 = require("./vsx-environment-impl");
25
+ const vsx_extension_resolver_1 = require("./vsx-extension-resolver");
26
+ const vsx_cli_deployer_participant_1 = require("./vsx-cli-deployer-participant");
27
+ const recommended_extensions_preference_contribution_1 = require("../common/recommended-extensions-preference-contribution");
28
+ exports.default = new inversify_1.ContainerModule(bind => {
29
+ bind(vsx_environment_1.VSXEnvironment).to(vsx_environment_impl_1.VSXEnvironmentImpl).inSingletonScope();
30
+ bind(vsx_cli_1.VsxCli).toSelf().inSingletonScope();
31
+ bind(node_1.CliContribution).toService(vsx_cli_1.VsxCli);
32
+ bind(core_1.ConnectionHandler)
33
+ .toDynamicValue(ctx => new core_1.JsonRpcConnectionHandler(vsx_environment_1.VSX_ENVIRONMENT_PATH, () => ctx.container.get(vsx_environment_1.VSXEnvironment)))
34
+ .inSingletonScope();
35
+ bind(vsx_extension_resolver_1.VSXExtensionResolver).toSelf().inSingletonScope();
36
+ bind(plugin_protocol_1.PluginDeployerResolver).toService(vsx_extension_resolver_1.VSXExtensionResolver);
37
+ bind(vsx_cli_deployer_participant_1.VsxCliDeployerParticipant).toSelf().inSingletonScope();
38
+ bind(plugin_protocol_1.PluginDeployerParticipant).toService(vsx_cli_deployer_participant_1.VsxCliDeployerParticipant);
39
+ (0, recommended_extensions_preference_contribution_1.bindExtensionPreferences)(bind);
40
+ });
41
+ //# sourceMappingURL=vsx-registry-backend-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vsx-registry-backend-module.js","sourceRoot":"","sources":["../../src/node/vsx-registry-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,sCAA0E;AAC1E,+CAAuD;AACvD,4DAA+D;AAC/D,kFAAiH;AACjH,+DAAiF;AACjF,uCAAmC;AACnC,iEAA4D;AAC5D,qEAAgE;AAChE,iFAA2E;AAC3E,6HAAoG;AAEpG,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,gCAAc,CAAC,CAAC,EAAE,CAAC,yCAAkB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAC/D,IAAI,CAAC,gBAAM,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACzC,IAAI,CAAC,sBAAe,CAAC,CAAC,SAAS,CAAC,gBAAM,CAAC,CAAC;IACxC,IAAI,CAAC,wBAAiB,CAAC;SAClB,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,+BAAwB,CAAC,sCAAoB,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,gCAAc,CAAC,CAAC,CAAC;SAClH,gBAAgB,EAAE,CAAC;IACxB,IAAI,CAAC,6CAAoB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACvD,IAAI,CAAC,wCAAsB,CAAC,CAAC,SAAS,CAAC,6CAAoB,CAAC,CAAC;IAC7D,IAAI,CAAC,wDAAyB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC5D,IAAI,CAAC,2CAAyB,CAAC,CAAC,SAAS,CAAC,wDAAyB,CAAC,CAAC;IACrE,IAAA,yEAAwB,EAAC,IAAI,CAAC,CAAC;AACnC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { RemoteCliContext, RemoteCliContribution } from '@theia/core/lib/node/remote/remote-cli-contribution';
2
+ import { PluginDeployerHandler } from '@theia/plugin-ext';
3
+ export declare class VsxRemoteCli implements RemoteCliContribution {
4
+ protected readonly pluginDeployerHandler: PluginDeployerHandler;
5
+ enhanceArgs(context: RemoteCliContext): Promise<string[]>;
6
+ }
7
+ //# sourceMappingURL=vsx-remote-cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vsx-remote-cli.d.ts","sourceRoot":"","sources":["../../src/node/vsx-remote-cli.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAE9G,OAAO,EAAE,qBAAqB,EAAc,MAAM,mBAAmB,CAAC;AAEtE,qBACa,YAAa,YAAW,qBAAqB;IAGtD,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;IAE1D,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAYlE"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2024 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-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.VsxRemoteCli = void 0;
19
+ const tslib_1 = require("tslib");
20
+ const inversify_1 = require("@theia/core/shared/inversify");
21
+ const plugin_ext_1 = require("@theia/plugin-ext");
22
+ let VsxRemoteCli = class VsxRemoteCli {
23
+ async enhanceArgs(context) {
24
+ const deployedPlugins = await this.pluginDeployerHandler.getDeployedPlugins();
25
+ // Plugin IDs can be duplicated between frontend and backend plugins, so we create a set first
26
+ const installPluginArgs = Array.from(new Set(deployedPlugins
27
+ .filter(plugin => plugin.type === plugin_ext_1.PluginType.User)
28
+ .map(p => `--install-plugin=${p.metadata.model.id}`)));
29
+ return installPluginArgs;
30
+ }
31
+ };
32
+ exports.VsxRemoteCli = VsxRemoteCli;
33
+ tslib_1.__decorate([
34
+ (0, inversify_1.inject)(plugin_ext_1.PluginDeployerHandler),
35
+ tslib_1.__metadata("design:type", Object)
36
+ ], VsxRemoteCli.prototype, "pluginDeployerHandler", void 0);
37
+ exports.VsxRemoteCli = VsxRemoteCli = tslib_1.__decorate([
38
+ (0, inversify_1.injectable)()
39
+ ], VsxRemoteCli);
40
+ //# sourceMappingURL=vsx-remote-cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vsx-remote-cli.js","sourceRoot":"","sources":["../../src/node/vsx-remote-cli.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAGhF,4DAAkE;AAClE,kDAAsE;AAG/D,IAAM,YAAY,GAAlB,MAAM,YAAY;IAKrB,KAAK,CAAC,WAAW,CAAC,OAAyB;QACvC,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,kBAAkB,EAAE,CAAC;QAC9E,8FAA8F;QAC9F,MAAM,iBAAiB,GAAG,KAAK,CAAC,IAAI,CAChC,IAAI,GAAG,CACH,eAAe;aACV,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,uBAAU,CAAC,IAAI,CAAC;aACjD,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAC3D,CACJ,CAAC;QACF,OAAO,iBAAiB,CAAC;IAC7B,CAAC;CACJ,CAAA;AAjBY,oCAAY;AAGF;IADlB,IAAA,kBAAM,EAAC,kCAAqB,CAAC;;2DACkC;uBAHvD,YAAY;IADxB,IAAA,sBAAU,GAAE;GACA,YAAY,CAiBxB"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=package.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.spec.d.ts","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +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-only 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
+ //# sourceMappingURL=package.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF;;;;;;qBAMqB;AAErB,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IAElC,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AAEvD,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@theia/vsx-registry",
3
- "version": "1.67.0-next.56+d8f18cc386c",
3
+ "version": "1.67.0-next.86+03f92ff1d",
4
4
  "description": "Theia - VSX Registry",
5
5
  "dependencies": {
6
- "@theia/core": "1.67.0-next.56+d8f18cc386c",
7
- "@theia/filesystem": "1.67.0-next.56+d8f18cc386c",
8
- "@theia/navigator": "1.67.0-next.56+d8f18cc386c",
9
- "@theia/ovsx-client": "1.67.0-next.56+d8f18cc386c",
10
- "@theia/plugin-ext": "1.67.0-next.56+d8f18cc386c",
11
- "@theia/plugin-ext-vscode": "1.67.0-next.56+d8f18cc386c",
12
- "@theia/preferences": "1.67.0-next.56+d8f18cc386c",
13
- "@theia/workspace": "1.67.0-next.56+d8f18cc386c",
6
+ "@theia/core": "1.67.0-next.86+03f92ff1d",
7
+ "@theia/filesystem": "1.67.0-next.86+03f92ff1d",
8
+ "@theia/navigator": "1.67.0-next.86+03f92ff1d",
9
+ "@theia/ovsx-client": "1.67.0-next.86+03f92ff1d",
10
+ "@theia/plugin-ext": "1.67.0-next.86+03f92ff1d",
11
+ "@theia/plugin-ext-vscode": "1.67.0-next.86+03f92ff1d",
12
+ "@theia/preferences": "1.67.0-next.86+03f92ff1d",
13
+ "@theia/workspace": "1.67.0-next.86+03f92ff1d",
14
14
  "limiter": "^2.1.0",
15
15
  "luxon": "^2.4.0",
16
16
  "p-debounce": "^2.1.0",
@@ -61,5 +61,5 @@
61
61
  "nyc": {
62
62
  "extends": "../../configs/nyc.json"
63
63
  },
64
- "gitHead": "d8f18cc386c45a736cd193d42eab02c8f64c6b10"
64
+ "gitHead": "03f92ff1d97dcb199de39b48e60a53535de22808"
65
65
  }