I am new to VSCode.
I used the following to get all classes updated as per Org:
sfdx force:source:retrieve -x src/package.xml
After that I made some changes in a class in the deveoper console and saved it.
Then I made some changes in the same class in VSCode without retrieving changes from the Org and saved it.
The class get saved successfully and overwrites my changes made in the developer console without showing any issue.
How to prevent VSCode to save changes in the Org if the local copy is not in sync with Org?