дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 19:25:54 +02:00
Ruby files, `rails server`, Rake tasks, RSpec and Minitest configurations can be debugged with rdbg, using the project's Ruby. In a Bundler project it runs through the bundle; if the bundle lacks the `debug` gem, debugging stops with an error asking to add `gem "debug"` to the Gemfile.
33 рядки
988 B
TOML
33 рядки
988 B
TOML
id = "ruby"
|
|
name = "Ruby"
|
|
extensions = ["rb", "rake", "gemspec", "ru", "rbi", "jbuilder", "podspec"]
|
|
filenames = ["Gemfile", "Rakefile", "Podfile", "Vagrantfile", "Brewfile", "Guardfile", "Fastfile", "Appfile", "Capfile", "Dangerfile", "Steepfile", ".irbrc", ".pryrc"]
|
|
first-line = "^#!.*\\bruby\\b"
|
|
line-comment = "#"
|
|
block-comment = ["=begin", "=end"]
|
|
indent = { tab-size = 2, insert-spaces = true }
|
|
ui-mode = "Ruby"
|
|
tree-sitter = "ruby"
|
|
|
|
[[language-servers]]
|
|
name = "ruby-lsp"
|
|
command = "ruby-lsp"
|
|
root-markers = ["Gemfile", ".ruby-version", ".rubocop.yml"]
|
|
install-hint = "gem install ruby-lsp"
|
|
|
|
[[language-servers]]
|
|
name = "solargraph"
|
|
# Alternative: used only when the server above is not installed.
|
|
fallback = true
|
|
command = "solargraph"
|
|
args = ["stdio"]
|
|
root-markers = ["Gemfile", ".solargraph.yml"]
|
|
install-hint = "gem install solargraph"
|
|
|
|
[debugger]
|
|
adapter = "rdbg"
|
|
command = "rdbg"
|
|
args = ["-O", "--port", "${port}", "-c"]
|
|
transport = "tcp"
|
|
install-hint = "gem install debug"
|