Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Fixes #1256 #1769

Merged
merged 4 commits into from
Oct 10, 2012
Merged

Fixes #1256 #1769

merged 4 commits into from
Oct 10, 2012

Conversation

DennisKehrig
Copy link
Contributor

Fixes #1256: Deleting a file should remove entry from inline editor

This one could use a thorough review...

@ghost ghost assigned RaymondLim Oct 4, 2012
@@ -45,6 +45,7 @@ define(function (require, exports, module) {
* - lostSync -- When the backing Document changes in such a way that the range can no longer
* accurately be maintained. Generally, occurs whenever an edit spans a range boundary.
* After this, startLine & endLine will be unusable (set to null).
* Also occurs when the document is deleted, thought startLine & endLine won't be modified
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it a typo? thought?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes! It's supposed to say "though". Good catch!

@RaymondLim
Copy link
Contributor

Done with initial review.

@DennisKehrig
Copy link
Contributor Author

Thank you for the review! Much appreciated!

Personally I'm most skeptical about forwarding an event as the "cause" of another event. It feels fishy somehow. What are your thoughts on this?

@RaymondLim
Copy link
Contributor

I can't think of other elegant alternatives that will let you distinguish between "deleted" and "out-of-sync". So I'm ok with forwarding the "cause". It is harder to understand it at first. I was almost to question you on how we get "deleted" as the cause, but later I figured out by doing global search.

@DennisKehrig
Copy link
Contributor Author

Thanks a lot for your review, much appreciated! I updated the comments as per your suggestions. Unless I overlooked anything, that's it from me for now.

@RaymondLim
Copy link
Contributor

Looks good. Merging

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.

Deleting a file should remove entry from inline editor
2 participants