The VSCodeVim team prioritizes issues based on reaction count.
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Environment:
What happened:
When I have a long line of text, expecially a JSX element with a parameter with long text in quotes, VS Code starts to work very slowly or completely crashes. This doesn't happen when Vim for VS Code is disabled.
What did you expect to happen:
Should work normally - not slowing down / crashing editor.
How to reproduce it:
Open a JSX file with VS Code with Vim extension enabled, try to edit a long line.
+1
Please, if anyone has a workaround at least, please let us know! I have to disable the plugin if I write something with longer lines or switch to Vim temporary, which is not cool at all...
Could you guys provide an example file? I tried it on a file I had lying around and I couldn't replicate.
It just happened to me using this code:
import React from 'react';
import Snackbar from 'material-ui/Snackbar';
const CookiesConsent = (props) => {
return (
<Snackbar {...props} a message={'En poursuivant votre navigation, vous acceptez l\'utilisation de cookies destin茅s 脿 la r茅alisation de statistiques de visites.'} />
);
}
export default CookiesConsent;
@hristod Have you tried disabling any other extensions? For me the culprit actually seems to be the "auto-rename tag" extension. It seems to blow up with extremely long lines with lots of attributes. See this issue. With that disabled Vim performs fine for me.
@jhixson I haven't tried this one! And it does make great sense! I will disable it right now and will observe :) Thanks again for the great tip!
@jhixson thanks for the tip, I removed the extensions below and it seems to work fine now. The issue only happened when working with JSX/TSX files.
I confirm too, removing Auto Rename Tag worked for me! Thanks, @jhixson!
Removing Auto Close Tag extension works for me!
For me, the plugin Beautify created the issue
Most helpful comment
@jhixson thanks for the tip, I removed the extensions below and it seems to work fine now. The issue only happened when working with JSX/TSX files.