Skip to content

Terminal auto replies: Differing default values #141456

@bamurtaugh

Description

@bamurtaugh

Testing #141341

I tried several different configurations of the setting; I outlined 3 different ones here.

  • Config 1: Set:
"terminal.integrated.autoReplies": {
        "Terminate batch job (Y/N)": "Y\r"
      }
  • Run a script, ctrl+c
  • Batch job terminated without further user interaction, output is: Terminate batch job (Y/N)? Y and then returns
  • Config 2: Change setting to empty: "Terminate batch job (Y/N)": "" , run and terminate script again
  • Asked in terminal Terminate batch job (Y/N)?, need to manually type an answer
  • Config 3: Comment out setting line: run and terminate script again
"terminal.integrated.autoReplies": {
        //"Terminate batch job (Y/N)": ""
      }
  • ❓: Batch job terminated without further interaction, behaving the same way as "Y\r"

I thought config 2 and config 3 would behave the same: either both defaulting to "Y\r" behavior or both defaulting to requiring the user to manually enter Y or N. Is it expected they'd behave differently?

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insidersterminal-inputRelating to typing in the terminal not doing the right thing, IMEs not working, etc.verifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions