Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Conversation

@hansonw
Copy link
Contributor

@hansonw hansonw commented Mar 14, 2017

TextBuffer::onDidChangeText doesn't include the old text at the moment, making it very difficult to compute the length of the previous change. The only downside is that we can't batch changes in a single transaction together.

However, during most normal user edits I would imagine that transactions are fairly small, so I think it's OK if we use plain-old TextBuffer::onDidChange for now. We use this in Nuclide's language services without issue, at least.

Copy link
Contributor

@damieng damieng left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@hansonw hansonw merged commit e5e2076 into master Mar 14, 2017
@hansonw hansonw deleted the use-on-did-change branch March 14, 2017 22:18
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.

3 participants