fix(language-service): do not crash when Angular cannot be located (#14123)
Fixes #14122 PR Close #14123
This commit is contained in:

committed by
Miško Hevery

parent
5f2b3173d7
commit
49fb8143e8
@ -98,6 +98,8 @@ export class MockTypescriptHost implements ts.LanguageServiceHost {
|
||||
this.scriptNames.push(fileName);
|
||||
}
|
||||
|
||||
forgetAngular() { this.angularPath = undefined; }
|
||||
|
||||
getCompilationSettings(): ts.CompilerOptions {
|
||||
return {
|
||||
target: ts.ScriptTarget.ES5,
|
||||
|
Reference in New Issue
Block a user