fix(language-service): do not throw for invalid metadata (#13261)
Fixes #13255
This commit is contained in:

committed by
Alex Rickabaugh

parent
16efb13dd1
commit
4a09c81724
@ -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,
|
||||
|
Reference in New Issue
Block a user