-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement better synchronization of selections
- Store our selections when calling 'updateView' to be later ignored. - Create a 'ignoreIntermediateSelections' flag that is set when running an action to ignore any selection changes triggered by any step of that action. - When getting a selection change event we first check if it is one of our selections. If it is we ignore it, if it is not we still ignore it if the 'ignoreIntermediateSelections' flag is set or if we have other selections to ignore, because that means this selection slipped in after the end of the action. Otherwise we handle it. - Create new handle for selection changes with kind 'Command'. (this is triggered by editor commands like 'smartSelect.grow' but is also triggered when we set the 'editor.selections' on 'updateView', except this last one will now be ignored)
- Loading branch information
Showing
5 changed files
with
325 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.