Sarrus1 / sourcepawn-studio

VSCode extension for SourcePawn scripting
https://sarrus1.github.io/sourcepawn-studio/
MIT License
143 stars 22 forks source link

Suppressing spcomp warnings #417

Open RB490 opened 1 month ago

RB490 commented 1 month ago

What do you want to see added to the extension?

A setting like:

"SourcePawnLanguageServer.diagnostics.suppressedDiagnostics": [ "205" ]

How would it help you?

Hide warnings/errors of choice such as

image [{ "resource": "/C:/Users/willi/projects/l4d-server-campaign/sourcemod/plugins/Features - SQLite Bans 2.0/scripting/Features - SQLite Bans 2.0.sp", "owner": "sourcepawn", "code": "205", "severity": 4, "message": "redundant code: constant expression is zero", "source": "spcomp", "startLineNumber": 356, "startColumn": 1, "endLineNumber": 356, "endColumn": 1001 }]

How often would you use this feature?

In most of my plugins