microsoft / microsoft/vscode-cpptools
`enum enum`
Nobody has claimed this yet.
- 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;
}
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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