Backend pieces of auto-update enable/disable #548
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This updates Brackets for the API changes necessary for https://github.com/mozilla/thimble.mozilla.org/issues/1417.
There are 2 types of "reloads" that we do. The first is a full reload for cases where the DOM needs to be altered in a way that can't be done easily, which is like refreshing the browser tab. The second is a dynamic injection of content that doesn't warrant a full reload. For example, updating the text in a paragraph tag.
This patch makes it possible to stop the first kind of reload, which is what I think we want. If we decide that we also want to stop the second type, it's going to be hacky. I would need to inspect messages going over the LiveDev transport, and look for things like
"_LD.applyDOMEdits([{"type":"textReplace"...
deep inside the string of aRuntime.evaluate
message. I could do this, but if I don't have to, I'd rather not.cc @flukeout
r? @gideonthomas