This repository was archived by the owner on Nov 21, 2025. It is now read-only.
Commit 68ee834
committed
fix(language-server): Ensure LS is enabled in same order as project initialization (#1447)
ngcc processes might finish out of order, but we need to re-enable the language service for
the projects in the same order that the ngcc processes were spawned in. With solution-style
configs, we need to ensure that the language service enabling respects the order that the
projects were defined in the references list. If we enable the language service out of order,
the second project in the list will request diagnostics first and then be the project that's
prioritized for that project's set of files. This will cause issues if the second project is,
for example, one that only includes `*.spec.ts` files and not the entire set of files needed
to compile the app (i.e. `*.module.ts`).
A test was not written for this because it is difficult to consistently emulate the
`ngcc` processes finishing out of order with solution style project configs.
Fixes #1444
(cherry picked from commit 1434226)1 parent 07581a3 commit 68ee834
1 file changed
+25
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
1098 | 1101 | | |
1099 | 1102 | | |
1100 | 1103 | | |
| 1104 | + | |
1101 | 1105 | | |
1102 | 1106 | | |
1103 | 1107 | | |
| |||
1114 | 1118 | | |
1115 | 1119 | | |
1116 | 1120 | | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
1117 | 1125 | | |
1118 | 1126 | | |
1119 | 1127 | | |
1120 | 1128 | | |
1121 | 1129 | | |
1122 | 1130 | | |
1123 | 1131 | | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
1130 | 1149 | | |
1131 | 1150 | | |
1132 | 1151 | | |
| |||
0 commit comments