@theia/plugin-ext 1.73.0-next.24 → 1.73.0-next.26

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.
@@ -10,24 +10,14 @@ import { ConnectionImpl } from '../../../common/connection';
10
10
  export declare class DebugMainImpl implements DebugMain, Disposable {
11
11
  readonly connectionMain: ConnectionImpl;
12
12
  private readonly debugExt;
13
+ private readonly container;
13
14
  private readonly sessionManager;
14
- private readonly labelProvider;
15
- private readonly editorManager;
16
15
  private readonly breakpointsManager;
17
16
  private readonly consoleSessionManager;
18
17
  private readonly configurationManager;
19
- private readonly terminalService;
20
- private readonly messages;
21
- private readonly outputChannelManager;
22
- private readonly debugPreferences;
23
18
  private readonly sessionContributionRegistrator;
24
19
  private readonly pluginDebugService;
25
- private readonly fileService;
26
20
  private readonly pluginService;
27
- private readonly debugContributionProvider;
28
- private readonly testService;
29
- private readonly workspaceService;
30
- private readonly commandService;
31
21
  private readonly debuggerContributions;
32
22
  private readonly configurationProviders;
33
23
  private readonly toDispose;
@@ -1 +1 @@
1
- {"version":3,"file":"debug-main.d.ts","sourceRoot":"","sources":["../../../../src/main/browser/debug/debug-main.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EACH,oCAAoC,EACpC,SAAS,EAGZ,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,UAAU,EAAsC,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAMvH,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAStD,OAAO,EAAE,UAAU,EAAwB,MAAM,mCAAmC,CAAC;AASrF,OAAO,EAAE,cAA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, "__esModule", { value: true });
18
18
  exports.DebugMainImpl = void 0;
19
19
  const plugin_api_rpc_1 = require("../../../common/plugin-api-rpc");
20
20
  const debug_session_manager_1 = require("@theia/debug/lib/browser/debug-session-manager");
21
- const browser_1 = require("@theia/core/lib/browser");
22
- const browser_2 = require("@theia/editor/lib/browser");
23
21
  const breakpoint_manager_1 = require("@theia/debug/lib/browser/breakpoint/breakpoint-manager");
24
22
  const vscode_uri_1 = require("@theia/core/shared/vscode-uri");
25
23
  const debug_configuration_manager_1 = require("@theia/debug/lib/browser/debug-configuration-manager");
26
- const terminal_service_1 = require("@theia/terminal/lib/browser/base/terminal-service");
27
- const message_service_protocol_1 = require("@theia/core/lib/common/message-service-protocol");
28
- const output_channel_1 = require("@theia/output/lib/browser/output-channel");
29
- const debug_preferences_1 = require("@theia/debug/lib/common/debug-preferences");
30
24
  const plugin_debug_adapter_contribution_1 = require("./plugin-debug-adapter-contribution");
31
25
  const plugin_debug_configuration_provider_1 = require("./plugin-debug-configuration-provider");
32
26
  const plugin_debug_session_contribution_registry_1 = require("./plugin-debug-session-contribution-registry");
@@ -34,14 +28,9 @@ const disposable_1 = require("@theia/core/lib/common/disposable");
34
28
  const plugin_debug_session_factory_1 = require("./plugin-debug-session-factory");
35
29
  const plugin_debug_service_1 = require("./plugin-debug-service");
36
30
  const hosted_plugin_1 = require("../../../hosted/browser/hosted-plugin");
37
- const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
38
31
  const console_session_manager_1 = require("@theia/console/lib/browser/console-session-manager");
39
32
  const debug_console_session_1 = require("@theia/debug/lib/browser/console/debug-console-session");
40
- const common_1 = require("@theia/core/lib/common");
41
- const debug_contribution_1 = require("@theia/debug/lib/browser/debug-contribution");
42
- const browser_3 = require("@theia/workspace/lib/browser");
43
33
  const debug_session_options_1 = require("@theia/debug/lib/browser/debug-session-options");
44
- const test_service_1 = require("@theia/test/lib/browser/test-service");
45
34
  function toOrigin(input) {
46
35
  return input.origin;
47
36
  }
@@ -60,24 +49,14 @@ class DebugMainImpl {
60
49
  this.configurationProviders = new Map();
61
50
  this.toDispose = new disposable_1.DisposableCollection();
62
51
  this.debugExt = rpc.getProxy(plugin_api_rpc_1.MAIN_RPC_CONTEXT.DEBUG_EXT);
52
+ this.container = container;
63
53
  this.sessionManager = container.get(debug_session_manager_1.DebugSessionManager);
64
- this.labelProvider = container.get(browser_1.LabelProvider);
65
- this.editorManager = container.get(browser_2.EditorManager);
66
54
  this.breakpointsManager = container.get(breakpoint_manager_1.BreakpointManager);
67
55
  this.consoleSessionManager = container.get(console_session_manager_1.ConsoleSessionManager);
68
56
  this.configurationManager = container.get(debug_configuration_manager_1.DebugConfigurationManager);
69
- this.terminalService = container.get(terminal_service_1.TerminalService);
70
- this.messages = container.get(message_service_protocol_1.MessageClient);
71
- this.outputChannelManager = container.get(output_channel_1.OutputChannelManager);
72
- this.debugPreferences = container.get(debug_preferences_1.DebugPreferences);
73
57
  this.pluginDebugService = container.get(plugin_debug_service_1.PluginDebugService);
74
58
  this.sessionContributionRegistrator = container.get(plugin_debug_session_contribution_registry_1.PluginDebugSessionContributionRegistry);
75
- this.debugContributionProvider = container.getNamed(common_1.ContributionProvider, debug_contribution_1.DebugContribution);
76
- this.fileService = container.get(file_service_1.FileService);
77
59
  this.pluginService = container.get(hosted_plugin_1.HostedPluginSupport);
78
- this.testService = container.get(test_service_1.TestService);
79
- this.workspaceService = container.get(browser_3.WorkspaceService);
80
- this.commandService = container.get(common_1.CommandService);
81
60
  const fireDidChangeBreakpoints = ({ added, removed, changed }) => {
82
61
  this.debugExt.$breakpointsDidChange(this.toTheiaPluginApiBreakpoints(added), removed.map(b => b.id), this.toTheiaPluginApiBreakpoints(changed));
83
62
  };
@@ -116,10 +95,10 @@ class DebugMainImpl {
116
95
  if (this.toDispose.disposed) {
117
96
  return;
118
97
  }
119
- const debugSessionFactory = new plugin_debug_session_factory_1.PluginDebugSessionFactory(this.terminalService, this.editorManager, this.breakpointsManager, this.labelProvider, this.messages, this.outputChannelManager, this.debugPreferences, async (sessionId) => {
98
+ const debugSessionFactory = new plugin_debug_session_factory_1.PluginDebugSessionFactory(async (sessionId) => {
120
99
  const connection = await this.connectionMain.ensureConnection(sessionId);
121
100
  return connection;
122
- }, this.fileService, terminalOptionsExt, this.debugContributionProvider, this.testService, this.workspaceService, this.commandService);
101
+ }, terminalOptionsExt, this.container);
123
102
  const toDispose = new disposable_1.DisposableCollection(disposable_1.Disposable.create(() => this.debuggerContributions.delete(debugType)));
124
103
  this.debuggerContributions.set(debugType, toDispose);
125
104
  toDispose.pushAll([
@@ -1 +1 @@
1
- {"version":3,"file":"debug-main.js","sourceRoot":"","sources":["../../../../src/main/browser/debug/debug-main.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,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;;;AAMhF,mEAKwC;AACxC,0FAAqF;AAErF,qDAAwD;AACxD,uDAA0D;AAC1D,+FAAmH;AACnH,8DAA2D;AAK3D,sGAAiG;AACjG,wFAAoF;AACpF,8FAAgF;AAChF,6EAAgF;AAChF,iFAA6E;AAC7E,2FAAqF;AACrF,+FAAyF;AACzF,6GAAiJ;AACjJ,kEAAqF;AACrF,iFAA2E;AAC3E,iEAA4D;AAC5D,yEAA4E;AAC5E,6EAAyE;AACzE,gGAA2F;AAC3F,kGAA6F;AAC7F,mDAA8E;AAC9E,oFAAgF;AAEhF,0DAAgE;AAChE,0FAAiH;AAGjH,uEAAmE;AAGnE,SAAS,QAAQ,CAA2B,KAAyB;IACjE,OAAO,KAAK,CAAC,MAAM,CAAC;AACxB,CAAC;AAED,SAAS,cAAc,CAA2B,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAA8C;IAC1H,OAAO;QAC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AM,IAAI,CAAC,CAAC,GAAG,CAAC;qBACnC;iBACJ;aACJ,CAAC;QACN,CAAC;QACD,OAAO;YACH,EAAE,EAAE,UAAU,CAAC,EAAE;YACjB,OAAO,EAAE,UAAU,CAAC,OAAO;YAC3B,YAAY,EAAE,UAAU,CAAC,GAAG,CAAC,IAAI;SACpC,CAAC;IACN,CAAC;CACJ;AArRD,sCAqRC"}
@@ -1,40 +1,15 @@
1
+ import { interfaces } from '@theia/core/shared/inversify';
1
2
  import { DefaultDebugSessionFactory } from '@theia/debug/lib/browser/debug-session-contribution';
2
- import { TerminalService } from '@theia/terminal/lib/browser/base/terminal-service';
3
- import { EditorManager } from '@theia/editor/lib/browser/editor-manager';
4
- import { BreakpointManager } from '@theia/debug/lib/browser/breakpoint/breakpoint-manager';
5
- import { LabelProvider } from '@theia/core/lib/browser/label-provider';
6
- import { MessageClient } from '@theia/core/lib/common/message-service-protocol';
7
- import { OutputChannelManager } from '@theia/output/lib/browser/output-channel';
8
- import { DebugPreferences } from '@theia/debug/lib/common/debug-preferences';
9
- import { DebugConfigurationSessionOptions, TestRunReference } from '@theia/debug/lib/browser/debug-session-options';
10
- import { DebugSession } from '@theia/debug/lib/browser/debug-session';
3
+ import { DebugConfigurationSessionOptions } from '@theia/debug/lib/browser/debug-session-options';
4
+ import { DebugSession, DebugSessionData } from '@theia/debug/lib/browser/debug-session';
11
5
  import { DebugSessionConnection } from '@theia/debug/lib/browser/debug-session-connection';
12
6
  import { TerminalWidgetOptions, TerminalWidget } from '@theia/terminal/lib/browser/base/terminal-widget';
13
7
  import { TerminalOptionsExt } from '../../../common/plugin-api-rpc';
14
- import { FileService } from '@theia/filesystem/lib/browser/file-service';
15
- import { DebugContribution } from '@theia/debug/lib/browser/debug-contribution';
16
- import { ContributionProvider } from '@theia/core/lib/common/contribution-provider';
17
- import { WorkspaceService } from '@theia/workspace/lib/browser';
18
8
  import { PluginChannel } from '../../../common/connection';
19
- import { TestService } from '@theia/test/lib/browser/test-service';
20
- import { DebugSessionManager } from '@theia/debug/lib/browser/debug-session-manager';
21
- import { CommandService } from '@theia/core';
9
+ export declare const PluginTerminalOptionsExt: unique symbol;
22
10
  export declare class PluginDebugSession extends DebugSession {
23
- readonly id: string;
24
- readonly options: DebugConfigurationSessionOptions;
25
- readonly parentSession: DebugSession | undefined;
26
- protected readonly connection: DebugSessionConnection;
27
- protected readonly terminalServer: TerminalService;
28
- protected readonly editorManager: EditorManager;
29
- protected readonly breakpoints: BreakpointManager;
30
- protected readonly labelProvider: LabelProvider;
31
- protected readonly messages: MessageClient;
32
- protected readonly fileService: FileService;
11
+ static createContainer(parent: interfaces.Container, data: DebugSessionData, connection: DebugSessionConnection, terminalOptionsExt?: TerminalOptionsExt): interfaces.Container;
33
12
  protected readonly terminalOptionsExt: TerminalOptionsExt | undefined;
34
- protected readonly debugContributionProvider: ContributionProvider<DebugContribution>;
35
- protected readonly workspaceService: WorkspaceService;
36
- protected readonly commandService: CommandService;
37
- constructor(id: string, options: DebugConfigurationSessionOptions, parentSession: DebugSession | undefined, testService: TestService, testRun: TestRunReference | undefined, sessionManager: DebugSessionManager, connection: DebugSessionConnection, terminalServer: TerminalService, editorManager: EditorManager, breakpoints: BreakpointManager, labelProvider: LabelProvider, messages: MessageClient, fileService: FileService, terminalOptionsExt: TerminalOptionsExt | undefined, debugContributionProvider: ContributionProvider<DebugContribution>, workspaceService: WorkspaceService, debugPreferences: DebugPreferences, commandService: CommandService);
38
13
  protected doCreateTerminal(terminalWidgetOptions: TerminalWidgetOptions): Promise<TerminalWidget>;
39
14
  }
40
15
  /**
@@ -42,21 +17,9 @@ export declare class PluginDebugSession extends DebugSession {
42
17
  * The main difference is to use a connection factory that creates [Channel](#Channel) over Rpc channel.
43
18
  */
44
19
  export declare class PluginDebugSessionFactory extends DefaultDebugSessionFactory {
45
- protected readonly terminalService: TerminalService;
46
- protected readonly editorManager: EditorManager;
47
- protected readonly breakpoints: BreakpointManager;
48
- protected readonly labelProvider: LabelProvider;
49
- protected readonly messages: MessageClient;
50
- protected readonly outputChannelManager: OutputChannelManager;
51
- protected readonly debugPreferences: DebugPreferences;
52
20
  protected readonly connectionFactory: (sessionId: string) => Promise<PluginChannel>;
53
- protected readonly fileService: FileService;
54
21
  protected readonly terminalOptionsExt: TerminalOptionsExt | undefined;
55
- protected readonly debugContributionProvider: ContributionProvider<DebugContribution>;
56
- protected readonly testService: TestService;
57
- protected readonly workspaceService: WorkspaceService;
58
- protected readonly commandService: CommandService;
59
- constructor(terminalService: TerminalService, editorManager: EditorManager, breakpoints: BreakpointManager, labelProvider: LabelProvider, messages: MessageClient, outputChannelManager: OutputChannelManager, debugPreferences: DebugPreferences, connectionFactory: (sessionId: string) => Promise<PluginChannel>, fileService: FileService, terminalOptionsExt: TerminalOptionsExt | undefined, debugContributionProvider: ContributionProvider<DebugContribution>, testService: TestService, workspaceService: WorkspaceService, commandService: CommandService);
60
- get(manager: DebugSessionManager, sessionId: string, options: DebugConfigurationSessionOptions, parentSession?: DebugSession): DebugSession;
22
+ constructor(connectionFactory: (sessionId: string) => Promise<PluginChannel>, terminalOptionsExt: TerminalOptionsExt | undefined, container: interfaces.Container);
23
+ createSession(sessionId: string, options: DebugConfigurationSessionOptions, parentSession?: DebugSession): DebugSession;
61
24
  }
62
25
  //# sourceMappingURL=plugin-debug-session-factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-debug-session-factory.d.ts","sourceRoot":"","sources":["../../../../src/main/browser/debug/plugin-debug-session-factory.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,M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uBAClC,cAAc,EAAE,cAAc;gBAb9B,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,iBAAiB,EAC9B,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,aAAa,EACvB,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAC3C,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,CAAC,EACvD,WAAW,EAAE,WAAW,EACjC,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,EACzC,yBAAyB,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,EAClE,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc;IAKrD,GAAG,CAAC,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,gCAAgC,EAAE,aAAa,CAAC,EAAE,YAAY,GAAG,YAAY;CA2BvJ"}
1
+ {"version":3,"file":"plugin-debug-session-factory.d.ts","sourceRoot":"","sources":["../../../../src/main/browser/debug/plugin-debug-session-factory.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAsB,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AACzG,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,eAAO,MAAM,wBAAwB,eAAqC,CAAC;AAE3E,qBACa,kBAAmB,SAAQ,YAAY;WAEhC,eAAe,CAC3B,MAAM,EAAE,UAAU,CAAC,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAE,sBAAsB,EAAE,kBAAkB,CAAC,EAAE,kBAAkB,GAClI,UAAU,CAAC,SAAS;IAQvB,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,CAAC;cAE7C,gBAAgB,CAAC,qBAAqB,EAAE,qBAAqB,GAAG,OAAO,CAAC,cAAc,CAAC;CAInH;AAED;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,0BAA0B;IAEjE,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,CAAC;IACnF,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,SAAS;gBADlD,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,CAAC,EAChE,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,EACrE,SAAS,EAAE,UAAU,CAAC,SAAS;IAK1B,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,gCAAgC,EAAE,aAAa,CAAC,EAAE,YAAY,GAAG,YAAY;CAanI"}
@@ -14,60 +14,54 @@
14
14
  //
15
15
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
16
  // *****************************************************************************
17
+ var PluginDebugSession_1;
17
18
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.PluginDebugSessionFactory = exports.PluginDebugSession = void 0;
19
+ exports.PluginDebugSessionFactory = exports.PluginDebugSession = exports.PluginTerminalOptionsExt = void 0;
20
+ const tslib_1 = require("tslib");
21
+ const inversify_1 = require("@theia/core/shared/inversify");
19
22
  const debug_session_contribution_1 = require("@theia/debug/lib/browser/debug-session-contribution");
20
23
  const debug_session_1 = require("@theia/debug/lib/browser/debug-session");
21
24
  const debug_session_connection_1 = require("@theia/debug/lib/browser/debug-session-connection");
22
- class PluginDebugSession extends debug_session_1.DebugSession {
23
- constructor(id, options, parentSession, testService, testRun, sessionManager, connection, terminalServer, editorManager, breakpoints, labelProvider, messages, fileService, terminalOptionsExt, debugContributionProvider, workspaceService, debugPreferences, commandService) {
24
- super(id, options, parentSession, testService, testRun, sessionManager, connection, terminalServer, editorManager, breakpoints, labelProvider, messages, fileService, debugContributionProvider, workspaceService, debugPreferences, commandService);
25
- this.id = id;
26
- this.options = options;
27
- this.parentSession = parentSession;
28
- this.connection = connection;
29
- this.terminalServer = terminalServer;
30
- this.editorManager = editorManager;
31
- this.breakpoints = breakpoints;
32
- this.labelProvider = labelProvider;
33
- this.messages = messages;
34
- this.fileService = fileService;
35
- this.terminalOptionsExt = terminalOptionsExt;
36
- this.debugContributionProvider = debugContributionProvider;
37
- this.workspaceService = workspaceService;
38
- this.commandService = commandService;
25
+ exports.PluginTerminalOptionsExt = Symbol('PluginTerminalOptionsExt');
26
+ let PluginDebugSession = PluginDebugSession_1 = class PluginDebugSession extends debug_session_1.DebugSession {
27
+ static createContainer(parent, data, connection, terminalOptionsExt) {
28
+ const child = debug_session_1.DebugSession.createContainer(parent, data, connection);
29
+ child.rebind(debug_session_1.DebugSession).to(PluginDebugSession_1);
30
+ child.bind(exports.PluginTerminalOptionsExt).toConstantValue(terminalOptionsExt);
31
+ return child;
39
32
  }
40
33
  async doCreateTerminal(terminalWidgetOptions) {
41
34
  terminalWidgetOptions = Object.assign({}, terminalWidgetOptions, this.terminalOptionsExt);
42
35
  return super.doCreateTerminal(terminalWidgetOptions);
43
36
  }
44
- }
37
+ };
45
38
  exports.PluginDebugSession = PluginDebugSession;
39
+ tslib_1.__decorate([
40
+ (0, inversify_1.inject)(exports.PluginTerminalOptionsExt),
41
+ tslib_1.__metadata("design:type", Object)
42
+ ], PluginDebugSession.prototype, "terminalOptionsExt", void 0);
43
+ exports.PluginDebugSession = PluginDebugSession = PluginDebugSession_1 = tslib_1.__decorate([
44
+ (0, inversify_1.injectable)()
45
+ ], PluginDebugSession);
46
46
  /**
47
47
  * Session factory for a client debug session that communicates with debug adapter contributed as plugin.
48
48
  * The main difference is to use a connection factory that creates [Channel](#Channel) over Rpc channel.
49
49
  */
50
50
  class PluginDebugSessionFactory extends debug_session_contribution_1.DefaultDebugSessionFactory {
51
- constructor(terminalService, editorManager, breakpoints, labelProvider, messages, outputChannelManager, debugPreferences, connectionFactory, fileService, terminalOptionsExt, debugContributionProvider, testService, workspaceService, commandService) {
52
- super();
53
- this.terminalService = terminalService;
54
- this.editorManager = editorManager;
55
- this.breakpoints = breakpoints;
56
- this.labelProvider = labelProvider;
57
- this.messages = messages;
58
- this.outputChannelManager = outputChannelManager;
59
- this.debugPreferences = debugPreferences;
51
+ constructor(connectionFactory, terminalOptionsExt, container) {
52
+ super(container);
60
53
  this.connectionFactory = connectionFactory;
61
- this.fileService = fileService;
62
54
  this.terminalOptionsExt = terminalOptionsExt;
63
- this.debugContributionProvider = debugContributionProvider;
64
- this.testService = testService;
65
- this.workspaceService = workspaceService;
66
- this.commandService = commandService;
67
55
  }
68
- get(manager, sessionId, options, parentSession) {
56
+ createSession(sessionId, options, parentSession) {
69
57
  const connection = new debug_session_connection_1.DebugSessionConnection(sessionId, this.connectionFactory, this.getTraceOutputChannel());
70
- return new PluginDebugSession(sessionId, options, parentSession, this.testService, options.testRun, manager, connection, this.terminalService, this.editorManager, this.breakpoints, this.labelProvider, this.messages, this.fileService, this.terminalOptionsExt, this.debugContributionProvider, this.workspaceService, this.debugPreferences, this.commandService);
58
+ const data = {
59
+ id: sessionId,
60
+ options,
61
+ parentSession,
62
+ };
63
+ const child = PluginDebugSession.createContainer(this.container, data, connection, this.terminalOptionsExt);
64
+ return child.get(debug_session_1.DebugSession);
71
65
  }
72
66
  }
73
67
  exports.PluginDebugSessionFactory = PluginDebugSessionFactory;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-debug-session-factory.js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,EACT,IAAI,CAAC,iBAAiB,EACtB,IAAI,CAAC,qBAAqB,EAAE,CAAC,CAAC;QAElC,OAAO,IAAI,kBAAkB,CACzB,SAAS,EACT,OAAO,EACP,aAAa,EACb,IAAI,CAAC,WAAW,EAChB,OAAO,CAAC,OAAO,EACf,OAAO,EACP,UAAU,EACV,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,kBAAkB,EACvB,IAAI,CAAC,yBAAyB,EAC9B,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,cAAc,CACtB,CAAC;IACN,CAAC;CACJ;AA/CD,8DA+CC"}
1
+ {"version":3,"file":"plugin-debug-session-factory.js","sourceRoot":"","sources":["../../../../src/main/browser/debug/plugin-debug-session-factory.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,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,4DAA8E;AAC9E,oGAAiG;AAEjG,0EAAwF;AACxF,gGAA2F;AAK9E,QAAA,wBAAwB,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC;AAGpE,IAAM,kBAAkB,0BAAxB,MAAM,kBAAmB,SAAQ,4BAAY;IAEhD,MAAM,CAAU,eAAe,CAC3B,MAA4B,EAAE,IAAsB,EAAE,UAAkC,EAAE,kBAAuC;QAEjI,MAAM,KAAK,GAAG,4BAAY,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;QACrE,KAAK,CAAC,MAAM,CAAC,4BAAY,CAAC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json CHANGED
@@ -1,38 +1,38 @@
1
1
  {
2
2
  "name": "@theia/plugin-ext",
3
- "version": "1.73.0-next.24+ed85d4937",
3
+ "version": "1.73.0-next.26+d6f45631a",
4
4
  "description": "Theia - Plugin Extension",
5
5
  "main": "lib/common/index.js",
6
6
  "typings": "lib/common/index.d.ts",
7
7
  "dependencies": {
8
- "@theia/ai-mcp": "1.73.0-next.24+ed85d4937",
9
- "@theia/bulk-edit": "1.73.0-next.24+ed85d4937",
10
- "@theia/callhierarchy": "1.73.0-next.24+ed85d4937",
11
- "@theia/console": "1.73.0-next.24+ed85d4937",
12
- "@theia/core": "1.73.0-next.24+ed85d4937",
13
- "@theia/debug": "1.73.0-next.24+ed85d4937",
14
- "@theia/editor": "1.73.0-next.24+ed85d4937",
15
- "@theia/editor-preview": "1.73.0-next.24+ed85d4937",
16
- "@theia/file-search": "1.73.0-next.24+ed85d4937",
17
- "@theia/filesystem": "1.73.0-next.24+ed85d4937",
18
- "@theia/markers": "1.73.0-next.24+ed85d4937",
19
- "@theia/messages": "1.73.0-next.24+ed85d4937",
20
- "@theia/monaco": "1.73.0-next.24+ed85d4937",
8
+ "@theia/ai-mcp": "1.73.0-next.26+d6f45631a",
9
+ "@theia/bulk-edit": "1.73.0-next.26+d6f45631a",
10
+ "@theia/callhierarchy": "1.73.0-next.26+d6f45631a",
11
+ "@theia/console": "1.73.0-next.26+d6f45631a",
12
+ "@theia/core": "1.73.0-next.26+d6f45631a",
13
+ "@theia/debug": "1.73.0-next.26+d6f45631a",
14
+ "@theia/editor": "1.73.0-next.26+d6f45631a",
15
+ "@theia/editor-preview": "1.73.0-next.26+d6f45631a",
16
+ "@theia/file-search": "1.73.0-next.26+d6f45631a",
17
+ "@theia/filesystem": "1.73.0-next.26+d6f45631a",
18
+ "@theia/markers": "1.73.0-next.26+d6f45631a",
19
+ "@theia/messages": "1.73.0-next.26+d6f45631a",
20
+ "@theia/monaco": "1.73.0-next.26+d6f45631a",
21
21
  "@theia/monaco-editor-core": "1.108.201",
22
- "@theia/navigator": "1.73.0-next.24+ed85d4937",
23
- "@theia/notebook": "1.73.0-next.24+ed85d4937",
24
- "@theia/output": "1.73.0-next.24+ed85d4937",
25
- "@theia/plugin": "1.73.0-next.24+ed85d4937",
26
- "@theia/preferences": "1.73.0-next.24+ed85d4937",
27
- "@theia/scm": "1.73.0-next.24+ed85d4937",
28
- "@theia/search-in-workspace": "1.73.0-next.24+ed85d4937",
29
- "@theia/task": "1.73.0-next.24+ed85d4937",
30
- "@theia/terminal": "1.73.0-next.24+ed85d4937",
31
- "@theia/test": "1.73.0-next.24+ed85d4937",
32
- "@theia/timeline": "1.73.0-next.24+ed85d4937",
33
- "@theia/typehierarchy": "1.73.0-next.24+ed85d4937",
34
- "@theia/variable-resolver": "1.73.0-next.24+ed85d4937",
35
- "@theia/workspace": "1.73.0-next.24+ed85d4937",
22
+ "@theia/navigator": "1.73.0-next.26+d6f45631a",
23
+ "@theia/notebook": "1.73.0-next.26+d6f45631a",
24
+ "@theia/output": "1.73.0-next.26+d6f45631a",
25
+ "@theia/plugin": "1.73.0-next.26+d6f45631a",
26
+ "@theia/preferences": "1.73.0-next.26+d6f45631a",
27
+ "@theia/scm": "1.73.0-next.26+d6f45631a",
28
+ "@theia/search-in-workspace": "1.73.0-next.26+d6f45631a",
29
+ "@theia/task": "1.73.0-next.26+d6f45631a",
30
+ "@theia/terminal": "1.73.0-next.26+d6f45631a",
31
+ "@theia/test": "1.73.0-next.26+d6f45631a",
32
+ "@theia/timeline": "1.73.0-next.26+d6f45631a",
33
+ "@theia/typehierarchy": "1.73.0-next.26+d6f45631a",
34
+ "@theia/variable-resolver": "1.73.0-next.26+d6f45631a",
35
+ "@theia/workspace": "1.73.0-next.26+d6f45631a",
36
36
  "@types/mime": "^2.0.3",
37
37
  "@vscode/debugprotocol": "^1.68.0",
38
38
  "@vscode/proxy-agent": "^0.13.2",
@@ -97,5 +97,5 @@
97
97
  "nyc": {
98
98
  "extends": "../../configs/nyc.json"
99
99
  },
100
- "gitHead": "ed85d49379279b6472543df174249476e1619bac"
100
+ "gitHead": "d6f45631a893ad1944a87db5aaf4bc94c64b1c60"
101
101
  }
@@ -26,8 +26,6 @@ import {
26
26
  } from '../../../common/plugin-api-rpc';
27
27
  import { DebugSessionManager } from '@theia/debug/lib/browser/debug-session-manager';
28
28
  import { Breakpoint, DebugStackFrameDTO, DebugThreadDTO, WorkspaceFolder } from '../../../common/plugin-api-rpc-model';
29
- import { LabelProvider } from '@theia/core/lib/browser';
30
- import { EditorManager } from '@theia/editor/lib/browser';
31
29
  import { BreakpointManager, BreakpointsChangeEvent } from '@theia/debug/lib/browser/breakpoint/breakpoint-manager';
32
30
  import { URI as Uri } from '@theia/core/shared/vscode-uri';
33
31
  import { SourceBreakpoint, FunctionBreakpoint, BaseBreakpoint } from '@theia/debug/lib/browser/breakpoint/breakpoint-marker';
@@ -35,10 +33,6 @@ import { DebugConfiguration, DebugSessionOptions } from '@theia/debug/lib/common
35
33
  import { DebuggerDescription } from '@theia/debug/lib/common/debug-service';
36
34
  import { DebugProtocol } from '@vscode/debugprotocol';
37
35
  import { DebugConfigurationManager } from '@theia/debug/lib/browser/debug-configuration-manager';
38
- import { TerminalService } from '@theia/terminal/lib/browser/base/terminal-service';
39
- import { MessageClient } from '@theia/core/lib/common/message-service-protocol';
40
- import { OutputChannelManager } from '@theia/output/lib/browser/output-channel';
41
- import { DebugPreferences } from '@theia/debug/lib/common/debug-preferences';
42
36
  import { PluginDebugAdapterContribution } from './plugin-debug-adapter-contribution';
43
37
  import { PluginDebugConfigurationProvider } from './plugin-debug-configuration-provider';
44
38
  import { PluginDebugSessionContributionRegistrator, PluginDebugSessionContributionRegistry } from './plugin-debug-session-contribution-registry';
@@ -46,17 +40,12 @@ import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposa
46
40
  import { PluginDebugSessionFactory } from './plugin-debug-session-factory';
47
41
  import { PluginDebugService } from './plugin-debug-service';
48
42
  import { HostedPluginSupport } from '../../../hosted/browser/hosted-plugin';
49
- import { FileService } from '@theia/filesystem/lib/browser/file-service';
50
43
  import { ConsoleSessionManager } from '@theia/console/lib/browser/console-session-manager';
51
44
  import { DebugConsoleSession } from '@theia/debug/lib/browser/console/debug-console-session';
52
- import { CommandService, ContributionProvider } from '@theia/core/lib/common';
53
- import { DebugContribution } from '@theia/debug/lib/browser/debug-contribution';
54
45
  import { ConnectionImpl } from '../../../common/connection';
55
- import { WorkspaceService } from '@theia/workspace/lib/browser';
56
46
  import { DebugSessionOptions as TheiaDebugSessionOptions } from '@theia/debug/lib/browser/debug-session-options';
57
47
  import { DebugStackFrame } from '@theia/debug/lib/browser/model/debug-stack-frame';
58
48
  import { DebugThread } from '@theia/debug/lib/browser/model/debug-thread';
59
- import { TestService } from '@theia/test/lib/browser/test-service';
60
49
  import { DebugBreakpoint } from '@theia/debug/lib/browser/model/debug-breakpoint';
61
50
 
62
51
  function toOrigin<T extends BaseBreakpoint>(input: DebugBreakpoint<T>): T {
@@ -75,24 +64,14 @@ function eventToOrigins<T extends BaseBreakpoint>({ added, removed, changed, uri
75
64
  export class DebugMainImpl implements DebugMain, Disposable {
76
65
  private readonly debugExt: DebugExt;
77
66
 
67
+ private readonly container: interfaces.Container;
78
68
  private readonly sessionManager: DebugSessionManager;
79
- private readonly labelProvider: LabelProvider;
80
- private readonly editorManager: EditorManager;
81
69
  private readonly breakpointsManager: BreakpointManager;
82
70
  private readonly consoleSessionManager: ConsoleSessionManager;
83
71
  private readonly configurationManager: DebugConfigurationManager;
84
- private readonly terminalService: TerminalService;
85
- private readonly messages: MessageClient;
86
- private readonly outputChannelManager: OutputChannelManager;
87
- private readonly debugPreferences: DebugPreferences;
88
72
  private readonly sessionContributionRegistrator: PluginDebugSessionContributionRegistrator;
89
73
  private readonly pluginDebugService: PluginDebugService;
90
- private readonly fileService: FileService;
91
74
  private readonly pluginService: HostedPluginSupport;
92
- private readonly debugContributionProvider: ContributionProvider<DebugContribution>;
93
- private readonly testService: TestService;
94
- private readonly workspaceService: WorkspaceService;
95
- private readonly commandService: CommandService;
96
75
 
97
76
  private readonly debuggerContributions = new Map<string, DisposableCollection>();
98
77
  private readonly configurationProviders = new Map<number, DisposableCollection>();
@@ -100,24 +79,14 @@ export class DebugMainImpl implements DebugMain, Disposable {
100
79
 
101
80
  constructor(rpc: RPCProtocol, readonly connectionMain: ConnectionImpl, container: interfaces.Container) {
102
81
  this.debugExt = rpc.getProxy(MAIN_RPC_CONTEXT.DEBUG_EXT);
82
+ this.container = container;
103
83
  this.sessionManager = container.get(DebugSessionManager);
104
- this.labelProvider = container.get(LabelProvider);
105
- this.editorManager = container.get(EditorManager);
106
84
  this.breakpointsManager = container.get(BreakpointManager);
107
85
  this.consoleSessionManager = container.get(ConsoleSessionManager);
108
86
  this.configurationManager = container.get(DebugConfigurationManager);
109
- this.terminalService = container.get(TerminalService);
110
- this.messages = container.get(MessageClient);
111
- this.outputChannelManager = container.get(OutputChannelManager);
112
- this.debugPreferences = container.get(DebugPreferences);
113
87
  this.pluginDebugService = container.get(PluginDebugService);
114
88
  this.sessionContributionRegistrator = container.get(PluginDebugSessionContributionRegistry);
115
- this.debugContributionProvider = container.getNamed(ContributionProvider, DebugContribution);
116
- this.fileService = container.get(FileService);
117
89
  this.pluginService = container.get(HostedPluginSupport);
118
- this.testService = container.get(TestService);
119
- this.workspaceService = container.get(WorkspaceService);
120
- this.commandService = container.get(CommandService);
121
90
 
122
91
  const fireDidChangeBreakpoints = ({ added, removed, changed }: BreakpointsChangeEvent<SourceBreakpoint | FunctionBreakpoint>) => {
123
92
  this.debugExt.$breakpointsDidChange(
@@ -168,23 +137,12 @@ export class DebugMainImpl implements DebugMain, Disposable {
168
137
  }
169
138
 
170
139
  const debugSessionFactory = new PluginDebugSessionFactory(
171
- this.terminalService,
172
- this.editorManager,
173
- this.breakpointsManager,
174
- this.labelProvider,
175
- this.messages,
176
- this.outputChannelManager,
177
- this.debugPreferences,
178
140
  async (sessionId: string) => {
179
141
  const connection = await this.connectionMain.ensureConnection(sessionId);
180
142
  return connection;
181
143
  },
182
- this.fileService,
183
144
  terminalOptionsExt,
184
- this.debugContributionProvider,
185
- this.testService,
186
- this.workspaceService,
187
- this.commandService,
145
+ this.container,
188
146
  );
189
147
 
190
148
  const toDispose = new DisposableCollection(
@@ -14,53 +14,32 @@
14
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
+ import { injectable, inject, interfaces } from '@theia/core/shared/inversify';
17
18
  import { DefaultDebugSessionFactory } from '@theia/debug/lib/browser/debug-session-contribution';
18
- import { TerminalService } from '@theia/terminal/lib/browser/base/terminal-service';
19
- import { EditorManager } from '@theia/editor/lib/browser/editor-manager';
20
- import { BreakpointManager } from '@theia/debug/lib/browser/breakpoint/breakpoint-manager';
21
- import { LabelProvider } from '@theia/core/lib/browser/label-provider';
22
- import { MessageClient } from '@theia/core/lib/common/message-service-protocol';
23
- import { OutputChannelManager } from '@theia/output/lib/browser/output-channel';
24
- import { DebugPreferences } from '@theia/debug/lib/common/debug-preferences';
25
- import { DebugConfigurationSessionOptions, TestRunReference } from '@theia/debug/lib/browser/debug-session-options';
26
- import { DebugSession } from '@theia/debug/lib/browser/debug-session';
19
+ import { DebugConfigurationSessionOptions } from '@theia/debug/lib/browser/debug-session-options';
20
+ import { DebugSession, DebugSessionData } from '@theia/debug/lib/browser/debug-session';
27
21
  import { DebugSessionConnection } from '@theia/debug/lib/browser/debug-session-connection';
28
22
  import { TerminalWidgetOptions, TerminalWidget } from '@theia/terminal/lib/browser/base/terminal-widget';
29
23
  import { TerminalOptionsExt } from '../../../common/plugin-api-rpc';
30
- import { FileService } from '@theia/filesystem/lib/browser/file-service';
31
- import { DebugContribution } from '@theia/debug/lib/browser/debug-contribution';
32
- import { ContributionProvider } from '@theia/core/lib/common/contribution-provider';
33
- import { WorkspaceService } from '@theia/workspace/lib/browser';
34
24
  import { PluginChannel } from '../../../common/connection';
35
- import { TestService } from '@theia/test/lib/browser/test-service';
36
- import { DebugSessionManager } from '@theia/debug/lib/browser/debug-session-manager';
37
- import { CommandService } from '@theia/core';
38
25
 
26
+ export const PluginTerminalOptionsExt = Symbol('PluginTerminalOptionsExt');
27
+
28
+ @injectable()
39
29
  export class PluginDebugSession extends DebugSession {
40
- constructor(
41
- override readonly id: string,
42
- override readonly options: DebugConfigurationSessionOptions,
43
- override readonly parentSession: DebugSession | undefined,
44
- testService: TestService,
45
- testRun: TestRunReference | undefined,
46
- sessionManager: DebugSessionManager,
47
- protected override readonly connection: DebugSessionConnection,
48
- protected override readonly terminalServer: TerminalService,
49
- protected override readonly editorManager: EditorManager,
50
- protected override readonly breakpoints: BreakpointManager,
51
- protected override readonly labelProvider: LabelProvider,
52
- protected override readonly messages: MessageClient,
53
- protected override readonly fileService: FileService,
54
- protected readonly terminalOptionsExt: TerminalOptionsExt | undefined,
55
- protected override readonly debugContributionProvider: ContributionProvider<DebugContribution>,
56
- protected override readonly workspaceService: WorkspaceService,
57
- debugPreferences: DebugPreferences,
58
- protected override readonly commandService: CommandService) {
59
- super(id, options, parentSession, testService, testRun, sessionManager, connection, terminalServer, editorManager, breakpoints,
60
- labelProvider, messages, fileService, debugContributionProvider,
61
- workspaceService, debugPreferences, commandService);
30
+
31
+ static override createContainer(
32
+ parent: interfaces.Container, data: DebugSessionData, connection: DebugSessionConnection, terminalOptionsExt?: TerminalOptionsExt
33
+ ): interfaces.Container {
34
+ const child = DebugSession.createContainer(parent, data, connection);
35
+ child.rebind(DebugSession).to(PluginDebugSession);
36
+ child.bind(PluginTerminalOptionsExt).toConstantValue(terminalOptionsExt);
37
+ return child;
62
38
  }
63
39
 
40
+ @inject(PluginTerminalOptionsExt)
41
+ protected readonly terminalOptionsExt: TerminalOptionsExt | undefined;
42
+
64
43
  protected override async doCreateTerminal(terminalWidgetOptions: TerminalWidgetOptions): Promise<TerminalWidget> {
65
44
  terminalWidgetOptions = Object.assign({}, terminalWidgetOptions, this.terminalOptionsExt);
66
45
  return super.doCreateTerminal(terminalWidgetOptions);
@@ -73,49 +52,24 @@ export class PluginDebugSession extends DebugSession {
73
52
  */
74
53
  export class PluginDebugSessionFactory extends DefaultDebugSessionFactory {
75
54
  constructor(
76
- protected override readonly terminalService: TerminalService,
77
- protected override readonly editorManager: EditorManager,
78
- protected override readonly breakpoints: BreakpointManager,
79
- protected override readonly labelProvider: LabelProvider,
80
- protected override readonly messages: MessageClient,
81
- protected override readonly outputChannelManager: OutputChannelManager,
82
- protected override readonly debugPreferences: DebugPreferences,
83
55
  protected readonly connectionFactory: (sessionId: string) => Promise<PluginChannel>,
84
- protected override readonly fileService: FileService,
85
56
  protected readonly terminalOptionsExt: TerminalOptionsExt | undefined,
86
- protected override readonly debugContributionProvider: ContributionProvider<DebugContribution>,
87
- protected override readonly testService: TestService,
88
- protected override readonly workspaceService: WorkspaceService,
89
- protected override readonly commandService: CommandService,
57
+ container: interfaces.Container,
90
58
  ) {
91
- super();
59
+ super(container);
92
60
  }
93
61
 
94
- override get(manager: DebugSessionManager, sessionId: string, options: DebugConfigurationSessionOptions, parentSession?: DebugSession): DebugSession {
62
+ override createSession(sessionId: string, options: DebugConfigurationSessionOptions, parentSession?: DebugSession): DebugSession {
95
63
  const connection = new DebugSessionConnection(
96
64
  sessionId,
97
65
  this.connectionFactory,
98
66
  this.getTraceOutputChannel());
99
-
100
- return new PluginDebugSession(
101
- sessionId,
67
+ const data: DebugSessionData = {
68
+ id: sessionId,
102
69
  options,
103
70
  parentSession,
104
- this.testService,
105
- options.testRun,
106
- manager,
107
- connection,
108
- this.terminalService,
109
- this.editorManager,
110
- this.breakpoints,
111
- this.labelProvider,
112
- this.messages,
113
- this.fileService,
114
- this.terminalOptionsExt,
115
- this.debugContributionProvider,
116
- this.workspaceService,
117
- this.debugPreferences,
118
- this.commandService
119
- );
71
+ };
72
+ const child = PluginDebugSession.createContainer(this.container, data, connection, this.terminalOptionsExt);
73
+ return child.get(DebugSession);
120
74
  }
121
75
  }