dillon1000/react
Commit
Browse files Playground uses run() to automatically sync w compiler passes
Changes playground to use the modified `run()` function of the compiler, polling the generator and building up a Map of tabs automatically based on the passes that the compiler runs. This means tabs are always derived from the current state of the compiler and we can never forget to add a pass. <img width="1497" alt="Screen Shot 2023-01-10 at 11 06 03 AM" src="https://user-images.githubusercontent.com/6425824/211639442-da421f73-e19e-4b63-9f33-0ce5a68cceb7.png"> Note the inclusion of some recently added passes that weren't added to the playground — which was my fault but only bc i intended to ship this PR soon :-)
Changed paths3 files
First-parent comparisoncompiler/forget/packages/playground/components/Editor/Output.tsx ModifiedM compiler/forget/packages/playground/components/Editor/index.tsx ModifiedM compiler/forget/packages/playground/components/TabbedWindow.tsx ModifiedPatch
Files changed
Rendering syntax-highlighted changes…