diff --git a/src/services/completions.ts b/src/services/completions.ts index fb1fb0fcfad..2de8fafc05c 100644 --- a/src/services/completions.ts +++ b/src/services/completions.ts @@ -1245,6 +1245,7 @@ namespace ts.Completions { break; case SyntaxKind.JsxExpression: + case SyntaxKind.JsxSpreadAttribute: // For `
`, `parent` will be `{true}` and `previousToken` will be `}` if (previousToken.kind === SyntaxKind.CloseBraceToken && currentToken.kind === SyntaxKind.GreaterThanToken) { isJsxIdentifierExpected = true; diff --git a/tests/cases/fourslash/jsxAriaLikeCompletions.ts b/tests/cases/fourslash/jsxAriaLikeCompletions.ts new file mode 100644 index 00000000000..8e325cc5951 --- /dev/null +++ b/tests/cases/fourslash/jsxAriaLikeCompletions.ts @@ -0,0 +1,21 @@ +///