I am new to salesforce DX. When I am working with Visual Studio Code, after installing the recommended extensions like Salesforce Extension Pack and Salesforce CLI Inegration, the IDE is able to give hint for the sObject.
However, the wrong object assignment like
Bot_Command__c a = new Bot_Command__c();
a.Pattern__c = 1.0;
Pattern__c supposed to be text but it is assigned with a Decimal value but there is no detection of wrong assignment in Visual Studio Code. Would you please advise if there is any command from Salesforce CLI or the command in Visual Studio Code to compile these kinds of error before I pushing the code to Scratch org?
Thanks