Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Added support for ruby.format, defaults to false (no formatting). #298

Merged
merged 2 commits into from
Mar 27, 2018
Merged

Added support for ruby.format, defaults to false (no formatting). #298

merged 2 commits into from
Mar 27, 2018

Conversation

gurgeous
Copy link
Contributor

Added support for ruby.format, defaults to false (no formatting). Set it to 'rubocop' to enable rubocop formatting. Fixes #295.

it to 'rubocop' to enable rubocop formatting.

import * as cp from "child_process";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Whitespace changes here. VSCode's guidelines use tabs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd be happy to dig up a prettier config that matches the VSCode guidelines and start using it for vscode-ruby... Might result in a lot of changes, though. Especially if we decided to just run it in one PR. Separate PR, perhaps?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Converting the whole codebase should be a standalone PR. In the mean time...hand format? Sorry but following the VSCode guidelines is in the PR template

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See the new commit in #297. If that one looks good, let me know and I'll make the same change here.

I re-ran prettier with the following options. We should start using this ASAP and then we could avoid these discussions forever. :)

{
  "printWidth": 100,
  "singleQuote": true,
  "trailingComma": "es5",
  "useTabs": true
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good to know on the prettier options. We can add that at a later time. In the mean time, people will have to continue to suffer through the code style guidelines by hand.

@wingrunr21 wingrunr21 merged commit 65a301a into rubyide:master Mar 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants