@theia/plugin-ext 1.28.0-next.39 → 1.28.0-next.45

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 (63) hide show
  1. package/lib/common/plugin-api-rpc.d.ts +1 -0
  2. package/lib/common/plugin-api-rpc.d.ts.map +1 -1
  3. package/lib/common/plugin-api-rpc.js.map +1 -1
  4. package/lib/hosted/browser/hosted-plugin.d.ts.map +1 -1
  5. package/lib/hosted/browser/hosted-plugin.js +4 -2
  6. package/lib/hosted/browser/hosted-plugin.js.map +1 -1
  7. package/lib/hosted/browser/worker/worker-env-ext.d.ts +1 -0
  8. package/lib/hosted/browser/worker/worker-env-ext.d.ts.map +1 -1
  9. package/lib/hosted/browser/worker/worker-env-ext.js +3 -0
  10. package/lib/hosted/browser/worker/worker-env-ext.js.map +1 -1
  11. package/lib/main/browser/plugin-ext-frontend-module.d.ts.map +1 -1
  12. package/lib/main/browser/plugin-ext-frontend-module.js +0 -2
  13. package/lib/main/browser/plugin-ext-frontend-module.js.map +1 -1
  14. package/lib/main/browser/plugin-frontend-contribution.d.ts +0 -2
  15. package/lib/main/browser/plugin-frontend-contribution.d.ts.map +1 -1
  16. package/lib/main/browser/plugin-frontend-contribution.js +0 -8
  17. package/lib/main/browser/plugin-frontend-contribution.js.map +1 -1
  18. package/lib/main/node/handlers/plugin-theia-file-handler.d.ts +0 -4
  19. package/lib/main/node/handlers/plugin-theia-file-handler.d.ts.map +1 -1
  20. package/lib/main/node/handlers/plugin-theia-file-handler.js +0 -26
  21. package/lib/main/node/handlers/plugin-theia-file-handler.js.map +1 -1
  22. package/lib/main/node/plugin-ext-backend-module.d.ts.map +1 -1
  23. package/lib/main/node/plugin-ext-backend-module.js +0 -2
  24. package/lib/main/node/plugin-ext-backend-module.js.map +1 -1
  25. package/lib/main/node/resolvers/local-plugin-deployer-resolver.d.ts.map +1 -1
  26. package/lib/main/node/resolvers/local-plugin-deployer-resolver.js.map +1 -1
  27. package/lib/plugin/env.d.ts +11 -0
  28. package/lib/plugin/env.d.ts.map +1 -1
  29. package/lib/plugin/env.js +20 -0
  30. package/lib/plugin/env.js.map +1 -1
  31. package/lib/plugin/node/env-node-ext.d.ts +3 -0
  32. package/lib/plugin/node/env-node-ext.d.ts.map +1 -1
  33. package/lib/plugin/node/env-node-ext.js +11 -0
  34. package/lib/plugin/node/env-node-ext.js.map +1 -1
  35. package/lib/plugin/plugin-context.d.ts.map +1 -1
  36. package/lib/plugin/plugin-context.js +7 -0
  37. package/lib/plugin/plugin-context.js.map +1 -1
  38. package/lib/plugin/plugin-manager.d.ts.map +1 -1
  39. package/lib/plugin/plugin-manager.js +1 -0
  40. package/lib/plugin/plugin-manager.js.map +1 -1
  41. package/package.json +24 -24
  42. package/src/common/plugin-api-rpc.ts +1 -0
  43. package/src/hosted/browser/hosted-plugin.ts +4 -2
  44. package/src/hosted/browser/worker/worker-env-ext.ts +4 -0
  45. package/src/main/browser/plugin-ext-frontend-module.ts +0 -2
  46. package/src/main/browser/plugin-frontend-contribution.ts +0 -9
  47. package/src/main/node/handlers/plugin-theia-file-handler.ts +0 -26
  48. package/src/main/node/plugin-ext-backend-module.ts +0 -2
  49. package/src/main/node/resolvers/local-plugin-deployer-resolver.ts +4 -8
  50. package/src/plugin/env.ts +30 -0
  51. package/src/plugin/node/env-node-ext.ts +13 -1
  52. package/src/plugin/plugin-context.ts +7 -0
  53. package/src/plugin/plugin-manager.ts +1 -0
  54. package/lib/main/browser/plugin-ext-deploy-command.d.ts +0 -10
  55. package/lib/main/browser/plugin-ext-deploy-command.d.ts.map +0 -1
  56. package/lib/main/browser/plugin-ext-deploy-command.js +0 -64
  57. package/lib/main/browser/plugin-ext-deploy-command.js.map +0 -1
  58. package/lib/main/node/resolvers/local-file-plugin-deployer-resolver.d.ts +0 -8
  59. package/lib/main/node/resolvers/local-file-plugin-deployer-resolver.d.ts.map +0 -1
  60. package/lib/main/node/resolvers/local-file-plugin-deployer-resolver.js +0 -43
  61. package/lib/main/node/resolvers/local-file-plugin-deployer-resolver.js.map +0 -1
  62. package/src/main/browser/plugin-ext-deploy-command.ts +0 -50
  63. package/src/main/node/resolvers/local-file-plugin-deployer-resolver.ts +0 -34
@@ -1,50 +0,0 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2018 Red Hat, Inc. 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
-
17
- import { injectable, inject, optional } from '@theia/core/shared/inversify';
18
- import { PluginServer } from '../../common';
19
- import { Command } from '@theia/core/lib/common/command';
20
- import { QuickInputService, QuickPick, QuickPickItem } from '@theia/core/lib/browser';
21
-
22
- @injectable()
23
- export class PluginExtDeployCommandService /* implements QuickOpenModel */ {
24
- public static COMMAND: Command = {
25
- id: 'plugin-ext:deploy-plugin-id',
26
- category: 'Plugin',
27
- label: 'Deploy Plugin by Id',
28
- };
29
-
30
- @inject(QuickInputService) @optional()
31
- protected readonly quickInputService: QuickInputService;
32
-
33
- @inject(PluginServer)
34
- protected readonly pluginServer: PluginServer;
35
-
36
- deploy(): void {
37
- this.quickInputService?.showQuickPick([],
38
- {
39
- placeholder: "Plugin's id to deploy.",
40
- onDidChangeValue: (quickPick: QuickPick<QuickPickItem>, filter: string) => {
41
- quickPick.items = [{
42
- label: filter,
43
- detail: 'Deploy this plugin',
44
- execute: () => this.pluginServer.deploy(filter)
45
- }];
46
- }
47
- }
48
- );
49
- }
50
- }
@@ -1,34 +0,0 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2018 Red Hat, Inc. 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
-
17
- import { PluginDeployerResolverContext } from '../../../common/plugin-protocol';
18
- import { injectable } from '@theia/core/shared/inversify';
19
- import * as path from 'path';
20
- import { LocalPluginDeployerResolver } from './local-plugin-deployer-resolver';
21
-
22
- @injectable()
23
- export class LocalFilePluginDeployerResolver extends LocalPluginDeployerResolver {
24
- static LOCAL_FILE = 'local-file';
25
-
26
- protected get supportedScheme(): string {
27
- return LocalFilePluginDeployerResolver.LOCAL_FILE;
28
- }
29
-
30
- async resolveFromLocalPath(pluginResolverContext: PluginDeployerResolverContext, localPath: string): Promise<void> {
31
- const fileName = path.basename(localPath);
32
- pluginResolverContext.addPlugin(fileName, localPath);
33
- }
34
- }