Skip to content

Please do not override paste #1115

Closed

Description

@alexdima

Hi, I'm a VS Code developer and we started to notice a number of issues lately regarding paste being broken:

Please consider removing this functionality or talk to us so we can add necessary API to enable format on paste. cc @jrieken @egamma


Steps To Reproduce
  1. create multiple cursors and copy
  2. move to another region and paste
Current Result
Expected Result
Additional Informations

Activity

  1. egamma commented on Oct 22, 2019

    @egamma

    //fyi @akaroml

  2. fbricon commented on Oct 22, 2019

    @fbricon
    Collaborator

    The bug is fixed, but I'll disable the feature by default for starters, will release an update ASAP.

  3. fbricon commented on Oct 22, 2019

    @fbricon
    Collaborator

    @alexandrudima @akaroml @testforstephen see proposed fix in #1116. I'll cut a release once merged.

  4. jrieken commented on Oct 23, 2019

    @jrieken

    @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)

  5. fbricon commented on Oct 23, 2019

    @fbricon
    Collaborator

    @jrieken I want to trigger organize import on paste. See microsoft/vscode#43718

  6. jrieken commented on Oct 23, 2019

    @jrieken

    Thanks - I'll make sure it's on our radar

  7. fbricon commented on Oct 23, 2019

    @fbricon
    Collaborator

    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.

  8. alexdima commented on Oct 23, 2019

    @alexdima
    Author

    Thank you for the prompt fix ❤️ !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions