Skip to content

Commit

Permalink
Merge pull request #6131 from microsoft/master
Browse files Browse the repository at this point in the history
Fix build and debug active file with no .vscode folder on Linux/Mac. …
  • Loading branch information
sean-mcmanus authored Sep 13, 2020
2 parents 58d071c + 0820b5e commit 9525fc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Extension/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,8 @@ export function writeFileText(filePath: string, content: string, encoding: strin
const folders: string[] = filePath.split(path.sep).slice(0, -1);
if (folders.length) {
// create folder path if it doesn't exist
folders.reduce((last, folder) => {
const folderPath: string = last ? last + path.sep + folder : folder;
folders.reduce((previous, folder) => {
const folderPath: string = previous + path.sep + folder;
if (!fs.existsSync(folderPath)) {
fs.mkdirSync(folderPath);
}
Expand Down

0 comments on commit 9525fc7

Please sign in to comment.