mirror of
https://github.com/microsoft/pyright.git
synced 2024-10-27 11:18:42 +03:00
Avoid following definition if resolved path is empty.
This commit is contained in:
parent
9f8ecc8bc5
commit
02d9e4d1b3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user