Page MenuHomePhabricator

[vscode] Add `.vscode` directory to `.gitignore` EXCEPT `extensions.json`
ClosedPublic

Authored by atul on Mar 16 2022, 12:30 PM.
Tags
None
Referenced Files
F3404913: D3442.diff
Tue, Dec 3, 3:03 PM
Unknown Object (File)
Thu, Nov 7, 5:33 AM
Unknown Object (File)
Tue, Nov 5, 11:24 AM
Unknown Object (File)
Tue, Nov 5, 11:24 AM
Unknown Object (File)
Oct 27 2024, 5:29 AM
Unknown Object (File)
Oct 27 2024, 5:29 AM
Unknown Object (File)
Oct 27 2024, 5:29 AM
Unknown Object (File)
Oct 27 2024, 5:27 AM

Details

Summary

We generally want to ignore the .vscode directory. However, we decided extensions.json is something we want to include in the repository... and so we should exclude it from being ignored.

(Working off of the example here: https://stackoverflow.com/a/16318111)

Test Plan
  1. Add a random file to the .vscode directory
  2. Make sure the file doesn't show up in the staging area on git status
  3. Make a random change to .vscode/extensions.json
  4. Make sure that the random change does show up in staging area on git status

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Mar 16 2022, 12:31 PM
atul added 1 blocking reviewer(s): ashoat.

Looking at the stackoverflow post, LGTM

This revision is now accepted and ready to land.Mar 16 2022, 8:53 PM