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

health - add formatter to display #7986

Merged
merged 4 commits into from
Jan 9, 2024

Conversation

Sammo98
Copy link
Contributor

@Sammo98 Sammo98 commented Aug 17, 2023

First PR here, hopefully this should be able to close #6992 by adding formatter to both the --health and --health <lang> options.

@Sammo98 Sammo98 changed the title health - add formatter to display #6992 health - add formatter to display Aug 17, 2023
@Sammo98
Copy link
Contributor Author

Sammo98 commented Aug 17, 2023

Some screenshots here to show the changes in effect:

Screenshot 2023-08-17 at 21 17 12 Screenshot 2023-08-17 at 21 16 51

Copy link
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, I just have a minor nit about the order we print the health checks in --health <lang>

Comment on lines +288 to +293
probe_protocol(
"formatter",
lang.formatter
.as_ref()
.map(|formatter| formatter.command.to_string()),
)?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move this after the debug adapter so the order matches the overall --health display

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reviewing @the-mikedavis , just pushed to move this as you have suggested.

Configured language server: pylsp
Binary for language server: /opt/homebrew/bin/pylsp
Configured debug adapter: None
Configured formatter: black
Binary for formatter: /opt/homebrew/bin/black
Highlight queries: ✓
Textobject queries: ✓

@the-mikedavis the-mikedavis added C-enhancement Category: Improvements S-waiting-on-review Status: Awaiting review from a maintainer. labels Dec 21, 2023
@archseer archseer merged commit 65d0412 into helix-editor:master Jan 9, 2024
6 checks passed
dgkf pushed a commit to dgkf/helix that referenced this pull request Jan 30, 2024
mtoohey31 pushed a commit to mtoohey31/helix that referenced this pull request Jun 2, 2024
Vulpesx pushed a commit to Vulpesx/helix that referenced this pull request Jun 7, 2024
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add formatter to hx --health
3 participants