Skip to content

Commit 84d64f6

Browse files
authored
Fix crash in find-all-refs on exports.xxx in .js file (#2023)
1 parent 3d247ef commit 84d64f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ls/findallreferences.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ func (l *LanguageService) getReferencedSymbolsForModule(ctx context.Context, pro
11721172
references: references,
11731173
}}
11741174
}
1175-
return nil
1175+
return []*SymbolAndEntries{}
11761176
}
11771177

11781178
func getReferenceAtPosition(sourceFile *ast.SourceFile, position int, program *compiler.Program) *refInfo {

0 commit comments

Comments
 (0)