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

Update tasks.json #6274

Closed
wants to merge 1 commit into from
Closed

Conversation

savvar9991
Copy link

I wrapped the ${workspaceFolder} and ${HOME} variables in quotes. This helps to avoid issues if there are spaces in the paths (e.g., C:/Users/John Doe/).
The presentation and group settings were duplicated in all tasks. You could refactor this into a reusable block for better maintainability, but in this example, I kept them in each task for clarity.
I changed the rm -rf ~/.gradle/caches and rm -rf ~/.gradle commands to use "${HOME}" instead of ~. Using ${HOME} is safer and more portable in shell scripts, and it ensures that the command will work on all systems (even if ~ is not properly expanded).
I added quotes to paths with potential spaces or special characters (e.g., cd "${workspaceFolder}/android"). This ensures that the shell command works even if the folder path contains spaces or other special characters.

I wrapped the ${workspaceFolder} and ${HOME} variables in quotes. This helps to avoid issues if there are spaces in the paths (e.g., C:/Users/John Doe/).
The presentation and group settings were duplicated in all tasks. You could refactor this into a reusable block for better maintainability, but in this example, I kept them in each task for clarity.
I changed the rm -rf ~/.gradle/caches and rm -rf ~/.gradle commands to use "${HOME}" instead of ~. Using ${HOME} is safer and more portable in shell scripts, and it ensures that the command will work on all systems (even if ~ is not properly expanded).
I added quotes to paths with potential spaces or special characters (e.g., cd "${workspaceFolder}/android"). This ensures that the shell command works even if the folder path contains spaces or other special characters.
@brunobar79
Copy link
Member

Thanks for the contribution but the current VSCODE config works fine for us at this moment.

@brunobar79 brunobar79 closed this Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants