Skip to content

Commit 076028c

Browse files
Changed order of parameters.
1 parent 4f7c624 commit 076028c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/services.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3034,7 +3034,7 @@ namespace ts {
30343034
attrsType = typeChecker.getJsxElementAttributesType(<JsxOpeningLikeElement>jsxContainer);
30353035

30363036
if (attrsType) {
3037-
symbols = filterJsxAttributes((<JsxOpeningLikeElement>jsxContainer).attributes, typeChecker.getPropertiesOfType(attrsType));
3037+
symbols = filterJsxAttributes(typeChecker.getPropertiesOfType(attrsType), (<JsxOpeningLikeElement>jsxContainer).attributes);
30383038
isMemberCompletion = true;
30393039
isNewIdentifierLocation = false;
30403040
return true;
@@ -3550,7 +3550,7 @@ namespace ts {
35503550
* @returns Symbols to be suggested in a JSX element, barring those whose attributes
35513551
* do not occur at the current position and have not otherwise been typed.
35523552
*/
3553-
function filterJsxAttributes(attributes: NodeArray<JsxAttribute | JsxSpreadAttribute>, symbols: Symbol[]): Symbol[] {
3553+
function filterJsxAttributes(symbols: Symbol[], attributes: NodeArray<JsxAttribute | JsxSpreadAttribute>): Symbol[] {
35543554
let seenNames: Map<boolean> = {};
35553555
for (let attr of attributes) {
35563556
// If this is the current item we are editing right now, do not filter it out

0 commit comments

Comments
 (0)