Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

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

Merged
mrennie merged 2 commits intomasterfrom
Bug522667
Sep 29, 2017
Merged

Bug 522667 - CodeEdit: Reload Issue when using CodeEdit-Widget from Angular2.#202
mrennie merged 2 commits intomasterfrom
Bug522667

Conversation

@mrennie
Copy link
Copy Markdown
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
Copy Markdown

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

@coveralls
Copy link
Copy Markdown

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 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.

5 participants