Skip to content

Always reload Externs#2071

Merged
paf31 merged 1 commit intopurescript:0.9from
kritzcreek:psc-ide-watcher-improvements
May 1, 2016
Merged

Always reload Externs#2071
paf31 merged 1 commit intopurescript:0.9from
kritzcreek:psc-ide-watcher-improvements

Conversation

@kritzcreek
Copy link
Copy Markdown
Member

@kritzcreek kritzcreek commented Apr 30, 2016

  • The current usage of psc-ide involves loading all modules anyway, so
    we don't worry about loading previously unloaded modules.
  • Don't attempt to reload deleted files

This could lead to surprising behaviour when you're managing the loaded modules manually. Since all the editor plugins have switched to just loading all the modules upfront anyway I don't think it's too big of a problem.

This change will cause psc-ide to reload all externs files that get added or changed inside the output folder, thus picking up newly added sourcefiles (through bower or by creating a new module) when they get compiled for the first time.

* The current usage of psc-ide involves loading all modules anyway, so
  we don't worry about loading previously unloaded modules.

* Don't attempt to reload deleted files
@paf31
Copy link
Copy Markdown
Contributor

paf31 commented May 1, 2016

👍 LGTM

@paf31 paf31 merged commit dd9ebef into purescript:0.9 May 1, 2016
@paf31
Copy link
Copy Markdown
Contributor

paf31 commented May 1, 2016

Thanks!

@kritzcreek kritzcreek deleted the psc-ide-watcher-improvements branch June 27, 2016 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants