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

Add .vscode/ folder to .gitignore #6020

Merged
merged 2 commits into from
Jun 25, 2018
Merged

Conversation

alanbato
Copy link
Member

Problem

Workspace-specific configuration on Visual Studio Code creates a .vscode/ folder to store the settings.json to store said configuration. Since there were already some editor-specific ignores in gitignore, I figured I might as well include VSCode's.

Solution

I added .vscode/ to the .gitignore file.

Result

Now VSCode users won't see a dirty workspace when using project-defined configs :)

Copy link
Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

We're not doing a great job of this in general, but:

To anchor something to the root of the repository, you should prefix it with /. Would you mind doing that for this one (assuming the .vscode directory will only be created at the root).

We'll do a separate cleanup pass for the other ones.

Changing `.vscode/` to `/.vscode/`
@alanbato
Copy link
Member Author

Done 👍

@wisechengyi
Copy link
Contributor

wisechengyi commented Jun 25, 2018

@alanbato independently, it might be a good idea to document how to work on Pants with vscode if you get a chance :)

@kwlzn kwlzn merged commit 12711f2 into pantsbuild:master Jun 25, 2018
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.

None yet

4 participants