Repository navigation
Replies: 1 comment
|
Hi! You could try using For example, in {
"java.import.exclusions": [
"**/src"
]
}This setting tells the Java extension to exclude matching folders from project import. However, there's an important distinction: excluding a folder from project import does not necessarily prevent every diagnostic when you open an individual Java file. Since your project contains symlinks pointing to the same source directory, I'd also recommend testing the configuration with only the intended Gradle projects included in the workspace. After changing the setting, try running Java: Clean Java Language Server Workspace from the Command Palette and restarting the language server. Does that stop the duplicate diagnostics in your setup? |
Uh oh!
There was an error while loading. Please reload this page.
Hi!
I have a project like this:
When I click the parent
src, vscode-java always tries to diagnose it, reporting serval false errors.I'm wondering whether it is possible to just ignore
./srcin code server, even if it is open in the editor.Thank you!
All reactions