From e62811c0cd57568b5c6f4433ba6c5ae0fca9d5df Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Thu, 5 Mar 2020 12:35:26 -0800 Subject: [PATCH] Make sure logDir is created --- src/client/process.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/process.ts b/src/client/process.ts index a13390b..590a9dd 100644 --- a/src/client/process.ts +++ b/src/client/process.ts @@ -62,6 +62,11 @@ export class PowerShellProcess { powerShellArgs.push("-ExecutionPolicy", "Bypass"); } + // Make sure the log directory exists. PowerShell Editor Services needs this at the moment. + if (!fs.existsSync(logDir)) { + fs.mkdirSync(logDir); + } + powerShellArgs.push( "-NoProfile", "-NonInteractive",