@@ -451,7 +451,7 @@ func getCompletionData(program *compiler.Program, typeChecker *checker.Checker,
451
451
if parent .Kind == ast .KindJsxElement || parent .Kind == ast .KindJsxOpeningElement {
452
452
location = currentToken
453
453
}
454
- case ast .KindSlashToken :
454
+ case ast .KindLessThanSlashToken :
455
455
if parent .Kind == ast .KindJsxSelfClosingElement {
456
456
location = currentToken
457
457
}
@@ -460,7 +460,7 @@ func getCompletionData(program *compiler.Program, typeChecker *checker.Checker,
460
460
461
461
switch parent .Kind {
462
462
case ast .KindJsxClosingElement :
463
- if contextToken .Kind == ast .KindSlashToken {
463
+ if contextToken .Kind == ast .KindLessThanSlashToken {
464
464
isStartingCloseTag = true
465
465
location = contextToken
466
466
}
@@ -2432,7 +2432,7 @@ func isValidTrigger(file *ast.SourceFile, triggerCharacter CompletionsTriggerCha
2432
2432
if ast .IsStringLiteralLike (contextToken ) {
2433
2433
return tryGetImportFromModuleSpecifier (contextToken ) != nil
2434
2434
}
2435
- return contextToken .Kind == ast .KindSlashToken && ast .IsJsxClosingElement (contextToken .Parent )
2435
+ return contextToken .Kind == ast .KindLessThanSlashToken && ast .IsJsxClosingElement (contextToken .Parent )
2436
2436
case " " :
2437
2437
return contextToken != nil && contextToken .Kind == ast .KindImportKeyword && contextToken .Parent .Kind == ast .KindSourceFile
2438
2438
default :
@@ -3934,7 +3934,7 @@ func (l *LanguageService) getJsxClosingTagCompletion(
3934
3934
switch node .Kind {
3935
3935
case ast .KindJsxClosingElement :
3936
3936
return ast .FindAncestorTrue
3937
- case ast .KindSlashToken , ast .KindGreaterThanToken , ast .KindIdentifier , ast .KindPropertyAccessExpression :
3937
+ case ast .KindLessThanSlashToken , ast .KindGreaterThanToken , ast .KindIdentifier , ast .KindPropertyAccessExpression :
3938
3938
return ast .FindAncestorFalse
3939
3939
default :
3940
3940
return ast .FindAncestorQuit
0 commit comments