Commit 45636c3
committed
✨ feat(extension): add auto-reload for core changes in dev mode
Previously, devs would need to restart the extension host to see core changes.
Now, with this change, we monitor the files within the core directory.
If any changes are detected, we trigger a reload command within the extension, effectively enabling auto-reloading within the extension
Dev notes
I was originally going to make this a new env var something like ENABLE_CORE_AUTO_RESTART, but instead just based it on the NODE_ENV. Let me know if you think the env var would be better! (or something else!)
- enhance development experience by eliminating manual restarts
- implement file system watcher for core files
- automatically reload extension host on changes
Test plan: Verified running the extension locally that changes to `src` reload the window in dev.1 parent 6f90d4c commit 45636c3
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
126 | 141 | | |
127 | 142 | | |
128 | 143 | | |
| |||
0 commit comments