-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude /.idea/workspace.xml #4325
Comments
Can't you just add this file to your |
@matthewp what i mean was that astro watches the I would like to exclude this file from the watcher since it is not relevant for rerendering or hotloading. |
@ivoba got it, does the fact that it is watching this file cause any sort of problems? |
@matthewp not really. It just might cause some unnecessary rebuilds. |
Maybe we should not be watching files/folders that start with |
We should still keep watching files that start with |
Ah, good point. @ivoba you can configure this in your astro.config.mjs like this: import { defineConfig } from 'astro/config';
export default defineConfig({
vite: {
server: {
watch: {
ignored: ['.idea/workspace.xml']
}
}
}
} Going to close for now, if enough people run into this being a problem for them we might add it as a default in the future. |
Thanks that was what i was looking for. |
import { defineConfig } from 'astro/config';
This should fix it |
You may as well cover everything in the .idea folder: vite: {
server: {
watch: {
ignored: ['**/.idea/**']
}
}
} |
@rshurts This worked perfectly for me, thanks. ...while it is curious that just |
I would say - everything that is inside the |
It would be nice if this solution were more discoverable. I had to try several different search queries to find this one issue. Then I went back to the config docs to see if I'd missed something, but Also, for some reason, just adding a path like For anyone else running into the same problem, this ended up working (no idea why it's necessary):
Obviously, that will probably mess things up if you ever have a |
What version of
astro
are you using?1.0.5
Are you using an SSR adapter? If so, which one?
no
What package manager are you using?
npm
What operating system are you using?
Linux
Describe the Bug
When working with IntelliJ Ultimate the watcher keeps updating workspace.xml.
Can this be excluded as this is a metafile of IntelliJ and not relevant for the project?
Link to Minimal Reproducible Example
https://stackblitz/none
Participation
The text was updated successfully, but these errors were encountered: