Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should you commit .vscode/symbols file to source control?

This popular answers says you should commit the entire .vscode folder into source control ... so one of my team members did just that.

However, I'm now finding that a file .vscode/symbols.json is destined to be committed. This file is a huge one-line json file, and I forsee impossible merge conflicts if I commit it.

What's the take on this?

like image 874
ripper234 Avatar asked Aug 16 '18 12:08

ripper234


1 Answers

gitignore.io recommends ignoring everything but a few files:

# Created by https://www.gitignore.io/api/visualstudiocode

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# End of https://www.gitignore.io/api/visualstudiocode

Joe gives the same recommendation (I think both tools take their ignores from GitHub's gitignore repository). I think it's safe to say that .vscode/symbols.json shouldn't be committed.

like image 98
Chris Avatar answered Oct 23 '22 15:10

Chris