Skip to content

Fix completion in func exp and class exp #3638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

Conversation

yuit
Copy link
Contributor

@yuit yuit commented Jun 25, 2015

Fix issue #3231 and add support for class expression

// fo$ <- completion list should contain local name "foo"
// }
// foo$ <- completion list should not contain "foo"
if (displayName === "__function" || displayName === "__class") {
Copy link
Member

Choose a reason for hiding this comment

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

We have a getDeclaredName which I think could be used in lieu of most of the logic in this if's block

Copy link
Contributor Author

Choose a reason for hiding this comment

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

getDeclaredName doesn't do the right thing for functionExpression. Talk with @mhegazy, he says there will be some rewrite on that. So I don't want to have all the change in this PR

@DanielRosenwasser
Copy link
Member

@yuit why was this closed?

@yuit
Copy link
Contributor Author

yuit commented Jun 26, 2015

@DanielRosenwasser my PR is snapped using master from like 2 weeks ago :(.

@DanielRosenwasser
Copy link
Member

You can still merge in from master, and have things reviewed in the files changed list, unless it's really just that bad.

@yuit
Copy link
Contributor Author

yuit commented Jun 26, 2015

It is huge . Anyhow, I cherry-picked some commit and incorporate your comments. Sorry for confusion here

@yuit yuit deleted the fixCompletionInFuncExpAndClassExp branch August 4, 2016 15:10
@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