Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/src/languages/ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ To switch to `ruby-lsp`, add the following to your `settings.json`:
"languages": {
"Ruby": {
"language_servers": ["ruby-lsp", "!solargraph", "!rubocop", "..."]
},
// Enable herb and ruby-lsp for *.html.erb files
Copy link
Contributor Author

Choose a reason for hiding this comment

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

herb is enabled by default for *.html.erb.

"HTML+ERB": {
"language_servers": ["herb", "ruby-lsp", "..."]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Following the note above, I think we could leave it as ["ruby-lsp", "..."] but I want to show that we explicitly enable both herb and ruby-lsp.

},
// Enable ruby-lsp for *.js.erb files
"JS+ERB": {
"language_servers": ["ruby-lsp", "..."]
},
// Enable ruby-lsp for *.yaml.erb files
"YAML+ERB": {
"language_servers": ["ruby-lsp", "..."]
}
}
}
Expand Down