fix(language-service): be resilient to invalidate ordering (#15470)

Fixes #15466
This commit is contained in:
Chuck Jazdzewski
2017-03-28 09:37:24 -07:00
committed by Victor Berchet
parent d05aa70c6b
commit a5c972aa8b
2 changed files with 10 additions and 1 deletions

View File

@ -492,7 +492,7 @@ export class TypeScriptServiceHost implements LanguageServiceHost {
const type = this.checker.getTypeAtLocation(target);
if (type) {
const staticSymbol =
this._reflector.getStaticSymbol(sourceFile.fileName, classDeclaration.name.text);
this.reflector.getStaticSymbol(sourceFile.fileName, classDeclaration.name.text);
try {
if (this.resolver.isDirective(staticSymbol as any)) {
const {metadata} =