@@ -144,10 +144,10 @@ export const terminalSendSignalCommand = async (accessor: ServicesAccessor, args
144
144
}
145
145
146
146
let signal = isObject ( args ) && 'signal' in args ? toOptionalString ( args . signal ) : undefined ;
147
-
147
+
148
148
if ( ! signal ) {
149
149
const quickInputService = accessor . get ( IQuickInputService ) ;
150
-
150
+
151
151
const signalOptions : QuickPickItem [ ] = [
152
152
{ label : 'SIGINT' , description : 'Interrupt process (Ctrl+C)' } ,
153
153
{ label : 'SIGTERM' , description : 'Terminate process gracefully' } ,
@@ -165,27 +165,26 @@ export const terminalSendSignalCommand = async (accessor: ServicesAccessor, args
165
165
const selected = await quickInputService . pick ( signalOptions , {
166
166
placeHolder : localize ( 'selectSignal' , 'Select signal to send to terminal process' )
167
167
} ) ;
168
-
168
+
169
169
if ( ! selected ) {
170
170
return ;
171
171
}
172
-
172
+
173
173
if ( selected . label === localize ( 'manualSignal' , 'Manually enter signal' ) ) {
174
174
const inputSignal = await quickInputService . input ( {
175
175
prompt : localize ( 'enterSignal' , 'Enter signal name (e.g., SIGTERM, SIGKILL)' ) ,
176
- placeHolder : 'SIGTERM'
177
176
} ) ;
178
-
177
+
179
178
if ( ! inputSignal ) {
180
179
return ;
181
180
}
182
-
181
+
183
182
signal = inputSignal ;
184
183
} else {
185
184
signal = selected . label ;
186
185
}
187
186
}
188
-
187
+
189
188
instance . sendSignal ( signal ) ;
190
189
} ;
191
190
@@ -1032,7 +1031,7 @@ export function registerTerminalActions() {
1032
1031
registerTerminalAction ( {
1033
1032
id : TerminalCommandId . SendSignal ,
1034
1033
title : terminalStrings . sendSignal ,
1035
- f1 : true ,
1034
+ f1 : ! isWindows ,
1036
1035
metadata : {
1037
1036
description : terminalStrings . sendSignal . value ,
1038
1037
args : [ {
0 commit comments