Hi, @riknoll and @jwunderl
I met a issue:
Simulator nolonger updated according to modified codes, after “Build Project for Hardware”
Reproduce:
open any project with Makecode extension for VS, click “Build Project for Hardware”, then choose whatever a HW.
Modify source code, then project re-build automatically.
Project in simuator still previous edtion before, and no longer update unless close/reopen VSCode.
Browsed source, looks like:
|
Simulator.currentSimulator.simulateAsync(await readFileAsync("built/binary.js", "utf8")); |
- Simulator always load binary.js from build/binary.js
- But “Build Project for Hardware” updated BuildOption, then redirected path to build/HW/binary.js. And “Build Project” compiled for that HW only after that, and then only build/HW/binary.js be updated.