-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Add source to TextDocumentChangeEvent #10801
Comments
@rebornix I believe I have not yet understood what the Can you write some pseudo code that consumes the API you wish for? |
@jrieken maybe it's because I didn't describe it perfectly. Vim's
Firstly, we are not repeating Code's commands. Previously when I and johnfn described this feature, the Speaking of content change, if the change is caused by Code's built-in commands instead of Vim's key combinations, I think it's Okay that Hope above describes |
As I said above, it's Okay that A good example is: enter Insert Mode, type If there is no autocomplete, everything is good. We record The reason we need to record keystrokes in Vim extension is we can't access Code's change history. When we type |
This would be helpful so I can choose not to do an edit if the source of the trigger event was from a remote user: #11418 |
It would be helpful for the source to be really specific. A few examples: Here's my use case: Having the source say that the edit was made from my extension would allow me to filter edits and not cause an infinite loop between the local user and remote user. |
@jrieken Any update on this issue for my use case? |
No, we actually don't have the information internally in the editor. It is a larger effort to which are aren't fully committed yet |
I vote for somehow enabling the functionality @drew-wallace is trying to create, although it's a bummer that it's not easy. As a competitive matter, here is a list of editors that have managed to add in support for this feature to be built, and where Floobits has added it: |
Closing because this issue is without actionable information. |
There seems to exist a infinite loop betwwen the document HasChanged event listener and the sharedb op event hanlder. Check microsoft/vscode#11418 and microsoft/vscode#10801
There seems to exist a infinite loop betwwen the document HasChanged event listener and the sharedb op event hanlder. Check microsoft/vscode#11418 and microsoft/vscode#10801
It sometimes useful to know how a text change was triggered esp for the
.
feature in VIM. See #1431 for more on this.The text was updated successfully, but these errors were encountered: