Commit 49efde1
committed
Load a legacy module into its own process again
A legacy module reports being active by hooking a method in its own app, so it
has to be in its own scope before it can say anything at all. The View-era
manager added that row on every save -- `if (legacy) list.add(self)` -- and hid
it again on read. #796 dropped both halves: ScopeViewModel.apply writes the
draft verbatim, and ConfigCache builds its scope map from the stored rows alone.
Every legacy module has reported itself inactive since (#816).
ConfigCache derives the scope during the rebuild now, so configurations written
by those builds need no repair and nothing that replaces the scope table can
drop it again. Legacy is the loader's own verdict, the strategy loadModule
settled on, so an API 101 module keeps its own process to itself. Insertions go
through one helper, because a module can now reach the same process by more than
one route.1 parent 61c89db commit 49efde1
1 file changed
Lines changed: 34 additions & 7 deletions
Lines changed: 34 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
273 | 282 | | |
274 | 283 | | |
275 | 284 | | |
| |||
278 | 287 | | |
279 | 288 | | |
280 | 289 | | |
281 | | - | |
| 290 | + | |
282 | 291 | | |
283 | 292 | | |
284 | 293 | | |
| |||
291 | 300 | | |
292 | 301 | | |
293 | 302 | | |
294 | | - | |
295 | | - | |
| 303 | + | |
296 | 304 | | |
297 | 305 | | |
298 | 306 | | |
299 | 307 | | |
300 | 308 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
| 309 | + | |
305 | 310 | | |
306 | 311 | | |
307 | 312 | | |
308 | 313 | | |
309 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
310 | 337 | | |
311 | 338 | | |
312 | 339 | | |
| |||
0 commit comments