File tree 2 files changed +22
-0
lines changed 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1245,6 +1245,7 @@ namespace ts.Completions {
1245
1245
break ;
1246
1246
1247
1247
case SyntaxKind . JsxExpression :
1248
+ case SyntaxKind . JsxSpreadAttribute :
1248
1249
// For `<div foo={true} [||] ></div>`, `parent` will be `{true}` and `previousToken` will be ` }`
1249
1250
if ( previousToken . kind === SyntaxKind . CloseBraceToken && currentToken . kind === SyntaxKind . GreaterThanToken ) {
1250
1251
isJsxIdentifierExpected = true ;
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+ //@Filename : file.tsx
3
+ ////declare var React: any;
4
+ ////declare module JSX {
5
+ //// interface Element { }
6
+ //// interface IntrinsicElements {
7
+ //// div: { "aria-whatever"?: string }
8
+ //// }
9
+ //// interface ElementAttributesProperty { props: any }
10
+ //// }
11
+ ////const a = <div {...{}} /*1*/></div>;
12
+
13
+
14
+ verify . completions (
15
+ {
16
+ marker : "1" ,
17
+ exact : [
18
+ { name : "aria-whatever" , sortText : completion . SortText . OptionalMember }
19
+ ]
20
+ }
21
+ ) ;
You can’t perform that action at this time.
0 commit comments