microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.97k stars 29.19k forks source link

Improve missing Git user/name behavior #114049

Open eamodio opened 3 years ago

eamodio commented 3 years ago

@CoreTechnologyAG @GuilhermeAbacherli I know how to resolve it, the reason why I opened this issue is because i think it can be done better. @eamodio could you take a Look at our suggestions? They are as following: Suggestion 1: Make an option in the settings to enable/disable auto-detect Suggestion 2: Make it a Warning instead of an error (Like git does as well) Suggestion 3: Give us the option to set user.name and user.email directly from VS Code (By @mrwensveen and @abby-d )

Originally posted by @michvllni in https://github.com/microsoft/vscode/issues/112294#issuecomment-747276997

eamodio commented 3 years ago

Suggestion 1: Make an option in the settings to enable/disable auto-detect

Addressed in #114433

NotWearingPants commented 3 years ago

I suggest having the error/warning popup/notification also have a button which takes you to the existing setting to disable the warning.

jahead commented 3 years ago

Why not give a Toast in vscode allows the user to set the local config - it would just pull from the global .gitconfig and sets a local one. - if they want to use a custom one, they can set it manually. I'd love to get that a shot - sounds fun.

Also I don't understand why this is even a problem with the new trusted workspace flow? I trust the workspace. these settings should be then the default.

vamshisiram commented 7 months ago

I am getting this issue now in in Vscode, my vscode version is 1.87.1.

please tell me how to fix it.

![Uploading image.png…]()