Repository navigation
Commit 3153431
committed
fix(server): retain configured projects of open files directly (issue #7)
getOrphanConfiguredProjects retains an open file's configured project
by probing tryFindDefaultConfiguredProjectAndLoadAncestorsForOpen-
ScriptInfo. The fork assigns open files to configured projects through
its own path for extensions stock doesn't support there (e.g. .vue),
so the probe returns NONE and cleanupProjectsAndScriptInfos removed a
live configured project out from under its open file — 0.2s after a
second project's file opened, the first project vanished and the .vue
was orphaned (containingProjects=[]).
Retain configured projects straight from each open scriptInfo's
containingProjects before running the probe. This is a superset of
what the probe retains, so stock-observable behavior is unchanged;
stock removes the same project in the same scenario because stock
never assigns .vue to it in the first place.1 parent d7bc16b commit 3153431
1 file changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
457 | 475 | | |
458 | 476 | | |
459 | 477 | | |
| |||
0 commit comments