soates/Auto-Import

VS Code freezes after generating files with Webpack

Opened this issue · 0 comments

Hi,
thanks for this awesome plugin.

I'm facing a problem where VS Code freezes and my Mac complete is unable to do something. Restarting laptop is most of the time the only way to fix.

Code Version: Version 1.28.1 (1.28.1)
Auto Import: 1.5.3

On start of Webpack we generated about 80 Models vom a Swagger Ui endpoint. Before we generate the new ones we delete all old files in that folder. That is were everything is crashing.

It seems a little bit like Auto Import is trying to index the old files, then we delete them an generate new Models and some where between Auto Import is crashing.

A quick fix would to change the Files To Scan in the settings, but if we change the structure of the project i would have to change it in every project. Or is there another way to fix it?

Cheers,
Leon