I am currently using VS code develop my game with Unity.
Every time I open the editor, there is a 99+ Unnecessary using of directive which makes me unhappy. Since there are lots of dependency of 3rd party plugins, I'am not sure weather I can remove them. So I want to have some method to disable them.
I tried something like:
"csharp.lint.unnecessaryUsingDirective": "ignore"
But obviously, it doesn't work. So I wish there would be something I can do to hide or disable this warning.
enable": false //... } in our settings. json file to disable TypeScript and JavaScript warnings by setting typescript. validate.
From 'Workspace Settings' into search field type 'javascript'. From left sidebar look for Extensions -> ESLint. Click 'ESLint' and from right look for 'ESLint: Enable'. Uncheck 'ESLint Enable'.
I think this issue has already been addressed in the latest version of Omnisharp — but because we are forced to use the legacy C# extension for Unity, the solution remains unclear.
We should be able to add something like this to an omnisharp.json
file in our project root:
{
"IgnoredCodeIssues": [
"^Unnecessary using directive.$"
]
}
But presently, this throws an error:
System.FormatException: Unsupported JSON token 'StartArray' was found.
Path 'IgnoredCodeIssues', line 2 position 27.
I have opened a new issue specifically for the legacy C# extension, in hopes that it gets some feedback from the Omnisharp-VSCode team.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With