Skip to content

Cursor position not taking into account height of folded code sections when updating #26251

Closed

Description

@soncodi
  • VSCode Version: 1.2.1 (f6868fc)
  • OS Version: Ubuntu 16.04 LTS

Steps to Reproduce:

  1. Open two source files in separate tabs (A and B)

A.ts

function foldMe() {
  console.log('skip many lines');
  console.log('skip many lines');
  console.log('skip many lines');
  console.log('skip many lines');
}


function doSomething() {
  console.log('do something');
}



console.log('purposely left blanks above this');

B.ts

// empty file
  1. Fold the foldMe() function in A, place the cursor inside the doSomething() function.
  2. Press ctrl+tab to switch to B.
  3. Press ctrl+shift+tab to switch back to A.
  4. Press the right arrow key - observe the cursor jumps down by the number of folded lines in foldMe().

Possibly related to #26135, ping alexandrudima

output

Activity

  1. added
    bug
    on May 18, 2017
  2. locked and limited conversation to collaborators on Nov 18, 2017
  3. added a commit that references this issue on Sep 6, 2026
    5be3d17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions