vscode-lombok
vscode-lombok copied to clipboard
Question/Feature Request: Delombok?
Are there any plans to support delombok within the VSCode extension? Would love to see that integrated via the extension.
I would also love to see this feature implemented: https://projectlombok.org/features/delombok
As an alternative, you can setup a Task like the following in VS Code to delombok a class.
(Note when this task is run on ClassName.java it will overwrite files ClassName.java_lombok and ClassName.java_delomboked)
{
"label": "Java: delombok file",
"type": "shell",
"presentation": {
"reveal": "silent",
"close": true
},
"problemMatcher": [],
"linux": {
// Backup file to ClassName.java_lombok
"command": "java -jar /path/to/lombok.jar delombok ${file} -p > ${file}_delomboked && mv ${file} ${file}_lombok && mv ${file}_delomboked ${file}"
// Do not backup file to ClassName.java_lombok
// "command": "java -jar /path/to/lombok.jar delombok ${file} -p > ${file}_delomboked && mv ${file}_delomboked ${file}"
},
"windows": {
"options": {"shell": {"executable": "C:\\WINDOWS\\System32\\cmd.exe", "args": [ "/d", "/c" ]} },
// Backup file to ClassName.java_lombok
"command": "java -jar c:\\path\\to\\lombok.jar delombok ${file} -p > ${file}_delomboked && move ${file} ${file}_lombok && move ${file}_delomboked ${file}"
// Do not backup file to ClassName.java_lombok
// "command": "java -jar c:\\path\\to\\lombok.jar delombok ${file} -p > ${file}_delomboked && move ${file}_delomboked ${file}"
}
}
Would be a great addition to the plugin!
We just released a new version 1.1.0, which supports code actions to lombok/delombok the annotations. Feel free to have a try and give us feedback.

@testforstephen Cool, seems to work like a charm :) Thank you!