laravel-idea / plugin

Laravel Idea plugin for PhpStorm
https://laravel-idea.com/
178 stars 7 forks source link

[Feature Request]: Faster ide.json reloading #960

Open MichelJonkman opened 8 months ago

MichelJonkman commented 8 months ago

Feature Description

I'm using Hybridly and it uses the Vite dev server to update the ide.json file with view names. I'm also thinking about doing the same thing for certain features in the future. But PhpStorm updates it very slowly unless I open the file to manually reload it.

Would it be possible to activate a file watcher for ide.json files and update it faster? Potentially by manually marking it.

Thank you very much!

adelf commented 8 months ago

The internal file watcher is already established. It should be reloaded right after PhpStorm fetched its update. However, it doesn't work for ignored directories, like vendor. So, the problem is that PhpStorm doesn't know that the file was updated, right?

MichelJonkman commented 8 months ago

I guess that would be the issue, do you mean ignored like in .gitignore or marked as excluded? The file is ignored by git currently but I had the issue before I did that as well. Apart from that it's in a folder called .hybridly which is not marked or ignored itself.

adelf commented 8 months ago

I meant Excluded. Sorry. I think this too dynamic file should be in git)

The problem here is that PhpStorm can't feel the file was updated. Let me do some research, maybe I'll find a solution.