-
Notifications
You must be signed in to change notification settings - Fork 249
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
Terminal background not detected properly in Lefthook #1305
Comments
This seems like it may be due to an interaction Lefthook and VSCode. Qlty tries to figure out if it is on a light terminal or dark terminal using this code: qlty/qlty-cli/src/ui/highlight.rs Lines 18 to 27 in f735309
We are using termbg to do the detection. It looks like termbg has to add support for different kinds of terminals: https://github.com/dalance/termbg?tab=readme-ov-file#verified-terminals Maybe VSCode is supported by termbg, but Lefthook is behaving differently causing termbg to not be able to detect it. |
@lamualfa -- To keep things organized, I split the prior GitHub issue into two items: This bug for the terminal background problem, and a Feature Request for enhancing the |
What happened?
When run via Lefthook, Qlty is rendering a black background into a light colored terminal.
Output when running through lefthook
Output when running directly in terminal
Relevant Files
lefthook.yml
The text was updated successfully, but these errors were encountered: