Skip to content

Conversation

RyanCavanaugh
Copy link
Member

Fixes bug #3695

}
jsxNode = jsxNode.parent;
if (attrsType) {
symbols = typeChecker.getPropertiesOfType(attrsType);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you probably should filter these based on the ones already defined. you do not want to keep suggesting the same property over and over. i am assuming it is expected to define the same property multiple time outside a spread.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e.g. filterObjectMembersList and filterModuleExports

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️ added a verification to the test as well

@mhegazy
Copy link
Contributor

mhegazy commented Jul 2, 2015

👍

RyanCavanaugh added a commit that referenced this pull request Jul 2, 2015
Fix attribute completion following JSX exprs
@RyanCavanaugh RyanCavanaugh merged commit 77d9362 into microsoft:master Jul 2, 2015
@RyanCavanaugh RyanCavanaugh deleted the fixJsxAttribCompletion branch July 2, 2015 06:52
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants