Skip to content

Cursor move around #211

Closed
Closed

Description

@ciaranchen

When I selected a text range, the anchor move around. I disable all other extensions, but the question still exists.

I thought the question is in src/mirrorCursor.ts. the window.onDidChangeTextEditorSelection was called multiple times while I selected a text range. It's parallel.

Then in event handler, it calls exitMirrorMode which change selections.

So when I selected a range of text quickly, anchor will go back to the charator I selected before. And if I click on other position, the anchor will move around the whole page.

Sorry for my poor English. I have tried.

屏幕录制2019-12-14下午12 25 38

Activity

  1. changed the title [-]Anchor move around[/-] [+]Cursor move around[/+] on Dec 14, 2019
  2. fbricon commented on Dec 14, 2019

    @fbricon
    Collaborator

    @ciaranchen try toggling the cursor mirror mode with Ctrl+Shift+F2 (or Cmd+Shift+F2 on mac)

    @NikolasKomonen @xorye when mirror mode is disabled, the event handler should be removed so as to avoid that.

  3. fbricon commented on Dec 14, 2019

    @fbricon
    Collaborator

    This is really bad
    Dec-14-2019 11-05-25

  4. daveb-501commons commented on Dec 14, 2019

    @daveb-501commons

    Happening for me as well - disabled the vscode-xml extension and all is working again

    microsoft/vscode#86966 (comment)
    eclipse-lemminx/lemminx#601

  5. added this to the 0.10.1 milestone on Dec 15, 2019
  6. fbricon commented on Dec 15, 2019

    @fbricon
    Collaborator

    0.10.1 released, the mirror cursor editing has been temporarily removed

  7. angelozerr commented on Dec 15, 2019

    @angelozerr
    Contributor

    Thanks @fbricon !

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions