Skip to content
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

SmartSelect fixes and tests #57012

Closed
wants to merge 3 commits into from
Closed

Conversation

ris58h
Copy link
Contributor

@ris58h ris58h commented Aug 22, 2018

There are couple of changes and fixes which should improve Smart Select:

  1. tokenTree.ts refactoring. Node.parent is removed (it's useless and there was an issue with it anyway) and NodeList and Block behave like immutable now. _doGetRangesToPosition changed respectively and collects ranges top-to-bottom instead of bottom-to-top.

  2. Fix from Fix block selection #56807 PR.

  3. Improvement of selection of adjacent blocks (I didn't make better name for it). It's when the ending of one block is on on the same line with the beginning of the another block.
    Before:
    adjacent-before
    After:
    adjacent-after

  4. Tests!

@ris58h ris58h mentioned this pull request Aug 22, 2018
@alexdima alexdima assigned jrieken and unassigned rebornix and alexdima Aug 27, 2018
@jrieken jrieken added this to the November 2018 milestone Nov 8, 2018
@jrieken jrieken self-requested a review November 29, 2018 11:16
@jrieken
Copy link
Member

jrieken commented Nov 29, 2018

@ris58h sorry for the delay. we are still interested in this PR, especially now that smart select is being revisited. Can you update your PR so that I can merge? Thanks

@jrieken
Copy link
Member

jrieken commented Dec 3, 2018

Sorry, closing this as we plan to nuke the token-based provider all together. We have a first proposal for extension API so that language smarts can be used for good selection ranges. We are also working on better default providers for word, lines, bracket et al, see #64004 and the smart select-label.

@jrieken jrieken closed this Dec 3, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants