Skip to content

Pass sourceFile to getChildren in getTokenAtPositionWorker (#25505) #25538

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

Merged
1 commit merged into from
Jul 10, 2018

Conversation

Quantumplation
Copy link
Contributor

@Quantumplation Quantumplation commented Jul 10, 2018

For performance reasons, we should always pass sourceFile to getChildren, if available.

  • There is an associated issue that is labeled 'Bug' or 'help wanted' or is in the Community milestone
  • Code is up-to-date with the master branch
  • You've successfully run jake runtests locally
  • You've signed the CLA
  • There are new or updated unit tests validating the change (N/A, see note below)

Fixes #25505

Note that per suggestion of @DanielRosenwasser and @Andy-MS, this doesn't include a unit test since it's primarily a performance improvement, but if someone feels strongly otherwise, I'm happy to write one.

…#25505)

For performance reasons, we should always pass sourceFile to getChildren
if available.
@ghost ghost merged commit b3b6c3b into microsoft:master Jul 10, 2018
@ghost
Copy link

ghost commented Jul 10, 2018

Thanks!

@Quantumplation
Copy link
Contributor Author

@Andy-MS Thank you! It's pretty exciting to be a typescript contributor now! ;)

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant