fix(language-service): be resilient to invalidate ordering (#15470)
Fixes #15466
This commit is contained in:

committed by
Victor Berchet

parent
d05aa70c6b
commit
a5c972aa8b
@ -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} =
|
||||
|
Reference in New Issue
Block a user