jesseduffield / jesseduffield/lazygit

Lazygit crashes Visual Studio Code

Open
#5,647 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

### Describe the bug

When running lazygit in Visual Studio Code's integrated terminal, it sometimes crashes the whole Visual Studio Code.

### To Reproduce

1. Open Visual Studio Code.
2. Start lazygit.
3. Use Visual Studio Code normally.
4. Visual Studio Code crashes after 1~2 day of running.

### Version info:

```
commit=d167063b4f45d044524f3fba97f850d1eec3f95c, build date=2026-04-13T20:06:40Z, build source=binaryRelease, version=0.61.1, os=windows, arch=amd64, git version=2.54.0.windows.1
```

### Terminal info:

PowerShell 7.6.1 within Visual Studio Code's integrated terminal.

Visual Studio Code:
Version: 1.120.0
Commit: 0958016b2af9f09bb4257e0df4a95e2f90590f9f
Date: 2026-05-12T20:17:22Z
Electron: 39.8.8
ElectronBuildId: 13870025
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

### Additional context

Honestly, I don't know if this is a lazygit bug or Visual Studio Code bug.
But I submit this here because Visual Studio Code has no trouble with all other tools I used.
And Visual Studio Code stopped crashing after I stopped keeping lazygit running constantly in the integrated terminal.

Also, the repository I worked on is on GitLab, which constantly asking me to login every few hours.
I checked the running process from time to time, and found that lazygit launches tons of git instances and those instances never goes away.
They even re-spawned after I kill them.

Here is the Windows event log related to the crashes.
```xml



1000
0
2
100
0
0x8000000000000000

408414


Application
Utricularia



Code.exe
0.0.0.0
695c485c
KERNELBASE.dll
10.0.26100.8246
208e0cb7
e0000008
00000000000c79da
0x50cc
0x1dce01daa47f78b
C:\vscode\Code.exe
C:\WINDOWS\System32\KERNELBASE.dll
64fbcdc1-0127-4f26-8d47-b115a820a64c


```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.