-
Notifications
You must be signed in to change notification settings - Fork 374
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
New delegate command to handle paste events #2349
New delegate command to handle paste events #2349
Conversation
Can one of the admins verify this patch? |
- Invoke jdt.ls's `java.edit.handlePasteEvent` command when vscode-java receives a paste event Requires eclipse-jdtls/eclipse.jdt.ls#2349 Closes redhat-developer#1249 Signed-off-by: David Thompson <davthomp@redhat.com>
8310b59
to
f48765e
Compare
- Invoke jdt.ls's `java.edit.handlePasteEvent` command when vscode-java receives a paste event Requires eclipse-jdtls/eclipse.jdt.ls#2349 Closes redhat-developer#1249 Signed-off-by: David Thompson <davthomp@redhat.com>
- Invoke jdt.ls's `java.edit.handlePasteEvent` command when vscode-java receives a paste event Requires eclipse-jdtls/eclipse.jdt.ls#2349 Closes redhat-developer#1249 Signed-off-by: David Thompson <davthomp@redhat.com>
- Invoke jdt.ls's `java.edit.handlePasteEvent` command when vscode-java receives a paste event Requires eclipse-jdtls/eclipse.jdt.ls#2349 Closes redhat-developer#1249 Signed-off-by: David Thompson <davthomp@redhat.com>
- Invoke jdt.ls's `java.edit.handlePasteEvent` command when vscode-java receives a paste event Requires eclipse-jdtls/eclipse.jdt.ls#2349 Closes redhat-developer#1249 Signed-off-by: David Thompson <davthomp@redhat.com>
f48765e
to
4479d74
Compare
- Invoke jdt.ls's `java.edit.handlePasteEvent` command when vscode-java receives a paste event Requires eclipse-jdtls/eclipse.jdt.ls#2349 Closes redhat-developer#1249 Signed-off-by: David Thompson <davthomp@redhat.com>
4479d74
to
b62f28c
Compare
if (object instanceof LinkedTreeMap) { | ||
return gson.fromJson(gson.toJson(object), clazz); | ||
} |
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.
LinkedTreeMap
is internal to gson so we should avoid using it, mainly because it generates some warnings. However, you don't even need to use this if the client converts the object to a JSON string prior to sending in the delegate handler. In that case it'll be handled by the object instanceof String json
from below.
I'll make the change.
- Add the command `java.edit.handlePasteEvent` to handle modifying paste events - Add logic to modify paste events when the user pastes into a `StringLiteral` Signed-off-by: David Thompson <davthomp@redhat.com>
b62f28c
to
9b6d7f2
Compare
- Invoke jdt.ls's `java.edit.handlePasteEvent` command when vscode-java receives a paste event Requires eclipse-jdtls/eclipse.jdt.ls#2349 Closes redhat-developer#1249 Signed-off-by: David Thompson <davthomp@redhat.com>
- Invoke jdt.ls's `java.edit.handlePasteEvent` command when vscode-java receives a paste event Requires eclipse-jdtls/eclipse.jdt.ls#2349 Closes #1249 Signed-off-by: David Thompson <davthomp@redhat.com>
java.edit.handlePasteEvent
to handle modifying pasteevents
StringLiteral
Signed-off-by: David Thompson davthomp@redhat.com