This repository was archived by the owner on Nov 21, 2025. It is now read-only.
Commit 4f80416
fix: apply temporary fix to handle undefined language service
For some reasons, the project could end up in an inconsistent
state where the language service is undefined. It could be that the project
is closed (?!). While we investigate this issue, put in a temporary fix
to force the project to reload.
Also note that the return type of getLanguageService() is deceiving,
because it could return undefined
https://github.com/microsoft/TypeScript/blob/1c1cd9b08d8bf1c77abb57d195cc6d79b1093390/src/server/project.ts#L7971 parent dd8a930 commit 4f80416
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
515 | 524 | | |
516 | 525 | | |
517 | 526 | | |
| |||
0 commit comments