Skip to content

Feature Request: Format the Gemfile #80

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

Closed
Petercopter opened this issue Aug 29, 2022 · 3 comments · Fixed by #91
Closed

Feature Request: Format the Gemfile #80

Petercopter opened this issue Aug 29, 2022 · 3 comments · Fixed by #91

Comments

@Petercopter
Copy link
Contributor

Would it be within the scope of syntax_tree to format the Gemfile? I swear at one point prettier-ruby was doing it, but I could be going crazy.

@kddnewton
Copy link
Member

Not out of scope at all! You can pass stree write Gemfile if you want, or you can configure the rake task to include it per the README.

@Petercopter
Copy link
Contributor Author

Hey sorry I should have specified that I was looking for this functionality in VSCode. I tested passing it through the .streerc file, but no dice.

Also, I would expect it to work out of the box, since the Gemfile is technically a Ruby file, right?

--plugins=plugin/single_quotes,haml
--write Gemfile

@kddnewton
Copy link
Member

Ahh I see. Yeah that's an issue for the VSCode extension.

@kddnewton kddnewton reopened this Aug 30, 2022
@kddnewton kddnewton transferred this issue from ruby-syntax-tree/syntax_tree Aug 30, 2022
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 a pull request may close this issue.

2 participants