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

Run formatter from Document directory #12315

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

robgonnella
Copy link

@robgonnella robgonnella commented Dec 22, 2024

Addresses issue #10187

@robgonnella robgonnella force-pushed the issue-10187-use-document-dir-when-formatting branch from 739cda7 to 75c8980 Compare December 22, 2024 05:09
@robgonnella robgonnella changed the title Run formatter from Document directory (#10187) Run formatter from Document directory Dec 22, 2024
@robgonnella
Copy link
Author

This is an attempt to solve an issue where the external formatter is run from the directory in which helix was launched rather than from the working directory of the document / buffer being updated. In mono-repos this results in a failure to detect formatter configs in subdirectories.

I'm new to Rust and this project so apologies if my approach is way off here. Any feedback is greatly appreciated!

@robgonnella robgonnella force-pushed the issue-10187-use-document-dir-when-formatting branch from 1e83176 to 2c8fe9f Compare December 27, 2024 15:20
@robgonnella robgonnella force-pushed the issue-10187-use-document-dir-when-formatting branch from 2c8fe9f to 93d1514 Compare December 27, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant