New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Auto-stage [enableSmartCommit] #80

bcanseco opened this Issue Oct 1, 2018 · 2 comments


None yet
2 participants

bcanseco commented Oct 1, 2018


If this setting is on and you have no files staged, the extension should assume you want all files staged and stage them for you. I'm assuming it would be git add -A -- .

New to TypeScript, but I'd be happy to submit a PR if you think this is a good idea. I'm thinking we'd need to read from the config and execute the additional command if nothing is staged before line 184.

async function commit(cwd: string, message: string): Promise<void> {
channel.appendLine(`About to commit '${message}'`);
try {
const result = await execa('git', ['commit', '-m', message], {cwd});


This comment has been minimized.


KnisterPeter commented Oct 2, 2018

@bcanseco I think that could be a good addition. Your PR is very much welcome. 😃


This comment has been minimized.


KnisterPeter commented Oct 9, 2018

Released as 0.7.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment