@theia/plugin-dev 1.34.1 → 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 (53) hide show
  1. package/LICENSE +641 -641
  2. package/README.md +31 -31
  3. package/lib/browser/hosted-plugin-controller.d.ts +74 -74
  4. package/lib/browser/hosted-plugin-controller.js +352 -352
  5. package/lib/browser/hosted-plugin-frontend-contribution.d.ts +6 -6
  6. package/lib/browser/hosted-plugin-frontend-contribution.js +56 -56
  7. package/lib/browser/hosted-plugin-informer.d.ts +25 -25
  8. package/lib/browser/hosted-plugin-informer.js +102 -102
  9. package/lib/browser/hosted-plugin-log-viewer.d.ts +14 -14
  10. package/lib/browser/hosted-plugin-log-viewer.js +69 -69
  11. package/lib/browser/hosted-plugin-manager-client.d.ts +79 -79
  12. package/lib/browser/hosted-plugin-manager-client.js +407 -407
  13. package/lib/browser/hosted-plugin-preferences.d.ts +13 -13
  14. package/lib/browser/hosted-plugin-preferences.js +60 -60
  15. package/lib/browser/plugin-dev-frontend-module.d.ts +3 -3
  16. package/lib/browser/plugin-dev-frontend-module.js +42 -42
  17. package/lib/common/index.d.ts +2 -2
  18. package/lib/common/index.js +31 -31
  19. package/lib/common/plugin-dev-protocol.d.ts +24 -24
  20. package/lib/common/plugin-dev-protocol.js +20 -20
  21. package/lib/node/hosted-instance-manager.d.ts +102 -102
  22. package/lib/node/hosted-instance-manager.js +316 -316
  23. package/lib/node/hosted-plugin-reader.d.ts +11 -11
  24. package/lib/node/hosted-plugin-reader.js +68 -68
  25. package/lib/node/hosted-plugin-uri-postprocessor.d.ts +6 -6
  26. package/lib/node/hosted-plugin-uri-postprocessor.js +27 -27
  27. package/lib/node/hosted-plugins-manager.d.ts +41 -41
  28. package/lib/node/hosted-plugins-manager.js +118 -118
  29. package/lib/node/plugin-dev-backend-module.d.ts +4 -4
  30. package/lib/node/plugin-dev-backend-module.js +53 -53
  31. package/lib/node/plugin-dev-service.d.ts +25 -25
  32. package/lib/node/plugin-dev-service.js +108 -108
  33. package/lib/node-electron/plugin-dev-electron-backend-module.d.ts +3 -3
  34. package/lib/node-electron/plugin-dev-electron-backend-module.js +28 -28
  35. package/lib/package.spec.js +25 -25
  36. package/package.json +9 -9
  37. package/src/browser/hosted-plugin-controller.ts +356 -356
  38. package/src/browser/hosted-plugin-frontend-contribution.ts +45 -45
  39. package/src/browser/hosted-plugin-informer.ts +93 -93
  40. package/src/browser/hosted-plugin-log-viewer.ts +52 -52
  41. package/src/browser/hosted-plugin-manager-client.ts +426 -426
  42. package/src/browser/hosted-plugin-preferences.ts +71 -71
  43. package/src/browser/plugin-dev-frontend-module.ts +45 -45
  44. package/src/common/index.ts +21 -21
  45. package/src/common/plugin-dev-protocol.ts +45 -45
  46. package/src/node/hosted-instance-manager.ts +381 -381
  47. package/src/node/hosted-plugin-reader.ts +58 -58
  48. package/src/node/hosted-plugin-uri-postprocessor.ts +32 -32
  49. package/src/node/hosted-plugins-manager.ts +146 -146
  50. package/src/node/plugin-dev-backend-module.ts +54 -54
  51. package/src/node/plugin-dev-service.ts +107 -107
  52. package/src/node-electron/plugin-dev-electron-backend-module.ts +29 -29
  53. package/src/package.spec.ts +28 -28
@@ -1,80 +1,80 @@
1
- import URI from '@theia/core/lib/common/uri';
2
- import { MessageService, Command, Emitter, Event } from '@theia/core/lib/common';
3
- import { LabelProvider } from '@theia/core/lib/browser';
4
- import { WindowService } from '@theia/core/lib/browser/window/window-service';
5
- import { WorkspaceService } from '@theia/workspace/lib/browser';
6
- import { FileDialogService } from '@theia/filesystem/lib/browser';
7
- import { PluginDebugConfiguration, PluginDevServer } from '../common/plugin-dev-protocol';
8
- import { LaunchVSCodeRequest, LaunchVSCodeResult } from '@theia/debug/lib/browser/debug-contribution';
9
- import { DebugSessionManager } from '@theia/debug/lib/browser/debug-session-manager';
10
- import { HostedPluginPreferences } from './hosted-plugin-preferences';
11
- import { FileService } from '@theia/filesystem/lib/browser/file-service';
12
- import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
13
- import { DebugSessionConnection } from '@theia/debug/lib/browser/debug-session-connection';
14
- /**
15
- * Commands to control Hosted plugin instances.
16
- */
17
- export declare namespace HostedPluginCommands {
18
- const START: Command;
19
- const DEBUG: Command;
20
- const STOP: Command;
21
- const RESTART: Command;
22
- const SELECT_PATH: Command;
23
- }
24
- /**
25
- * Available states of hosted plugin instance.
26
- */
27
- export declare enum HostedInstanceState {
28
- STOPPED = "stopped",
29
- STARTING = "starting",
30
- RUNNING = "running",
31
- STOPPING = "stopping",
32
- FAILED = "failed"
33
- }
34
- export interface HostedInstanceData {
35
- state: HostedInstanceState;
36
- pluginLocation: URI;
37
- }
38
- /**
39
- * Responsible for UI to set up and control Hosted Plugin Instance.
40
- */
41
- export declare class HostedPluginManagerClient {
42
- private openNewTabAskDialog;
43
- private connection;
44
- protected pluginLocation: URI | undefined;
45
- protected pluginInstanceURL: string | undefined;
46
- protected isDebug: boolean;
47
- protected readonly stateChanged: Emitter<HostedInstanceData>;
48
- get onStateChanged(): Event<HostedInstanceData>;
49
- protected readonly hostedPluginServer: PluginDevServer;
50
- protected readonly messageService: MessageService;
51
- protected readonly labelProvider: LabelProvider;
52
- protected readonly windowService: WindowService;
53
- protected readonly fileService: FileService;
54
- protected readonly environments: EnvVariablesServer;
55
- protected readonly workspaceService: WorkspaceService;
56
- protected readonly debugSessionManager: DebugSessionManager;
57
- protected readonly hostedPluginPreferences: HostedPluginPreferences;
58
- protected readonly fileDialogService: FileDialogService;
59
- protected init(): Promise<void>;
60
- get lastPluginLocation(): string | undefined;
61
- start(debugConfig?: PluginDebugConfiguration): Promise<void>;
62
- debug(config?: PluginDebugConfiguration): Promise<string | undefined>;
63
- startDebugSessionManager(): Promise<void>;
64
- stop(checkRunning?: boolean): Promise<void>;
65
- restart(): Promise<void>;
66
- /**
67
- * Creates directory choose dialog and set selected folder into pluginLocation field.
68
- */
69
- selectPluginPath(): Promise<void>;
70
- register(configType: string, connection: DebugSessionConnection): void;
71
- /**
72
- * Opens window with URL to the running plugin instance.
73
- */
74
- protected openPluginWindow(): Promise<void>;
75
- protected launchVSCode({ arguments: { args } }: LaunchVSCodeRequest): Promise<LaunchVSCodeResult>;
76
- protected getErrorMessage(error: any): string;
77
- private setDebugConfig;
78
- private getDebugPluginConfig;
79
- }
1
+ import URI from '@theia/core/lib/common/uri';
2
+ import { MessageService, Command, Emitter, Event } from '@theia/core/lib/common';
3
+ import { LabelProvider } from '@theia/core/lib/browser';
4
+ import { WindowService } from '@theia/core/lib/browser/window/window-service';
5
+ import { WorkspaceService } from '@theia/workspace/lib/browser';
6
+ import { FileDialogService } from '@theia/filesystem/lib/browser';
7
+ import { PluginDebugConfiguration, PluginDevServer } from '../common/plugin-dev-protocol';
8
+ import { LaunchVSCodeRequest, LaunchVSCodeResult } from '@theia/debug/lib/browser/debug-contribution';
9
+ import { DebugSessionManager } from '@theia/debug/lib/browser/debug-session-manager';
10
+ import { HostedPluginPreferences } from './hosted-plugin-preferences';
11
+ import { FileService } from '@theia/filesystem/lib/browser/file-service';
12
+ import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
13
+ import { DebugSessionConnection } from '@theia/debug/lib/browser/debug-session-connection';
14
+ /**
15
+ * Commands to control Hosted plugin instances.
16
+ */
17
+ export declare namespace HostedPluginCommands {
18
+ const START: Command;
19
+ const DEBUG: Command;
20
+ const STOP: Command;
21
+ const RESTART: Command;
22
+ const SELECT_PATH: Command;
23
+ }
24
+ /**
25
+ * Available states of hosted plugin instance.
26
+ */
27
+ export declare enum HostedInstanceState {
28
+ STOPPED = "stopped",
29
+ STARTING = "starting",
30
+ RUNNING = "running",
31
+ STOPPING = "stopping",
32
+ FAILED = "failed"
33
+ }
34
+ export interface HostedInstanceData {
35
+ state: HostedInstanceState;
36
+ pluginLocation: URI;
37
+ }
38
+ /**
39
+ * Responsible for UI to set up and control Hosted Plugin Instance.
40
+ */
41
+ export declare class HostedPluginManagerClient {
42
+ private openNewTabAskDialog;
43
+ private connection;
44
+ protected pluginLocation: URI | undefined;
45
+ protected pluginInstanceURL: string | undefined;
46
+ protected isDebug: boolean;
47
+ protected readonly stateChanged: Emitter<HostedInstanceData>;
48
+ get onStateChanged(): Event<HostedInstanceData>;
49
+ protected readonly hostedPluginServer: PluginDevServer;
50
+ protected readonly messageService: MessageService;
51
+ protected readonly labelProvider: LabelProvider;
52
+ protected readonly windowService: WindowService;
53
+ protected readonly fileService: FileService;
54
+ protected readonly environments: EnvVariablesServer;
55
+ protected readonly workspaceService: WorkspaceService;
56
+ protected readonly debugSessionManager: DebugSessionManager;
57
+ protected readonly hostedPluginPreferences: HostedPluginPreferences;
58
+ protected readonly fileDialogService: FileDialogService;
59
+ protected init(): Promise<void>;
60
+ get lastPluginLocation(): string | undefined;
61
+ start(debugConfig?: PluginDebugConfiguration): Promise<void>;
62
+ debug(config?: PluginDebugConfiguration): Promise<string | undefined>;
63
+ startDebugSessionManager(): Promise<void>;
64
+ stop(checkRunning?: boolean): Promise<void>;
65
+ restart(): Promise<void>;
66
+ /**
67
+ * Creates directory choose dialog and set selected folder into pluginLocation field.
68
+ */
69
+ selectPluginPath(): Promise<void>;
70
+ register(configType: string, connection: DebugSessionConnection): void;
71
+ /**
72
+ * Opens window with URL to the running plugin instance.
73
+ */
74
+ protected openPluginWindow(): Promise<void>;
75
+ protected launchVSCode({ arguments: { args } }: LaunchVSCodeRequest): Promise<LaunchVSCodeResult>;
76
+ protected getErrorMessage(error: any): string;
77
+ private setDebugConfig;
78
+ private getDebugPluginConfig;
79
+ }
80
80
  //# sourceMappingURL=hosted-plugin-manager-client.d.ts.map