@@ -22,7 +22,7 @@ import { LabelProvider } from '@theia/core/lib/browser/label-provider';
22
22
import { MessageClient } from '@theia/core/lib/common/message-service-protocol' ;
23
23
import { OutputChannelManager } from '@theia/output/lib/browser/output-channel' ;
24
24
import { DebugPreferences } from '@theia/debug/lib/browser/debug-preferences' ;
25
- import { DebugConfigurationSessionOptions } from '@theia/debug/lib/browser/debug-session-options' ;
25
+ import { DebugConfigurationSessionOptions , TestRunReference } from '@theia/debug/lib/browser/debug-session-options' ;
26
26
import { DebugSession } from '@theia/debug/lib/browser/debug-session' ;
27
27
import { DebugSessionConnection } from '@theia/debug/lib/browser/debug-session-connection' ;
28
28
import { TerminalWidgetOptions , TerminalWidget } from '@theia/terminal/lib/browser/base/terminal-widget' ;
@@ -32,12 +32,17 @@ import { DebugContribution } from '@theia/debug/lib/browser/debug-contribution';
32
32
import { ContributionProvider } from '@theia/core/lib/common/contribution-provider' ;
33
33
import { WorkspaceService } from '@theia/workspace/lib/browser' ;
34
34
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' ;
35
37
36
38
export class PluginDebugSession extends DebugSession {
37
39
constructor (
38
40
override readonly id : string ,
39
41
override readonly options : DebugConfigurationSessionOptions ,
40
42
override readonly parentSession : DebugSession | undefined ,
43
+ testService : TestService ,
44
+ testRun : TestRunReference | undefined ,
45
+ sessionManager : DebugSessionManager ,
41
46
protected override readonly connection : DebugSessionConnection ,
42
47
protected override readonly terminalServer : TerminalService ,
43
48
protected override readonly editorManager : EditorManager ,
@@ -48,7 +53,8 @@ export class PluginDebugSession extends DebugSession {
48
53
protected readonly terminalOptionsExt : TerminalOptionsExt | undefined ,
49
54
protected override readonly debugContributionProvider : ContributionProvider < DebugContribution > ,
50
55
protected override readonly workspaceService : WorkspaceService ) {
51
- super ( id , options , parentSession , connection , terminalServer , editorManager , breakpoints , labelProvider , messages , fileService , debugContributionProvider ,
56
+ super ( id , options , parentSession , testService , testRun , sessionManager , connection , terminalServer , editorManager , breakpoints ,
57
+ labelProvider , messages , fileService , debugContributionProvider ,
52
58
workspaceService ) ;
53
59
}
54
60
@@ -75,12 +81,13 @@ export class PluginDebugSessionFactory extends DefaultDebugSessionFactory {
75
81
protected override readonly fileService : FileService ,
76
82
protected readonly terminalOptionsExt : TerminalOptionsExt | undefined ,
77
83
protected override readonly debugContributionProvider : ContributionProvider < DebugContribution > ,
84
+ protected override readonly testService : TestService ,
78
85
protected override readonly workspaceService : WorkspaceService ,
79
86
) {
80
87
super ( ) ;
81
88
}
82
89
83
- override get ( sessionId : string , options : DebugConfigurationSessionOptions , parentSession ?: DebugSession ) : DebugSession {
90
+ override get ( manager : DebugSessionManager , sessionId : string , options : DebugConfigurationSessionOptions , parentSession ?: DebugSession ) : DebugSession {
84
91
const connection = new DebugSessionConnection (
85
92
sessionId ,
86
93
this . connectionFactory ,
@@ -90,6 +97,9 @@ export class PluginDebugSessionFactory extends DefaultDebugSessionFactory {
90
97
sessionId ,
91
98
options ,
92
99
parentSession ,
100
+ this . testService ,
101
+ options . testRun ,
102
+ manager ,
93
103
connection ,
94
104
this . terminalService ,
95
105
this . editorManager ,
0 commit comments