I have discovered that I can optimize my TypeScript compilation process by utilizing the --strict
flag, which enhances type checking and more. Typically, I compile my TypeScript code directly from Visual Studio Code with a specific task that displays the compilation output in the Output panel for easy error tracking (refer to the screenshot below).
Despite Visual Studio Code performing some sort of preliminary TypeScript compilation, highlighting basic syntax errors in the Problems panel, it doesn't seem to display any strict results there. (It's worth mentioning that my primary project involves C# ASP.NET with a TypeScript aspect).
Is there a method to set up Visual Studio Code to conduct pre-compilation of TypeScript using the --strict
option for displaying errors in the Problems panel?