Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create '.vscode' directory before creating 'tasks.json' #6065

Merged
merged 8 commits into from
Sep 1, 2020

Conversation

elahehrashedi
Copy link
Contributor

@elahehrashedi elahehrashedi commented Sep 1, 2020

bugfix: #4280
this bug fix is merged with this code as well (there was a conflict): Adds a JSON parsing library for tasks.json #5954

In both of these below cases, the .vscode folder will be created if it doesn't exist (before creating tasks.json file):
a) running "Run and Debug"
or
b) running "C/C++ build and debug active file"

tested on VsCode v 1.48.2

@@ -633,6 +640,18 @@ export function readFileText(filePath: string, encoding: string = "utf8"): Promi

/** Writes content to a text file */
export function writeFileText(filePath: string, content: string, encoding: string = "utf8"): Promise<void> {
const folders = filePath.split(path.sep).slice(0, -1);
Copy link
Contributor Author

@elahehrashedi elahehrashedi Sep 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

creating folders in the path

Extension/src/common.ts Outdated Show resolved Hide resolved
@elahehrashedi elahehrashedi merged commit e8bc0e8 into master Sep 1, 2020
@elahehrashedi elahehrashedi deleted the elrashed/4280 branch September 2, 2020 18:06
@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants