Uh oh!
There was an error while loading. Please reload this page.
Add properties priority for completion - #32266
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Sheetal Nandi (sheetalkamat)
left a comment
There was a problem hiding this comment.
Thank you for working on this.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| // Set SortText to MemberDeclaredBySpreadAssignment if it is fulfilled by spread assignment | ||
| function setSortTextToMemberDeclaredBySpreadAssignment(membersDeclaredBySpreadAssignment: Symbol[], contextualMemberSymbols: Symbol[]): void { | ||
| for (const fulfilledSymbol of membersDeclaredBySpreadAssignment) { |
There was a problem hiding this comment.
Short circuit for filteredSymbols .length === 0 is needed.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| if (isBindingElement(m) && m.propertyName) { | ||
| if (isSpreadAssignment(m)) { | ||
| const expression = m.expression; |
There was a problem hiding this comment.
Ok last one change needed.
Scope out this login into another function that sets the members in map so that it can be shared for object members and jsx attributes
approved with last comment to fix
Zixiang Li (fuafa)
commented
Aug 13, 2019
Anything I miss? Daniel Rosenwasser (@DanielRosenwasser)Sheetal Nandi (@sheetalkamat) 🆙 🚀 |
| return contextualMemberSymbols; | ||
| } | ||
| const membersDeclaredBySpreadAssignment = createMap<boolean>(); |
There was a problem hiding this comment.
This needs to be Map since we don't use actual value.
There was a problem hiding this comment.
But it is a Map already, and what do you mean we don't use actual value?
There was a problem hiding this comment.
I was on mobile and didnt realise its not showing correctly. Sorry about that. It needs to be Map<true>
There was a problem hiding this comment.
Thanks! Fixed.
| } | ||
| // Set SortText to MemberDeclaredBySpreadAssignment if it is fulfilled by spread assignment | ||
| function setSortTextToMemberDeclaredBySpreadAssignment(membersDeclaredBySpreadAssignment: Map<boolean>, contextualMemberSymbols: Symbol[]): void { |
There was a problem hiding this comment.
Change to Map<true> here too.
Fixes#29868