Skip to content
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 context menu to update source attachment for the binary classfile #699

Merged

Conversation

testforstephen
Copy link
Collaborator

Signed-off-by: Jinbo Wang jinbwan@microsoft.com

It fixes the bug #233 (Add ability to attach missing source). This PR will enable the context menu Update Source Attachment on the jdt content provider. See the peer PR on eclipse.jdt.ls eclipse-jdtls/eclipse.jdt.ls#837

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
@testforstephen
Copy link
Collaborator Author

testforstephen commented Oct 31, 2018

This PR will only support selecting a jar/zip file as new source, and use the default OS encoding to parse attachment. I feel like folder and encoding support is a low priority, so don't support selecting a folder and changing the attachment encoding format yet, how do you think?

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
@fbricon
Copy link
Collaborator

fbricon commented Oct 31, 2018

I have a separate POC to set source encoding, I need to share. For now we'll keep it simple

package.json Outdated
},
{
"command": "java.project.updateSourceAttachment",
"when": "false == true"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm stupid. Use false instead. The purpose is to stop the command showing in the command palette.

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
@fbricon fbricon merged commit e8c3551 into redhat-developer:master Nov 14, 2018
@testforstephen testforstephen deleted the jinbo_sourceattachment branch November 14, 2018 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants