You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that when I create a new git project, editing the message for the first commit in helix is extremely slow. It locks for seconds at a time between keystrokes before anything appears on screen.
Reproduction Steps
I tried this:
Create a project
mkdir hardhat
cd hardhat
npm init --yes
npm install --save=dev hardhat
`echo "node_modules" > .gitignore
git init
git add *
git commit -av <- assumes hx is set as the default git editor
I expected this to happen:
When editing the commit message for the first commit, I expect helix to be fast and responsive, as usual.
Instead, this happened:
Editing the message is extremely laggy. It takes seconds for characters to appear in insert mode.
Helix log
No response
Platform
Linux
Terminal Emulator
'Terminal' on ChromeOS
Helix Version
v0.5.0-887-gc0dbd6dc
The text was updated successfully, but these errors were encountered:
I suspect the package-lock.json is pretty large for this first commit, right? Highlighting for verbose commits (git commit -v) can be horribly laggy when there are many lines changed. I updated tree-sitter-git-commit with a fix that is very snappy even on commits with thousands of lines changed. It should make its way into the next release. In the meantime, you can avoid the slow performance by not using the -v flag when you know a commit will be very large.
Summary
I have noticed that when I create a new git project, editing the message for the first commit in helix is extremely slow. It locks for seconds at a time between keystrokes before anything appears on screen.
Reproduction Steps
I tried this:
Create a project
mkdir hardhat
cd hardhat
npm init --yes
npm install --save=dev hardhat
git init
git add *
git commit -av
<- assumeshx
is set as the default git editorI expected this to happen:
Instead, this happened:
Helix log
No response
Platform
Linux
Terminal Emulator
'Terminal' on ChromeOS
Helix Version
v0.5.0-887-gc0dbd6dc
The text was updated successfully, but these errors were encountered: