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

Provided formatter is named 'Ruby', makes it hard to distinguish between formatters #467

@connorshea

Description

@connorshea

Your environment

  • vscode-ruby version: 0.22.3
  • Ruby version: 2.6.2p47 (2019-03-13 revision 67232) [x86_64-darwin18]
  • Ruby version manager (if any): rbenv 1.1.2
  • VS Code version: 1.33.0
  • Operating System: macOS 10.14.4
  • Using language server? Yes

Expected behavior

The formatter provided by this extension should have an obvious name, e.g. VSCode Ruby or Rubocop.

Actual behavior

The formatter name is Ruby, which is also what another formatter I have installed is called (I'm not sure which other extension I have installed provides a formatter for Ruby, unfortunately. I have Solargraph installed but disabled.). This makes it pretty confusing what formatter I should be using.

Screen Shot 2019-04-07 at 6 20 49 PM

VS Code 1.33.0 added a feature where you can pick which formatter should be used when multiple are registered for the same file type, which is why this was never relevant before.

Settings

These are my relevant settings:

"ruby.format": "rubocop",
"ruby.lint": {
    "rubocop": true
},
"ruby.useLanguageServer": true,
"[ruby]": {
    "editor.formatOnSave": true
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions