Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/ls/completions.go
Original file line number Diff line number Diff line change
Expand Up @@ -5373,7 +5373,7 @@ func (l *LanguageService) getCompletionItemActions(ctx context.Context, ch *chec
symbol = symbol.ExportSymbol
}
targetSymbol := ch.GetMergedSymbol(ch.SkipAlias(symbol))
isJsxOpeningTagName := symbolDetails.contextToken.Kind == ast.KindLessThanToken && ast.IsJsxOpeningLikeElement(symbolDetails.contextToken.Parent)
isJsxOpeningTagName := symbolDetails.contextToken != nil && symbolDetails.contextToken.Kind == ast.KindLessThanToken && ast.IsJsxOpeningLikeElement(symbolDetails.contextToken.Parent)
if symbolDetails.previousToken != nil && ast.IsIdentifier(symbolDetails.previousToken) {
// If the previous token is an identifier, we can use its start position.
position = astnav.GetStartOfNode(symbolDetails.previousToken, file, false)
Expand Down
Loading