fix(41736): tsserver should not crash if external file does not exist#41737
fix(41736): tsserver should not crash if external file does not exist#41737sheetalkamat merged 1 commit intomicrosoft:masterfrom
Conversation
sheetalkamat
left a comment
There was a problem hiding this comment.
Change looks good but please add a test in configured project testRunner\unittests\tsserver\configuredProjects.ts .. Some of the tests that use plugin are
https://github.com/microsoft/TypeScript/blob/master/src/testRunner/unittests/tsserver/metadataInResponse.ts#L27
https://github.com/microsoft/TypeScript/blob/master/src/testRunner/unittests/tsserver/externalProjects.ts#L60
If a file does not exist, `projectService.getOrCreateScriptInfoNotOpenedByClient()` will return `undefined`, but tsserver does not handle this case. Fix microsoft#41736
6aa4e97 to
ae04ec4
Compare
@sheetalkamat thank you very much for the pointer! I've added a test for external file 😄 |
…exist There is a bug in tsserver that causes it to crash when it tries to create script info for an external template that does not exist. I've submitted an upstream PR microsoft/TypeScript#41737 to fix this, but before the commit lands in the stable release, we'll have to workaround the issue in language service. Close angular/vscode-ng-language-service#1001
…exist (#39898) There is a bug in tsserver that causes it to crash when it tries to create script info for an external template that does not exist. I've submitted an upstream PR microsoft/TypeScript#41737 to fix this, but before the commit lands in the stable release, we'll have to workaround the issue in language service. Close angular/vscode-ng-language-service#1001 PR Close #39898
…exist (#39898) There is a bug in tsserver that causes it to crash when it tries to create script info for an external template that does not exist. I've submitted an upstream PR microsoft/TypeScript#41737 to fix this, but before the commit lands in the stable release, we'll have to workaround the issue in language service. Close angular/vscode-ng-language-service#1001 PR Close #39898
If a file does not exist,
projectService.getOrCreateScriptInfoNotOpenedByClient()will return
undefined, but tsserver does not handle this case.Fixes #41736