-
Notifications
You must be signed in to change notification settings - Fork 320
When a participant is typing, other participants cannot use autocomplete #43
Comments
Some early findings regarding the cause of the current behavior:
In other words, because autocomplete-plus is watching for any text changes to the buffer, if User A triggers the autocomplete selection list, and then User B changes the text somewhere else in the buffer, autocomplete-plus hides User A's autocomplete selection list. |
As far as I can tell, this behavior in autocomplete-plus originated from the desire to cancel autocompletion when the user enters more than one character with a single keystroke (e.g., pasting). |
Interesting, so we need to make the check in autocomplete-plus more specific? For instance, autocomplete seems to work as expected when multiple cursors are present. |
@leroix: Probably so. Hopefully we can make it happen. @nathansobo: I think atom/autocomplete-plus@05d33f8 might meet our needs for this issue. I'm gonna hold off on opening up a PR in atom/autocomplete-plus until we can try out atom/autocomplete-plus@05d33f8 locally together while pairing. If all is well, I'll open a PR to get that change rolled into autocomplete-plus. |
@as-cii and I tried it out this morning, and everything seemed to work well. I've opened atom/autocomplete-plus#887 to get this change into autocomplete-plus. |
I've merged atom/autocomplete-plus#887 and incorporated that change into atom/atom (atom/atom#15652). With that done, I'm gonna close this issue. If anyone notices any undesirable interactions between autocomplete and real-time collaboration when using the latest dev build of atom/atom, please reopen an issue or open a new one with additional details. 🙇 |
In the demo below, the user on the left types a few characters and triggers autocomplete. Before that user can select an item in the autocomplete list, the user on the right types a character elsewhere in the buffer, which causes the other user's autocomplete selection list to disappear.
This behavior effectively prevents users from using autocomplete if both users are typing at once.
Given just the usefulness of autocomplete in everyday development, it would be great to allow each user to interact with their own autocomplete selections while other users are typing.
The text was updated successfully, but these errors were encountered: