-
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
7989-refactor-preview: Support for Refactor Preview functionality #8589
Conversation
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.
@danarad05 CI is failing since the newly added extension does not include a test file such as:
Thanks Vince, just saw it and in process of adding spec file. Thanks |
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.
I have a few general comments, I have not yet tested the functionality.
We should also add the @theia/bulk-edit
extension to both examples (browser
and electron
) since we explicitly list all the available extensions in both examples for others to reference.
@danarad05 you should usually keep single commit in your PR |
I believe it's unrelated, I'll restart the build for macOS. |
Hi Dan, I tried to run one of our scenarios that uses it, and it didn't opened the preview. I can help you run it if necessary. Thanks, |
ae6807d
to
065d517
Compare
@vince-fugnitto |
@danarad05 I'd be happy to take a look. I have a few other reviews in my backlog along with EclipseCon this week so it may take some time before I am able to review it thoroughly. |
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.
I have a few general comments already regarding the extension (I have not looked in depth yet for the source-code):
- when the pull-request is built, it produces unstaged changes to
.travis.yml
:
evinfug@elx7849163z[±|danarad05-7989-refactor-preview U:1 ✗]:~/workspaces/theia $ git diff
diff --git a/.travis.yml b/.travis.yml
index 7e1f979e1..34b4cc8aa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,7 +19,6 @@ cache:
- examples/browser/node_modules
- examples/electron/node_modules
- node_modules
- - packages/bulk-edit/node_modules
- packages/callhierarchy/node_modules
- packages/console/node_modules
- packages/core/node_modules
- I believe the styling of the refactor (in the editor) should be adjusted (ex: black font), and the message is poorly formatted:
theia:
vscode:
packages/bulk-edit/src/browser/bulk-edit-tree/bulk-edit-tree-widget.tsx
Outdated
Show resolved
Hide resolved
packages/bulk-edit/src/browser/bulk-edit-tree/bulk-edit-tree-widget.tsx
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
Sure, I did the following:
Same thing happens when viewing the pull-request on Gitpod:
I'm not sure why unfortunately, looking at the keyboard shortcuts I see that the keybinding is properly set. Edit: I see the issue is present on the |
2f08981
to
f205aa5
Compare
This comment has been minimized.
This comment has been minimized.
4774dd3
to
e5f4ebf
Compare
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.
Sometimes it take a lot of time for the refactoring to calculate. For example try to rename |
Fixed |
I did an improvement there which improved time by second+.
|
20a2ac5
to
5a07bb5
Compare
Yes. Calculating list of changes to be displayed in the new view.
Gitpod.
Now it takes 10 seconds in gitpod. I guess it is good enough for big refactoring. |
332e217
to
a0bb02b
Compare
@amiramw @azatsarynnyy Please review again - if issue in conversation is satisfactory please resolve conversation. |
packages/bulk-edit/src/browser/bulk-edit-tree/bulk-edit-tree-widget.tsx
Outdated
Show resolved
Hide resolved
1c8535b
to
04b9ce7
Compare
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.
LGTM, just rebase and fix versions to 1.10.0
04b9ce7
to
8fe1b20
Compare
@amiramw Done |
@akosyakov this PR can't be merged due to your requested changes. I believe they were addressed by @danarad05 , can you take a look? |
@vince-fugnitto do you think we can merge this? |
@amiramw I'll leave it up to your discretion, if the pull-request required CQ (since we copy or are inspired by the bulk-edit implementation of vscode), can you confirm it's been approved. Generally a link in the pull-request description is added for other committers to track. |
Signed-off-by: Dan Arad <[email protected]>
0bef7c9
to
f4c27bd
Compare
Good catch. Created now CQ https://dev.eclipse.org/ipzilla/show_bug.cgi?id=23016 |
According the CQ:
@vince-fugnitto this means that we can merge this PR, right? |
@amiramw correct :) |
Merged. Thanks everyone for reviewing. |
Signed-off-by: Dan Arad [email protected]
What it does
Resolves #7989 - Adds Refactor Preview functionality.
Remarks:
These features existing in vscode were not implemented currently in this PR:
CQ: https://dev.eclipse.org/ipzilla/show_bug.cgi?id=23016
How to test
Review checklist
Reminder for reviewers