Avoid following definition if resolved path is empty.

This commit is contained in:
Eric Traut 2019-10-19 08:33:36 -07:00
parent 9f8ecc8bc5
commit 02d9e4d1b3

View File

@ -122,7 +122,7 @@ export class DefinitionProvider {
declarations.forEach(decl => {
const resolvedDecl = resolveDeclarationAliases(decl);
if (resolvedDecl) {
if (resolvedDecl && resolvedDecl.path) {
definitions.push({
path: resolvedDecl.path,
range: resolvedDecl.range