File tree Expand file tree Collapse file tree 6 files changed +33
-0
lines changed Expand file tree Collapse file tree 6 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,9 @@ export class PtyHostService extends Disposable implements IPtyHostService {
248
248
input ( id : number , data : string ) : Promise < void > {
249
249
return this . _proxy . input ( id , data ) ;
250
250
}
251
+ sendSignal ( id : number , signal : string ) : Promise < void > {
252
+ return this . _proxy . sendSignal ( id , signal ) ;
253
+ }
251
254
processBinary ( id : number , data : string ) : Promise < void > {
252
255
return this . _proxy . processBinary ( id , data ) ;
253
256
}
Original file line number Diff line number Diff line change @@ -860,6 +860,12 @@ class PersistentTerminalProcess extends Disposable {
860
860
}
861
861
return this . _terminalProcess . input ( data ) ;
862
862
}
863
+ sendSignal ( signal : string ) : void {
864
+ if ( this . _inReplay ) {
865
+ return ;
866
+ }
867
+ return this . _terminalProcess . sendSignal ( signal ) ;
868
+ }
863
869
writeBinary ( data : string ) : Promise < void > {
864
870
return this . _terminalProcess . processBinary ( data ) ;
865
871
}
Original file line number Diff line number Diff line change @@ -65,6 +65,16 @@ export class RemotePty extends BasePty implements ITerminalChildProcess {
65
65
} ) ;
66
66
}
67
67
68
+ sendSignal ( signal : string ) : void {
69
+ if ( this . _inReplay ) {
70
+ return ;
71
+ }
72
+
73
+ this . _startBarrier . wait ( ) . then ( _ => {
74
+ this . _remoteTerminalChannel . sendSignal ( this . id , signal ) ;
75
+ } ) ;
76
+ }
77
+
68
78
processBinary ( e : string ) : Promise < void > {
69
79
return this . _remoteTerminalChannel . processBinary ( this . id , e ) ;
70
80
}
Original file line number Diff line number Diff line change @@ -120,6 +120,10 @@ export class TerminalProcessExtHostProxy extends Disposable implements ITerminal
120
120
this . _onInput . fire ( data ) ;
121
121
}
122
122
123
+ sendSignal ( signal : string ) : void {
124
+ // No-op - Extension terminals don't have direct process access
125
+ }
126
+
123
127
resize ( cols : number , rows : number ) : void {
124
128
this . _onResize . fire ( { cols, rows } ) ;
125
129
}
Original file line number Diff line number Diff line change @@ -45,6 +45,13 @@ export class LocalPty extends BasePty implements ITerminalChildProcess {
45
45
this . _proxy . input ( this . id , data ) ;
46
46
}
47
47
48
+ sendSignal ( signal : string ) : void {
49
+ if ( this . _inReplay ) {
50
+ return ;
51
+ }
52
+ this . _proxy . sendSignal ( this . id , signal ) ;
53
+ }
54
+
48
55
resize ( cols : number , rows : number ) : void {
49
56
if ( this . _inReplay || this . _lastDimensions . cols === cols && this . _lastDimensions . rows === rows ) {
50
57
return ;
Original file line number Diff line number Diff line change @@ -118,6 +118,9 @@ class EmbedderTerminalProcess extends Disposable implements ITerminalChildProces
118
118
input ( ) : void {
119
119
// not supported
120
120
}
121
+ sendSignal ( ) : void {
122
+ // not supported
123
+ }
121
124
async processBinary ( ) : Promise < void > {
122
125
// not supported
123
126
}
You can’t perform that action at this time.
0 commit comments