mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-27 22:39:59 -05:00
Add missing JSXSpreadAttribute case to JSX completion logic (#44514)
This commit is contained in:
@@ -1245,6 +1245,7 @@ namespace ts.Completions {
|
||||
break;
|
||||
|
||||
case SyntaxKind.JsxExpression:
|
||||
case SyntaxKind.JsxSpreadAttribute:
|
||||
// For `<div foo={true} [||] ></div>`, `parent` will be `{true}` and `previousToken` will be `}`
|
||||
if (previousToken.kind === SyntaxKind.CloseBraceToken && currentToken.kind === SyntaxKind.GreaterThanToken) {
|
||||
isJsxIdentifierExpected = true;
|
||||
|
||||
Reference in New Issue
Block a user