Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99218

How do I set active go build tags for static analysis in VSCode?

$
0
0

VSCode uses a number of tools to do static code analysis and intellisense...

However, I haven't seen how to configure what build-tags should be enabled for those analysis?

e.g. I may have two files - one that is compiled // +build debug and its compliment compiled // +build !debug to enable some debug-only code and some production-time code or constants or so on...

but VSCode just flags all sorts of stuff as broken because it tries to analyze with both of these files present in the working namespace at once.

Surely there is a way to say "editor build tag" : [ "debug" ] or similar, so that the static analysis and linting tools aren't throwing bogus warnings / problem lists.


Viewing all articles
Browse latest Browse all 99218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>