-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Implementation of SelectionRange and SelectionRangeProvider API #7534
Conversation
Just tried this PR with the |
I tired it as well - thanks @vzhukovskii! FYI you can install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vzhukovskii Why draft? It looks good, no? :)
@vzhukovskii What should one do with mentioned extension in I see that there is no errors anymore from typescript anymore, but
Please make sure that you don't reinvent anything, copy an implementation from the VS Code extension host process code and file a CQ. |
I'm just checked that it doesn't fail during Theia start. Still looking for the way, how it can be fully checked. |
I'll check it |
Linked CQ: https://dev.eclipse.org/ipzilla/show_bug.cgi?id=21891 🤞 // Update: CQ has been approved |
Hi @vzhukovskii . I think the CQ is incorrect - it probably should be "Type_B", which is a deeper check, required to fork code. I added a comment directly on the CQ. On step 3 in this section did you chose |
Yep, that's correct. I chose: |
From what I remember you may not even get to chose - the type may just map to the choice you make in the wizard, when filling-up the CQ. Let's see if someone from the IP team responds on the CQ. |
As I remember, there was an ability to choose the type (A or B), but at this moment I didn't see such options. Waiting for the IP team response... 🙄 |
Hi @vzhukovskii , I think it might be quicker to withdraw CQ 21891 and open a new one for "Type B" check. |
I'm contacting now with the IP team to find out whether we can update type of CQ w/o creating the new one. I'm not 100% sure that new CQ will be automatically detected as Type B. @akosyakov I've updated PR and Now I'm working on how to test section. |
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@akosyakov @marcdumais-work I've updated how to test section in PR description. Seems everything works fine. Still waiting for CQ analysis. IP team updated type from A to B. |
@vzhukovskii CQ has |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vzhukovskii it works great, thank you! please merge
Please see remark: ebf7b78#r38560694 |
What it does
This changes proposal adds missing API for SelectionRange and SelectionRangeProvider.
Signed-off-by: Vladyslav Zhukovskyi vzhukovs@redhat.com
TODO
How to test
See SelectionRangeProviderSample for full details.
Steps to test
yarn
commandeclipse_che_selection_range_provider_sample.theia
eclipse_che_selection_range_provider_sample.theia
to Theia's plugins foldertest.txt
{SHOULD_BE_SELECTED}any text{/SHOULD_BE_SELECTED}
Expand Selection
command, it will select word under cursorExpand Selection
command again, it will select the whole piece of text arround tagSHOULD_BE_SELECTED
Difference between master and this version:
Expand Selection
and then the whole paragraphExpand Selection
, on second, piece of text surround bySHOULD_BE_SELECTED
tag and then the whole paragraph[1][1] this works also for multi cursor
Review checklist
Reminder for reviewers