-
Notifications
You must be signed in to change notification settings - Fork 408
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
Add missing import on paste #2320
Conversation
test this please |
Signed-off-by: Shi Chen <chenshi@microsoft.com>
6d2e77c
to
b4a2595
Compare
If I have a Java file, and I put my cursor after the main class declaration, then I add a newline and attempt to paste without saving, nothing ends up being pasted. |
Signed-off-by: Shi Chen <chenshi@microsoft.com>
👍, I can reproduce this issue, fixed in e88736a |
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.
Works well for me!
@datho7561 thanks for reviewing! And I have another concern, should we surrond https://github.com/redhat-developer/vscode-java/blob/7738468875332c3a94f5b62a88ff2ede67aa49eb/src/pasteEventHandler.ts#L92 with a try-catch to avoid the possible bugs in the server side? (when unexpected exception throws, the client side can fall back to paste the original text directly, so that the server bug will not block users) |
I think that that's a good idea, yes. |
related to redhat-developer/vscode-java#2795