@theia/plugin-dev 1.45.0 → 1.46.0-next.72

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 (54) hide show
  1. package/README.md +31 -31
  2. package/lib/browser/hosted-plugin-controller.d.ts +74 -74
  3. package/lib/browser/hosted-plugin-controller.js +352 -352
  4. package/lib/browser/hosted-plugin-frontend-contribution.d.ts +6 -6
  5. package/lib/browser/hosted-plugin-frontend-contribution.js +56 -56
  6. package/lib/browser/hosted-plugin-informer.d.ts +25 -25
  7. package/lib/browser/hosted-plugin-informer.js +102 -102
  8. package/lib/browser/hosted-plugin-log-viewer.d.ts +14 -14
  9. package/lib/browser/hosted-plugin-log-viewer.js +69 -69
  10. package/lib/browser/hosted-plugin-manager-client.d.ts +80 -80
  11. package/lib/browser/hosted-plugin-manager-client.js +410 -410
  12. package/lib/browser/hosted-plugin-preferences.d.ts +13 -13
  13. package/lib/browser/hosted-plugin-preferences.js +60 -60
  14. package/lib/browser/plugin-dev-frontend-module.d.ts +3 -3
  15. package/lib/browser/plugin-dev-frontend-module.js +42 -42
  16. package/lib/common/index.d.ts +2 -2
  17. package/lib/common/index.js +31 -31
  18. package/lib/common/plugin-dev-protocol.d.ts +24 -24
  19. package/lib/common/plugin-dev-protocol.js +20 -20
  20. package/lib/node/hosted-instance-manager.d.ts +104 -104
  21. package/lib/node/hosted-instance-manager.js +320 -320
  22. package/lib/node/hosted-instance-manager.js.map +1 -1
  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-reader.js.map +1 -1
  26. package/lib/node/hosted-plugin-uri-postprocessor.d.ts +6 -6
  27. package/lib/node/hosted-plugin-uri-postprocessor.js +27 -27
  28. package/lib/node/hosted-plugins-manager.d.ts +41 -41
  29. package/lib/node/hosted-plugins-manager.js +119 -119
  30. package/lib/node/plugin-dev-backend-module.d.ts +4 -4
  31. package/lib/node/plugin-dev-backend-module.js +53 -53
  32. package/lib/node/plugin-dev-service.d.ts +25 -25
  33. package/lib/node/plugin-dev-service.js +108 -108
  34. package/lib/node-electron/plugin-dev-electron-backend-module.d.ts +3 -3
  35. package/lib/node-electron/plugin-dev-electron-backend-module.js +28 -28
  36. package/lib/package.spec.js +25 -25
  37. package/package.json +9 -9
  38. package/src/browser/hosted-plugin-controller.ts +356 -356
  39. package/src/browser/hosted-plugin-frontend-contribution.ts +45 -45
  40. package/src/browser/hosted-plugin-informer.ts +93 -93
  41. package/src/browser/hosted-plugin-log-viewer.ts +52 -52
  42. package/src/browser/hosted-plugin-manager-client.ts +430 -430
  43. package/src/browser/hosted-plugin-preferences.ts +71 -71
  44. package/src/browser/plugin-dev-frontend-module.ts +45 -45
  45. package/src/common/index.ts +21 -21
  46. package/src/common/plugin-dev-protocol.ts +45 -45
  47. package/src/node/hosted-instance-manager.ts +382 -382
  48. package/src/node/hosted-plugin-reader.ts +58 -58
  49. package/src/node/hosted-plugin-uri-postprocessor.ts +32 -32
  50. package/src/node/hosted-plugins-manager.ts +146 -146
  51. package/src/node/plugin-dev-backend-module.ts +54 -54
  52. package/src/node/plugin-dev-service.ts +107 -107
  53. package/src/node-electron/plugin-dev-electron-backend-module.ts +29 -29
  54. package/src/package.spec.ts +28 -28
@@ -1,81 +1,81 @@
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(): void;
60
- protected doInit(): Promise<void>;
61
- get lastPluginLocation(): string | undefined;
62
- start(debugConfig?: PluginDebugConfiguration): Promise<void>;
63
- debug(config?: PluginDebugConfiguration): Promise<string | undefined>;
64
- startDebugSessionManager(): Promise<void>;
65
- stop(checkRunning?: boolean): Promise<void>;
66
- restart(): Promise<void>;
67
- /**
68
- * Creates directory choose dialog and set selected folder into pluginLocation field.
69
- */
70
- selectPluginPath(): Promise<void>;
71
- register(configType: string, connection: DebugSessionConnection): void;
72
- /**
73
- * Opens window with URL to the running plugin instance.
74
- */
75
- protected openPluginWindow(): Promise<void>;
76
- protected launchVSCode({ arguments: { args } }: LaunchVSCodeRequest): Promise<LaunchVSCodeResult>;
77
- protected getErrorMessage(error: any): string;
78
- private setDebugConfig;
79
- private getDebugPluginConfig;
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(): void;
60
+ protected doInit(): Promise<void>;
61
+ get lastPluginLocation(): string | undefined;
62
+ start(debugConfig?: PluginDebugConfiguration): Promise<void>;
63
+ debug(config?: PluginDebugConfiguration): Promise<string | undefined>;
64
+ startDebugSessionManager(): Promise<void>;
65
+ stop(checkRunning?: boolean): Promise<void>;
66
+ restart(): Promise<void>;
67
+ /**
68
+ * Creates directory choose dialog and set selected folder into pluginLocation field.
69
+ */
70
+ selectPluginPath(): Promise<void>;
71
+ register(configType: string, connection: DebugSessionConnection): void;
72
+ /**
73
+ * Opens window with URL to the running plugin instance.
74
+ */
75
+ protected openPluginWindow(): Promise<void>;
76
+ protected launchVSCode({ arguments: { args } }: LaunchVSCodeRequest): Promise<LaunchVSCodeResult>;
77
+ protected getErrorMessage(error: any): string;
78
+ private setDebugConfig;
79
+ private getDebugPluginConfig;
80
+ }
81
81
  //# sourceMappingURL=hosted-plugin-manager-client.d.ts.map