PowerShell: Visual Studio Code - changes in modules are not reflected

Viewed 420

I am using Visual Studio Code with PowerShell plugin for editing and debuging PowerShell scripts. As my script got too large to handle I have extraced some parts into several psm1 modules. All the files resides in the same direcory - root of the VSC workspace.

If I run the script for the first time using Ctrl+F5 all the files are compiled and the script is executed. But if I then make any modifications in the imported module files (*.psm1) these changes are not reflected and the old versions of the modules are used instead.

The only thing that helps is closing and reopening VSC. How can I configure VSC in order to rebuild/recompile changed (or all) modules in my workspace before run/debug?

1 Answers
Related