Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git bash prompt running extremely slow #212286

Closed
cpendery opened this issue May 8, 2024 · 1 comment
Closed

git bash prompt running extremely slow #212286

cpendery opened this issue May 8, 2024 · 1 comment
Assignees

Comments

@cpendery
Copy link
Member

cpendery commented May 8, 2024

Does this issue occur when all extensions are disabled?: Yes

Version: 1.90.0-insider (user setup)
Commit: 00bc155
Date: 2024-05-07T05:51:16.352Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Windows_NT x64 10.0.22631

Steps to Reproduce:

  1. Start a git-bash session
  2. Run a command
  3. Wait, the prompt appears after 2-3 seconds

Details

When running __vsc_report_prompt with __vsc_escape_value, it reports

time __vsc_report_prompt

real    0m1.876s
user    0m0.000s
sys     0m0.000s

versus using __vsc_report_prompt before #211963, which reports

time __vsc_report_prompt

real    0m0.249s
user    0m0.000s
sys     0m0.015s

This is using the prompt

DEFAULT='\[\033[0;0m\]'
CYAN='\[\033[0;36m\]'
MAGENTA='\[\033[0;35m\]'
GREEN='\[\033[0;32m\]'
GIT='`__git_ps1`'
export PS1="${MAGENTA}\u${DEFAULT} \w${CYAN}${GIT}${DEFAULT}\n@ "
@cpendery
Copy link
Member Author

Duplicate of #212090

@microsoft microsoft locked and limited conversation to collaborators Jun 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants