Skip to content

Commit 9525fc7

Browse files
authored
Merge pull request #6131 from microsoft/master
Fix build and debug active file with no .vscode folder on Linux/Mac. …
2 parents 58d071c + 0820b5e commit 9525fc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/src/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,8 @@ export function writeFileText(filePath: string, content: string, encoding: strin
676676
const folders: string[] = filePath.split(path.sep).slice(0, -1);
677677
if (folders.length) {
678678
// create folder path if it doesn't exist
679-
folders.reduce((last, folder) => {
680-
const folderPath: string = last ? last + path.sep + folder : folder;
679+
folders.reduce((previous, folder) => {
680+
const folderPath: string = previous + path.sep + folder;
681681
if (!fs.existsSync(folderPath)) {
682682
fs.mkdirSync(folderPath);
683683
}

0 commit comments

Comments
 (0)