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 Misko Hevery
parent d9420311ca
commit a5b4af0fdd
3 changed files with 44 additions and 1 deletions

View File

@ -97,6 +97,8 @@ export class MockTypescriptHost implements ts.LanguageServiceHost {
this.scriptNames.push(fileName);
}
forgetAngular() { this.angularPath = undefined; }
getCompilationSettings(): ts.CompilerOptions {
return {
target: ts.ScriptTarget.ES5,