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

Bug 522667 - CodeEdit: Reload Issue when using CodeEdit-Widget from Angular2. #202

Merged
merged 2 commits into from Sep 29, 2017

Conversation

mrennie
Copy link
Contributor

@mrennie mrennie commented Sep 27, 2017

This ensures the tooling will restart correctly in the code edit widget.

The changes:

  1. in the environment handler, we stop pre-computing the environment - this was found to be unnecessary, and was part of the cause of the race condition

  2. we only want to the set the flag 'updateNeeded' to true, not simply to the result of the call to importantChange. Since the code edit widget sends so many requests about files being created so quickly, the other part of the race condition was that this flag would get set to false before it was consulted - this resulted in the tooling setting its state to "needs a reset" but then never doing the reset since the env state was not also set to "needs update"

@eclipsewebmaster
Copy link

Issue tracker reference:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=522667

@coveralls
Copy link

Coverage Status

Coverage remained the same at 51.721% when pulling 83e7ca4 on Bug522667 into 057d0ee on master.

@mrennie mrennie self-assigned this Sep 29, 2017
@mrennie mrennie merged commit 2747526 into master Sep 29, 2017
@mrennie mrennie deleted the Bug522667 branch September 29, 2017 13:04
mrennie added a commit that referenced this pull request Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants