I have a java project with the following directory structure (as required by Gradle\'s \'java\' plugin, assuming all defaults).
\'java\'
projectRootDir
To get things right, add the root folder of you project in workspace. To do this in VS Code, go to File -> "Add folder to workspace" and then select the root folder (source folder).