We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cf6c70 commit 43d1d74Copy full SHA for 43d1d74
lib/tsserver.js
@@ -106106,7 +106106,7 @@ var ts;
106106
// If the symbol/moduleSymbol was a merged symbol, it will have a new identity
106107
// in the checker, even though the symbols to merge are the same (guaranteed by
106108
// cache invalidation in synchronizeHostData).
106109
- if (suggestion.symbol.declarations) {
+ if (suggestion.symbol.declarations && suggestion.symbol.declarations[0]) {
106110
suggestion.symbol = checker.getMergedSymbol(suggestion.origin.isDefaultExport
106111
? suggestion.symbol.declarations[0].localSymbol || suggestion.symbol.declarations[0].symbol
106112
: suggestion.symbol.declarations[0].symbol);
0 commit comments