Workaround:
Instead of using the remote repository's shared network path (\\ComputerName...), give it a drive letter (Z:...) with File Explorer's "Map network drive.."
The error squiggles, etc. go missing even if the project is on the local machine but the network path is used.
Frank