Skip to content

Bug with multicursor copy/paste #1112

Closed

Description

@deather

Hi,

Since the version 0.51.0 is out, I had strange bugs. Some copy/paste fonctionnality is buggy, like paste with multi-selector or the copy/paste of a line.

First case

Steps to reproduce :

  1. Copy a text with ctrl+c
  2. Use multiselection
  3. Paste the text with ctrl+v
Current Result

Paste the text only on the first selection.

Expected Result

The text copied should be paste on all selection.

Second case

Steps to reproduce :

  1. Put your cursor anywhere on a line without selection
  2. Hit ctrl+c
  3. Hit ctrl+v
Current Result

Paste the line copied at the cursor.

Expected Result

A copy of the line should be pasted above the line where the cursor is located.

I hope this post is clear and thanks for reading.

Environment
Validation : 6ab598523be7a800d7f3eb4d92d7ab9a66069390
Date : 2019-10-15T15:33:40.634Z
Électron : 4.2.10
Chrome : 69.0.3497.128
Node.js : 10.11.0
V8 : 6.9.427.31-electron.0
OS : Linux x64 5.2.0-2-amd64

Activity

  1. fbricon commented on Oct 21, 2019

    @fbricon
    Collaborator

    Indeed, this was mentioned in #1098
    See:

    For now you should disable the autoimport on paste feature with

    "java.saveActions.organizeImports": false
  2. deather commented on Oct 21, 2019

    @deather
    Author

    Thanks for the response but this doesn't fix the bug. The only way I found is to downgrade to version 0.50.0.

  3. fbricon commented on Oct 21, 2019

    @fbricon
    Collaborator

    sorry, that was the wrong preference, try "java.actionsOnPaste.organizeImports": false

  4. deather commented on Oct 21, 2019

    @deather
    Author

    It seems to be ok with this settings 👍

    Really thanks @fbricon

  5. changed the title [-]Bug with copy/paste[/-] [+]Bug with multicursor copy/paste[/+] on Oct 22, 2019
  6. fbricon commented on Oct 22, 2019

    @fbricon
    Collaborator

    @deather you can install the latest CI build containing the fix, from https://download.jboss.org/jbosstools/jdt.ls/staging/?C=M;O=D

  7. deather commented on Oct 22, 2019

    @deather
    Author

    I tested the latest CI build. The first bug is fixed, but the second is still there.

  8. added this to the End October 2019 milestone on Oct 22, 2019
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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions