question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

My cursor is on speed, often leaves VS Code behind.

See original GitHub issue

As you may have noticed in some of my recordings, my cursor is 🏇 🏇 🏇 🏇 🏇 🛒.

I some times move too fast, and VS Code rendering will not be up to date. Or sometimes, VS Code’s cursor will have moved further than mine. Maybe this happens once it has been slammed with all the previous movement, and then VS Code handles the input instead of neovim? I think that may be the case, because sometimes in insert mode I’ll type some stuff, then ctrl+c and start moving with j, but instead I’ll see jjjjjj inputted into the text.

I think this is also more likely to happen when other things are taking up CPU, so that it slows both VS Code and Neovim down.

I noticed the Vim plugin also has the same issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
trusktrcommented, Jan 9, 2021

What I experience happens most often when there’s lots of system load and VS Code is operating slowly (I only have 8GB RAM, so working at full mem usage and swap space swapping is usually when it happens). The slowness seems to cause races or something, and then text editing gets out of sync, but it always catches up. When VS Code is slow and I’m trying to edit fast, then sometimes the edits don’t happen where I expected they would (like I would expect with vim on a slow network). Similar to the movement, the edits happen at the erroneous cursor positions before the cursor lands at the correct spots and I’ve already inputted the vim commands before things settle.

0reactions
vlwkaoscommented, Feb 4, 2021

I experienced similar issue. on 0.7x versions. Most noticeable for me is when I type ‘o’ to open line in normal mode, it enters insert mode further down the next line. Also I have seen what @trustkr is experiencing too sometimes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I have a problem with the cursor in visual studio code [closed]
I can´t edit any code in the program when i try it looks like i´m in "insert" mode with like a block cursor....
Read more >
Visual Studio Code Tips and Tricks
You can add additional cursors to all occurrences of the current selection with Ctrl+Shift+L. add cursor to all occurrences of current selection. Note:...
Read more >
6 Tips to Improve Your Coding Speed [LAZY EDITION] - OOZOU
1. Move cursor by word ... Now you can navigate the codebase faster. If you hold the Shift button along the way then...
Read more >
Find and fix performance issues of your VS Code Extension
Most refactorings are exposed as VS Code Quick Fixes. Regarding where your cursor is, VS Code will tell you the relevant refactorings you ......
Read more >
25 VS Code Productivity Tips and Speed Hacks - YouTube
Learn 25 VS Code tips and tricks that will help you write code faster. Try out awesome new features and extensions that turn...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found