i encountered same problem, make new workspace folder and it will solve the issue
Open workspace/folder and select the file from vscode explorer, don't open the file directly.

Type in Command palette of VS Code "Enable Error Squiggles".. This worked for me!!