Skip to content

Commit 43d1d74

Browse files
author
Tam Nguyen
committed
temporary fix "Cannot read property symbol of undefined"
1 parent 7cf6c70 commit 43d1d74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tsserver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106106,7 +106106,7 @@ var ts;
106106106106
// If the symbol/moduleSymbol was a merged symbol, it will have a new identity
106107106107
// in the checker, even though the symbols to merge are the same (guaranteed by
106108106108
// cache invalidation in synchronizeHostData).
106109-
if (suggestion.symbol.declarations) {
106109+
if (suggestion.symbol.declarations && suggestion.symbol.declarations[0]) {
106110106110
suggestion.symbol = checker.getMergedSymbol(suggestion.origin.isDefaultExport
106111106111
? suggestion.symbol.declarations[0].localSymbol || suggestion.symbol.declarations[0].symbol
106112106112
: suggestion.symbol.declarations[0].symbol);

0 commit comments

Comments
 (0)