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
@ -120,7 +120,8 @@ export class TypeScriptServiceHost implements LanguageServiceHost {
|
||||
|
||||
result = this._resolver = new CompileMetadataResolver(
|
||||
moduleResolver, directiveResolver, pipeResolver, new SummaryResolver(),
|
||||
elementSchemaRegistry, directiveNormalizer, this.reflector);
|
||||
elementSchemaRegistry, directiveNormalizer, this.reflector,
|
||||
(error, type) => this.collectError(error, type && type.filePath));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user