You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my scenario I'm working with Gradle projects, but the context should also apply to Maven and normal project.
After opening project it would be nice if .gradle/** and build/** were automatically excluded from fileWatch by this extension, for Maven I believe it's target/**. Whether to exclude bin/** is up to you, but for me it makes no sense to watch it too, since IDE should be aware of its own folders?
Obviously these folders are configurable so mby this should be also some kind of config based on type of project import?
The point of this is to prevent unnecessary autoBuild triggers and similar, which may even result in permanent refresh loop like this
Environment
note: env should be irrelevant for this issue
Operating System: Win 11 pro, latest update
JDK version: 21
Visual Studio Code version:
Java extension version:
Steps To Reproduce
Open Gradle project
Notify any file in eg. build
See extension being notified of file change
Current Result
Entire project being file watched, causing unnecessary eclipse-jdtls trigger
Expected Result
Don't watch files that aren't "source" relevant
Additional Informations
May provide my .vscode/settings.json if needed
The text was updated successfully, but these errors were encountered:
It doesn't watch the project output folders: target/, bin/, build/**, ... @Nightenom@Mobius0526 Could you attach a project example reproducing the error.
Feel free to close for now, because upstream library changed with updates and i cant no longer replicate there.
However my point is that you can have **/*.java in folders like /build/ etc which are generated using build system and that might trigger endless loop of refreshing. So I think it might be good to automatically exclude build target directories. (I made sure I don't have that file as classpath source)
In my scenario I'm working with Gradle projects, but the context should also apply to Maven and normal project.
After opening project it would be nice if
.gradle/**
andbuild/**
were automatically excluded from fileWatch by this extension, for Maven I believe it'starget/**
. Whether to excludebin/**
is up to you, but for me it makes no sense to watch it too, since IDE should be aware of its own folders?Obviously these folders are configurable so mby this should be also some kind of config based on type of project import?
The point of this is to prevent unnecessary autoBuild triggers and similar, which may even result in permanent refresh loop like this
Environment
Steps To Reproduce
Current Result
Entire project being file watched, causing unnecessary eclipse-jdtls trigger
Expected Result
Don't watch files that aren't "source" relevant
Additional Informations
May provide my
.vscode/settings.json
if neededThe text was updated successfully, but these errors were encountered: