microsoft / microsoft/vscode-cpptools
Add the ability to disable certain linter errors
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Type: LanguageService
Many people use g++ (MinGW on Windows), and I am also like this. g++ extends some C99 features in C++, such as array lengths that can be defined with variables which is considered a error by VS Code.

auto a = new int[l]; in standard C++.
auto a[l]; in g++ and C99.
I know that defining with a const is a standard C++ convention, and it is also common sense. But in some cases (such as algorithms), it is convenient to use variable definitions.
I think it's a good idea to let me remove some of the error.(because VS Code is a. editor that doesn't know how the compiler handles certain "errors") Add a point to disable the static error prompt in source, in file or in global setting. Just like in user settings, we can list all static error types.
We can also make g++ specification. This specification remove some features which are not supported in VS Code. The default is the original specification. But when I use g++ in tasks.json, it can automatically enable. It seems that there is a similar error specification function in VS.
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 reviewing the LanguageService diagnostics described in the issue and the examples of standard C++ versus g++ behavior. Determine how source, file, and global settings would relate to disabling static errors or selecting a g++ specification; done means the requested configuration behavior is defined and supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100