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

故事扮演 提交于 2020-01-03 08:40:13

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/51876769/should-you-commit-vscode-symbols-file-to-source-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!