From 203f58bc169afc5a731557633d25722bed038bd1 Mon Sep 17 00:00:00 2001 From: Karthik Nadig <kanadig@microsoft.com> Date: Thu, 14 Sep 2023 11:54:59 -0700 Subject: [PATCH] Fix bug in rawprocess where stdinStr was not passed (#21993) --- src/client/common/process/rawProcessApis.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/common/process/rawProcessApis.ts b/src/client/common/process/rawProcessApis.ts index 6f3e40d68736..23c2f3253bb1 100644 --- a/src/client/common/process/rawProcessApis.ts +++ b/src/client/common/process/rawProcessApis.ts @@ -257,6 +257,10 @@ export function execObservable( subscriber.error(ex); internalDisposables.forEach((d) => d.dispose()); }); + if (options.stdinStr !== undefined) { + proc.stdin?.write(options.stdinStr); + proc.stdin?.end(); + } }); return {