Skip to content

Unhelpful alert dialog when encountering pre-commit errors #250999

Open
@mrleemurray

Description

@mrleemurray

Does this issue occur when all extensions are disabled?: Yes

Version: 1.101.0-insider (Universal)
Commit: f832c6b
Date: 2025-06-06T20:43:03.362Z
Electron: 35.5.1
ElectronBuildId: 11708675
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Darwin arm64 24.5.0

When I am working with CSS Variables I regularly encounter this error message when committing changes:

Image

This took a long time to figure out initially - there was no indication from the message content that the problem stemmed from a precommit error:

Image

This was confirmed when successfully making the same commit using the --no-verify flag.

My expectation was that the error dialog would contain this information, or at least instructions on how to debug & where to look. Here is a mockup:

Image

Steps to Reproduce:

  1. Update some CSS value to use a variable that doesn't exist in vscode/build/lib/stylelint/vscode-known-variables.json
  2. Attempt to commit the change

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggitGIT issuesuxUser experience issues

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions