You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@fbricon What are you trying to do on paste? Run formatter or run code actions? The former already exists via editor.formatOnPaste and it will call available DocumentRangeFormattingEditProviders, the latter doesn't exists but would be a valid feature request imo (/cc @mjbvz)
vscode-java 0.52.0 has been released with the fix. The original paste action is no longer overridden. You now need to paste with Ctrl+Shift+v (Cmd+Shift+v on mac) to enjoy the auto import on paste.
Reacted by Alexandru Dima, Peter Neely and YYX-KISS
Activity
egamma commentedon Oct 22, 2019
//fyi @akaroml
fbricon commentedon Oct 22, 2019
The bug is fixed, but I'll disable the feature by default for starters, will release an update ASAP.
Disable java.actionsOnPaste.organizeImports by default. See #1115
fbricon commentedon Oct 22, 2019
@alexandrudima @akaroml @testforstephen see proposed fix in #1116. I'll cut a release once merged.
jrieken commentedon Oct 23, 2019
@fbricon What are you trying to do on paste? Run formatter or run code actions? The former already exists via
editor.formatOnPasteand it will call availableDocumentRangeFormattingEditProviders, the latter doesn't exists but would be a valid feature request imo (/cc @mjbvz)fbricon commentedon Oct 23, 2019
@jrieken I want to trigger organize import on paste. See microsoft/vscode#43718
jrieken commentedon Oct 23, 2019
Thanks - I'll make sure it's on our radar
fbricon commentedon Oct 23, 2019
vscode-java 0.52.0 has been released with the fix. The original paste action is no longer overridden. You now need to paste with Ctrl+Shift+v (Cmd+Shift+v on mac) to enjoy the auto import on paste.
alexdima commentedon Oct 23, 2019
Thank you for the prompt fix ❤️ !