Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
soncodi opened this issue May 9, 2017 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@soncodi
Copy link
Contributor

soncodi commented May 9, 2017

  • 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

@alexdima alexdima added the bug Issue identified by VS Code Team member as probable bug label May 18, 2017
@alexdima alexdima added this to the On Deck milestone May 18, 2017
@alexdima alexdima modified the milestones: May 2017, On Deck May 19, 2017
@jrieken jrieken added the verified Verification succeeded label Jun 1, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants