Fix #63127 - Disable smart commit message box#63829
Fix #63127 - Disable smart commit message box#63829skprabhanjan wants to merge 1 commit intomicrosoft:masterfrom
Conversation
There was a problem hiding this comment.
I'm not a member of vscode so I'm just giving my two cents here :)
Is not showing the enable smart commit warning a regression? New users might not know smart commit exists if a prompt is not shown.
Maybe there could be a third option for the warning message which updates the new setting you added : an option "Never".
That option, as already mentionned, would give the possibility for the user to not see that warning again yet still allow for controls by settings if desired.
Also, it would feel weird to go activate a setting (git.enableSmartCommitWarning) that is a warning that would then never be shown again because that warning simply activates the git.enableSmartCommit setting (at this point simply turning on smart commit would be faster, in other words).
Edit : Someone else took the work (#63743) despite you saying you wanted to work on it, and his implementation is basically my review in a nutshell. I prefer your setting name personally, but @joaomoreno will decide on this, I have no authority to decide here :)
| "type": "boolean", | ||
| "scope": "resource", | ||
| "description": "%config.enableSmartCommitWarning%", | ||
| "default": false |
|
@V-ed , Thanks for the review :)
This has been my confusion from the start, why do we need two separate settings(As stated "turning on smart commit would be faster" ) and |
|
Hi, |
Actually, there would be a valid reason that comes to my mind on why it would still be useful to have as a setting : syncing settings to multiple / new machines. I know that such warning could be remembered internally, but will that internal state be remembered when switching machines? I'm guessing not - therefore, settings can be easily shared and used as the state of the warning. I think it's already how VSCode's other types of "Do not show again" notification messages stores their state (in the settings), but I'm not entirely sure, so don't quote me on that. |
@mIkhail-zaretsky , That's fine :)
@V-ed I understand this point but when you add an option like "Never" and click on it (As discussed before) and later enable this |
|
@skprabhanjan I think the name of the command is already self-explanatory (which is also why I said in my first comment that I preferred your setting name than @mIkhail-zaretsky's implementation) : It enables the warning again, warning that is shown only when smart commit is not enabled. I see it simple as that. It's kind of like "I pressed Never but changed my mind, maybe someday I'd like to enable smart commit, keep warning me" Yes, it would mean this setting wouldn't do anything if smart commit is enabled - I don't think this is an issue however. Also, just to make sure we're on the same page, pressing "Never" would mean that your new setting would be set to |
@V-ed , Okay I am clear now :) |
|
@joaomoreno , Any updates on this ? |
|
@skprabhanjan Sorry for the delay. I'm currently sitting on a big backlog, so things are taking its time, but I'll get to it. Feel free to reopen. |
|
@joaomoreno , Sorry for that and I understand it now , Thanks for getting back. |
|
@joaomoreno , any updates ? |
|
Went with #63743 Thanks anyway! 🙏 |
@joaomoreno , Added "enableSmartCommitWarning" Setting to fix #63127 .
Please review this and let me know if there are any changes :)