Add missing import on paste#2320
Conversation
|
test this please |
Signed-off-by: Shi Chen <[email protected]>
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 <[email protected]>
👍, I can reproduce this issue, fixed in e88736a |
|
@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