File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3034,7 +3034,7 @@ namespace ts {
3034
3034
attrsType = typeChecker . getJsxElementAttributesType ( < JsxOpeningLikeElement > jsxContainer ) ;
3035
3035
3036
3036
if ( attrsType ) {
3037
- symbols = filterJsxAttributes ( ( < JsxOpeningLikeElement > jsxContainer ) . attributes , typeChecker . getPropertiesOfType ( attrsType ) ) ;
3037
+ symbols = filterJsxAttributes ( typeChecker . getPropertiesOfType ( attrsType ) , ( < JsxOpeningLikeElement > jsxContainer ) . attributes ) ;
3038
3038
isMemberCompletion = true ;
3039
3039
isNewIdentifierLocation = false ;
3040
3040
return true ;
@@ -3550,7 +3550,7 @@ namespace ts {
3550
3550
* @returns Symbols to be suggested in a JSX element, barring those whose attributes
3551
3551
* do not occur at the current position and have not otherwise been typed.
3552
3552
*/
3553
- function filterJsxAttributes ( attributes : NodeArray < JsxAttribute | JsxSpreadAttribute > , symbols : Symbol [ ] ) : Symbol [ ] {
3553
+ function filterJsxAttributes ( symbols : Symbol [ ] , attributes : NodeArray < JsxAttribute | JsxSpreadAttribute > ) : Symbol [ ] {
3554
3554
let seenNames : Map < boolean > = { } ;
3555
3555
for ( let attr of attributes ) {
3556
3556
// If this is the current item we are editing right now, do not filter it out
You can’t perform that action at this time.
0 commit comments