Skip to content

Commit button is active with empty commit message, causing Git failure without user feedback #250951

Open
@abhibyahut

Description

@abhibyahut

In the Source Control panel, the “Commit” (✓) button remains active even when no commit message is provided. Clicking it triggers a Git commit that fails (as Git requires a non-empty message), but no clear error is shown in the UI. This can confuse users and appears to silently fail.

Expected Behavior:

Either the commit button should be disabled when no message is entered,
or

A warning or error should be shown when Git rejects the commit.

Steps to Reproduce:

Make a change to any tracked file.

Open the Source Control tab in VS Code.

Leave the commit message box empty.

Click the ✓ “Commit” button.

Observed Result:

Nothing appears to happen.

Commit silently fails.

No user-friendly message shown.

Expected Result:

Commit button should be disabled OR

Show a clear warning when Git rejects the commit.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions