fix(language-service): do not crash when Angular cannot be located (#14123)

Fixes #14122

PR Close #14123
This commit is contained in:
Chuck Jazdzewski
2017-01-26 12:42:48 -08:00
committed by Miško Hevery
parent 5f2b3173d7
commit 49fb8143e8
3 changed files with 44 additions and 1 deletions

View File

@ -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,