Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Extremely slow when typing (limited to a special row)

Open thomai-d opened this issue 6 years ago • 4 comments

Describe the bug Typing in this particular line is extremely slow if the vim-plugin is activated. It's only this particular line. Every other codelines work fine.

To Reproduce

  1. Open the attached file and type "required [(ngModel)]="amount" at the end of line 18 without vim plugin installed => Everything is fine
  2. Install the vim plugin (1.0.8)
  3. Restart vscode
  4. Repeat step 1

Expected behavior No delay when typing.

Screenshots vim

In the video, I'm typing as fast as without the plugin, but there is a huge delay between typing and the characters showing on the screen. When I'm circling the mouse around the cursor position, I'm already finished typing for a few seconds but the character appear slowly one after each other.

It's only in this particular file (attached) and online in line 18. But I can reproduce the problem on another PC, too.

Environment (please complete the following information):

  • Extension Version: 1.0.8
  • OS Version: Windows_NT x64 10.0.17134
  • VSCode version: 1.31.1

add-expense.component.html.txt

thomai-d avatar Feb 22 '19 15:02 thomai-d

Running into the same thing when editing a large JSON file. Disabling the vim extension sped things right back up.

Extension: 1.1.0 OS: MacOS 10.12.6 (16G1815) VSCode: 1.33.0-insider (1.33.0-insider)

gvanderest avatar Mar 11 '19 22:03 gvanderest

I've been running into similar issues. It only seems to occur when editing long lines of JSX, wrapped inside a switch statement, and I'm typing inside an attribute. The latest culprit:

switch (status) {
  // snip
  case Status.LOADING:
    return <Loading title="Loading subscriptions..." body="Please wait. Fetching your subscriptions from the r" />;
  // snip
}

The longer the line gets, the more it lags, and eventually the extension host crashes. I can add more if I wrap the JSX element across multiple lines so it doesn't get so long. But it's still a bit of a pain.

I've experienced the same problem across 4 separate machines. I don't know the exact versions on the other machines, but my current one:

Extension Version: 1.11.2 OS Version: Ubuntu 18.04.3 LTS (Reported as Linux x64 5.0.0-31-generic snap in VS Code About) VSCode version: 1.39.2

sean0x42 avatar Oct 20 '19 23:10 sean0x42

Anyone have a fix for this? When it starts lagging for me it usually takes about 10-20 seconds to render a single character. I do notice it happening a lot when working with JSX

ajess33 avatar Mar 07 '20 19:03 ajess33

same issue

gruvw avatar Jul 08 '22 07:07 gruvw