microsoft / microsoft/vscode-cpptools

`enum enum`

Open
#14,246 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Feature: Hover (Quick Info) Language Service Visual Studio
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Type: Bug

enum A: signed char {
	A_A,
};

int main() {
	A_A;
}
Image

This doesn't reproduce specifically when assigning to a variable in a declaration.

Extension version: 1.31.0
VS Code version: Code 1.109.5 (072586267e68ece9a47aa43f8c108e0dcbf44622, 2026-02-19T19:43:32.382Z)
OS version: Linux x64 6.8.0-101-generic
Modes:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied C snippet in VS Code with the C/C++ extension version 1.31.0, then compare the diagnostic for the standalone enum expression with the variable-declaration case mentioned in the issue. Trace the extension's handling of enum expressions; the issue is done when the incorrect behavior is corrected without regressing the declaration case.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.