-
Notifications
You must be signed in to change notification settings - Fork 29k
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
TextEditorDecoration applied to incorrect range if racing with user edits #74094
Comments
Maybe you could add a It would be kind of similar to the way things work with The difference here would be that the caller would be responsible for capturing the version number, instead of it being captured automatically. Do you think that would make sense @alexdima? I'd be happy to contribute a PR edit: I just threw together a PR with an alternate approach where the version number is automatically captured #172672 |
Version: 1.33.1 (user setup)
Commit: 51b0b28
Date: 2019-04-11T08:27:14.102Z
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.18362
The wrong text gets decorated if the user is typing when the decoration is applied.
Steps to Reproduce:
Seeing: The decoration is applied to the wrong text.
Expected: The decoration range(s) should get adjusted based on the pending edits.
The text was updated successfully, but these errors were encountered: