Skip to content

Slow down VS Code interface when some git commands are run #4507

@FPtje

Description

@FPtje

Ever since the last version of VS Code (1.75.0), and presumably the last version of this extension (0.58.0), I've been experiencing horrible interface freezes and crashes. Today I've found out they're related to git commands, and this extension.

  • Extension version: 0.58.0
  • VSCode Version: 1.75.0
  • OS: Ubuntu 22.04

Steps to Reproduce:

  • On some repositories (the one I can reproduce it on is private, so sorry for not helping there)
  • Open "Running extensions"
  • Start profile
  • Edit a file, save
  • Open the terminal in vs code
  • run git add <file>
  • run git commit --amend --no-edit
  • Wait about 3-5 seconds
  • Have the entire interface freeze for anything between 5 and 30 full seconds
  • Either:
    • VS Code crashes, so you'll have to try again (reported crash is that the extension host was killed)
    • The profile succeeds, and puts this extension squarely at the top of the profile,

Notes

  • The freezing and crashing sometimes happens randomly. As in, I'll be using a different application altogether, and when I go back to VS Code I suddenly find it with the "Hey I crashed lol" window.
  • The above point could be explained by me running a reproducing git command before switching to the mentioned different program.
  • Screenshot below shows how this extension takes a ridiculous amount of time. I'm assuming this is interface time, and not background thread time, so that would be this extension blocking the interface for 4 seconds.
  • See profile_results.txt for an exact profile. I have no idea how to read this, but I'm hoping you do.

Screenshot_20230208_171219

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions