Skip to content

Commit ef1ae95

Browse files
committed
Support null in auto replies setting
Fixes microsoft#141666
1 parent 947f2b5 commit ef1ae95

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,11 @@ const terminalConfiguration: IConfigurationNode = {
508508
markdownDescription: localize('terminal.integrated.autoReplies', "A set of messages that when encountered in the terminal will be automatically responded to. Provided the message is specific enough, this can help automate away common responses. Note that the message includes escape sequences so the reply might not happen with styled text. Each reply can only happen once every second.\n\nTo unset a default key, set the value to null."),
509509
type: 'object',
510510
additionalProperties: {
511-
type: 'string',
512-
description: localize('terminal.integrated.autoReplies.reply', "The reply to send to the process.")
511+
oneOf: [{
512+
type: 'string',
513+
description: localize('terminal.integrated.autoReplies.reply', "The reply to send to the process.")
514+
},
515+
{ type: 'null' }]
513516
},
514517
default: {
515518
'Terminate batch job (Y/N)': 'Y\r'

0 commit comments

Comments
 (0)