How to avoid Visual Studio Code warning: “[myfile].java is a non-project file, only syntax errors are reported”

Try cleaning the Java language server workspace:

  1. Cmd + Shift + P (Ctrl + Shift + P on Windows) to show the command palette
  2. Choose “Java: Clean the Java language server workspace”
  3. Restart and Delete

It just worked for me.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)