Skip to content
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

(GH-1413) Resolve promise correctly in Folding feature #1416

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

glennsarti
Copy link
Contributor

@glennsarti glennsarti commented Jul 10, 2018

PR Summary

Previously in PR #1414 the Folding provider was updated, however the promise
resolution was incorrect. This caused the grammar load to never trigger the
Then command. This commit instead uses the correct way to return the value
for the promise and, when then triggers the Then statement correctly.

Fixes #1413.

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

Previously in PR PowerShell#1414 the Folding provider was updated, however the promise
resolution was incorrect.  This caused the grammar load to never trigger the
Then command.  This commit instead uses the correct way to return the value
for the promise and, when then triggers the Then statement correctly.
Copy link
Contributor

@rjmholt rjmholt left a comment

Choose a reason for hiding this comment

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

LGTM!

@glennsarti
Copy link
Contributor Author

Ping @rkeithhill

Copy link
Contributor

@rkeithhill rkeithhill left a comment

Choose a reason for hiding this comment

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

LGTM

@rjmholt rjmholt merged commit 7a9df00 into PowerShell:master Jul 10, 2018
rjmholt pushed a commit that referenced this pull request Jul 11, 2018
Previously in PR #1414 the Folding provider was updated, however the promise
resolution was incorrect.  This caused the grammar load to never trigger the
Then command.  This commit instead uses the correct way to return the value
for the promise and, when then triggers the Then statement correctly.
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.

Folding provider tests are failing in VSCode 1.25
3 participants