JavaScript files were ungrouped from TypeScript files after an update, can I group them again?
I've been working on a TypeScript app using File Watchers to automatically generate JavaScript and map files. Today I updated WebStorm from 7.0.2 to 7.0.3 and after the update all my files were ungrouped, so instead of having one entry in the project explorer for each TS/JS/map file group, it's been split into 3 separate individual files. Is there any way to fix this other than deleting and recreating the TypeScript files?
Please sign in to leave a comment.
Looks like making a minor edit to the TypeScript file to force the file watcher to run works. Bit annoying though.
The grouping relations are established when running watchers and stored in caches, so they are destroyed on invalidating caches/version update/etc.. You have to run watchers for all files to get the nesting back in such cases. Note that you can recompile the whole project/selected folder/file using 'Run file watchers' command: just select a file/folder, hit Ctrl+Shift+A -> Ctrl+Shift+A to enable non-menu actions -> type "run file " -> choose Run File Watchers.... You can assign custom shortcut for "Plugins | File Watchers | Run File Watchers" action in Settings | Keymap to make this procedure less complicated.
Note also that there is a ticket (http://youtrack.jetbrains.com/issue/WEB-7635) that requires maintaining grouping according to watcher settings, so that the relationships are auto-established based on watcher settings, without a need to rebuild everything. We just haven't yet found a way to make this less time consuming...