Skip to content

Commit

Permalink
Merge pull request #87 from coc-extensions/make-sure-logdir-is-created
Browse files Browse the repository at this point in the history
Make sure logDir is created
  • Loading branch information
Yatao Li authored Mar 6, 2020
2 parents 5287260 + e62811c commit 660421b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 660421b

Please sign in to comment.