@theia/vsx-registry 1.53.0-next.5 → 1.53.0-next.55

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 (49) hide show
  1. package/README.md +45 -45
  2. package/lib/common/vsx-environment.d.ts +1 -0
  3. package/lib/common/vsx-environment.d.ts.map +1 -1
  4. package/lib/common/vsx-registry-common-module.d.ts.map +1 -1
  5. package/lib/common/vsx-registry-common-module.js +9 -3
  6. package/lib/common/vsx-registry-common-module.js.map +1 -1
  7. package/lib/node/vsx-cli.d.ts +1 -0
  8. package/lib/node/vsx-cli.d.ts.map +1 -1
  9. package/lib/node/vsx-cli.js +4 -0
  10. package/lib/node/vsx-cli.js.map +1 -1
  11. package/lib/node/vsx-environment-impl.d.ts +1 -0
  12. package/lib/node/vsx-environment-impl.d.ts.map +1 -1
  13. package/lib/node/vsx-environment-impl.js +3 -0
  14. package/lib/node/vsx-environment-impl.js.map +1 -1
  15. package/lib/node/vsx-extension-resolver.js +3 -3
  16. package/lib/node/vsx-extension-resolver.js.map +1 -1
  17. package/package.json +12 -11
  18. package/src/browser/recommended-extensions/preference-provider-overrides.ts +99 -99
  19. package/src/browser/recommended-extensions/recommended-extensions-json-schema.ts +74 -74
  20. package/src/browser/recommended-extensions/recommended-extensions-preference-contribution.ts +68 -68
  21. package/src/browser/style/extensions.svg +4 -4
  22. package/src/browser/style/index.css +436 -436
  23. package/src/browser/vsx-extension-argument-processor.ts +32 -32
  24. package/src/browser/vsx-extension-commands.ts +68 -68
  25. package/src/browser/vsx-extension-editor-manager.ts +42 -42
  26. package/src/browser/vsx-extension-editor.tsx +96 -96
  27. package/src/browser/vsx-extension.tsx +710 -710
  28. package/src/browser/vsx-extensions-contribution.ts +373 -373
  29. package/src/browser/vsx-extensions-model.ts +456 -456
  30. package/src/browser/vsx-extensions-preferences.ts +58 -58
  31. package/src/browser/vsx-extensions-search-bar.tsx +107 -107
  32. package/src/browser/vsx-extensions-search-model.ts +61 -61
  33. package/src/browser/vsx-extensions-source.ts +83 -83
  34. package/src/browser/vsx-extensions-view-container.ts +179 -179
  35. package/src/browser/vsx-extensions-widget.tsx +165 -165
  36. package/src/browser/vsx-language-quick-pick-service.ts +112 -112
  37. package/src/browser/vsx-registry-frontend-module.ts +113 -113
  38. package/src/common/index.ts +19 -19
  39. package/src/common/ovsx-client-provider.ts +35 -35
  40. package/src/common/vsx-environment.ts +28 -27
  41. package/src/common/vsx-extension-uri.ts +20 -20
  42. package/src/common/vsx-registry-common-module.ts +85 -78
  43. package/src/node/vsx-cli-deployer-participant.ts +46 -46
  44. package/src/node/vsx-cli.ts +55 -51
  45. package/src/node/vsx-environment-impl.ts +54 -50
  46. package/src/node/vsx-extension-resolver.ts +134 -134
  47. package/src/node/vsx-registry-backend-module.ts +38 -38
  48. package/src/node/vsx-remote-cli.ts +39 -39
  49. package/src/package.spec.ts +29 -29
@@ -1,38 +1,38 @@
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
-
17
- import { ConnectionHandler, JsonRpcConnectionHandler } from '@theia/core';
18
- import { CliContribution } from '@theia/core/lib/node';
19
- import { ContainerModule } from '@theia/core/shared/inversify';
20
- import { PluginDeployerParticipant, PluginDeployerResolver } from '@theia/plugin-ext/lib/common/plugin-protocol';
21
- import { VSXEnvironment, VSX_ENVIRONMENT_PATH } from '../common/vsx-environment';
22
- import { VsxCli } from './vsx-cli';
23
- import { VSXEnvironmentImpl } from './vsx-environment-impl';
24
- import { VSXExtensionResolver } from './vsx-extension-resolver';
25
- import { VsxCliDeployerParticipant } from './vsx-cli-deployer-participant';
26
-
27
- export default new ContainerModule(bind => {
28
- bind(VSXEnvironment).to(VSXEnvironmentImpl).inSingletonScope();
29
- bind(VsxCli).toSelf().inSingletonScope();
30
- bind(CliContribution).toService(VsxCli);
31
- bind(ConnectionHandler)
32
- .toDynamicValue(ctx => new JsonRpcConnectionHandler(VSX_ENVIRONMENT_PATH, () => ctx.container.get(VSXEnvironment)))
33
- .inSingletonScope();
34
- bind(VSXExtensionResolver).toSelf().inSingletonScope();
35
- bind(PluginDeployerResolver).toService(VSXExtensionResolver);
36
- bind(VsxCliDeployerParticipant).toSelf().inSingletonScope();
37
- bind(PluginDeployerParticipant).toService(VsxCliDeployerParticipant);
38
- });
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
+
17
+ import { ConnectionHandler, JsonRpcConnectionHandler } from '@theia/core';
18
+ import { CliContribution } from '@theia/core/lib/node';
19
+ import { ContainerModule } from '@theia/core/shared/inversify';
20
+ import { PluginDeployerParticipant, PluginDeployerResolver } from '@theia/plugin-ext/lib/common/plugin-protocol';
21
+ import { VSXEnvironment, VSX_ENVIRONMENT_PATH } from '../common/vsx-environment';
22
+ import { VsxCli } from './vsx-cli';
23
+ import { VSXEnvironmentImpl } from './vsx-environment-impl';
24
+ import { VSXExtensionResolver } from './vsx-extension-resolver';
25
+ import { VsxCliDeployerParticipant } from './vsx-cli-deployer-participant';
26
+
27
+ export default new ContainerModule(bind => {
28
+ bind(VSXEnvironment).to(VSXEnvironmentImpl).inSingletonScope();
29
+ bind(VsxCli).toSelf().inSingletonScope();
30
+ bind(CliContribution).toService(VsxCli);
31
+ bind(ConnectionHandler)
32
+ .toDynamicValue(ctx => new JsonRpcConnectionHandler(VSX_ENVIRONMENT_PATH, () => ctx.container.get(VSXEnvironment)))
33
+ .inSingletonScope();
34
+ bind(VSXExtensionResolver).toSelf().inSingletonScope();
35
+ bind(PluginDeployerResolver).toService(VSXExtensionResolver);
36
+ bind(VsxCliDeployerParticipant).toSelf().inSingletonScope();
37
+ bind(PluginDeployerParticipant).toService(VsxCliDeployerParticipant);
38
+ });
@@ -1,39 +1,39 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2024 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
-
17
- import { RemoteCliContext, RemoteCliContribution } from '@theia/core/lib/node/remote/remote-cli-contribution';
18
- import { inject, injectable } from '@theia/core/shared/inversify';
19
- import { PluginDeployerHandler, PluginType } from '@theia/plugin-ext';
20
-
21
- @injectable()
22
- export class VsxRemoteCli implements RemoteCliContribution {
23
-
24
- @inject(PluginDeployerHandler)
25
- protected readonly pluginDeployerHandler: PluginDeployerHandler;
26
-
27
- async enhanceArgs(context: RemoteCliContext): Promise<string[]> {
28
- const deployedPlugins = await this.pluginDeployerHandler.getDeployedPlugins();
29
- // Plugin IDs can be duplicated between frontend and backend plugins, so we create a set first
30
- const installPluginArgs = Array.from(
31
- new Set(
32
- deployedPlugins
33
- .filter(plugin => plugin.type === PluginType.User)
34
- .map(p => `--install-plugin=${p.metadata.model.id}`)
35
- )
36
- );
37
- return installPluginArgs;
38
- }
39
- }
1
+ // *****************************************************************************
2
+ // Copyright (C) 2024 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
+
17
+ import { RemoteCliContext, RemoteCliContribution } from '@theia/core/lib/node/remote/remote-cli-contribution';
18
+ import { inject, injectable } from '@theia/core/shared/inversify';
19
+ import { PluginDeployerHandler, PluginType } from '@theia/plugin-ext';
20
+
21
+ @injectable()
22
+ export class VsxRemoteCli implements RemoteCliContribution {
23
+
24
+ @inject(PluginDeployerHandler)
25
+ protected readonly pluginDeployerHandler: PluginDeployerHandler;
26
+
27
+ async enhanceArgs(context: RemoteCliContext): Promise<string[]> {
28
+ const deployedPlugins = await this.pluginDeployerHandler.getDeployedPlugins();
29
+ // Plugin IDs can be duplicated between frontend and backend plugins, so we create a set first
30
+ const installPluginArgs = Array.from(
31
+ new Set(
32
+ deployedPlugins
33
+ .filter(plugin => plugin.type === PluginType.User)
34
+ .map(p => `--install-plugin=${p.metadata.model.id}`)
35
+ )
36
+ );
37
+ return installPluginArgs;
38
+ }
39
+ }
@@ -1,29 +1,29 @@
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
-
17
- /* note: this bogus test file is required so that
18
- we are able to run mocha unit tests on this
19
- package, without having any actual unit tests in it.
20
- This way a coverage report will be generated,
21
- showing 0% coverage, instead of no report.
22
- This file can be removed once we have real unit
23
- tests in place. */
24
-
25
- describe('vsx-registry package', () => {
26
-
27
- it('support code coverage statistics', () => true);
28
-
29
- });
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
+
17
+ /* note: this bogus test file is required so that
18
+ we are able to run mocha unit tests on this
19
+ package, without having any actual unit tests in it.
20
+ This way a coverage report will be generated,
21
+ showing 0% coverage, instead of no report.
22
+ This file can be removed once we have real unit
23
+ tests in place. */
24
+
25
+ describe('vsx-registry package', () => {
26
+
27
+ it('support code coverage statistics', () => true);
28
+
29
+ });