fix(language-service): do not throw for invalid metadata (#13261)

Fixes #13255
This commit is contained in:
Chuck Jazdzewski
2016-12-06 17:11:09 -08:00
committed by Alex Rickabaugh
parent 16efb13dd1
commit 4a09c81724
4 changed files with 147 additions and 57 deletions

View File

@ -91,6 +91,12 @@ export class MockTypescriptHost implements ts.LanguageServiceHost {
}
}
addScript(fileName: string, content: string) {
this.projectVersion++;
this.overrides.set(fileName, content);
this.scriptNames.push(fileName);
}
getCompilationSettings(): ts.CompilerOptions {
return {
target: ts.ScriptTarget.ES5,