Improving Solargraph options (#16899)
I'm following the guidance of https://solargraph.org/guides/rails as well as https://github.com/iftheshoefritz/solargraph-rails The goal is to improve the [Language Server Protocol (LSP)][1] support for Ruby in this repository. For Emacs this means I get intellisense type support (e.g. meaningful auto-completion based on symbols). For those using VSCode or Vim, there are Solargraph plugins available, scroll to the [Supported Editors section of Solargraph's homepage][2]. [1]:https://microsoft.github.io/language-server-protocol/specifications/specification-current/ [2]:https://solargraph.org
This commit is contained in:
parent
bf2973bdc4
commit
8724a3724f
7 changed files with 41 additions and 8 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -103,3 +103,6 @@ dump.rdb
|
|||
|
||||
# pry configuration file
|
||||
.pryrc
|
||||
|
||||
# generated yarddoc
|
||||
doc/
|
||||
23
.solargraph.yml
Normal file
23
.solargraph.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
include:
|
||||
- "**/*.rb"
|
||||
exclude:
|
||||
- spec/**/*
|
||||
- test/**/*
|
||||
- vendor/**/*
|
||||
- ".bundle/**/*"
|
||||
require: []
|
||||
domains: []
|
||||
reporters:
|
||||
- rubocop
|
||||
- require_not_found
|
||||
formatter:
|
||||
rubocop:
|
||||
cops: safe
|
||||
except: []
|
||||
only: []
|
||||
extra_args: []
|
||||
require_paths: []
|
||||
plugins:
|
||||
- solargraph-rails
|
||||
max_files: 5000
|
||||
4
Gemfile
4
Gemfile
|
|
@ -125,7 +125,11 @@ group :development do
|
|||
gem "listen", "~> 3.7", require: false # Helps 'listen' to file system modifications events (also used by other gems like guard)
|
||||
gem "memory_profiler", "~> 1.0", require: false # Memory profiling routines for Ruby 2.3+
|
||||
gem "solargraph", "~> 0.44", require: false # For LSP support (such as symbol renaming, documentation lookup)
|
||||
gem "solargraph-rails", "~> 0.3.1", require: false # For LSP support with Rails
|
||||
gem "web-console", "~> 4.2" # Rails Console on the Browser
|
||||
gem "yard", "~> 0.9" # Documentation format
|
||||
gem "yard-activerecord", "~> 0.0"
|
||||
gem "yard-activesupport-concern", "~> 0.0"
|
||||
end
|
||||
|
||||
group :development, :test do
|
||||
|
|
|
|||
19
Gemfile.lock
19
Gemfile.lock
|
|
@ -330,8 +330,6 @@ GEM
|
|||
globalid (1.0.0)
|
||||
activesupport (>= 5.0)
|
||||
google-protobuf (3.19.4)
|
||||
google-protobuf (3.19.4-x86_64-darwin)
|
||||
google-protobuf (3.19.4-x86_64-linux)
|
||||
guard (2.18.0)
|
||||
formatador (>= 0.2.4)
|
||||
listen (>= 2.7, < 4.0)
|
||||
|
|
@ -493,12 +491,6 @@ GEM
|
|||
nokogiri (1.13.3)
|
||||
mini_portile2 (~> 2.8.0)
|
||||
racc (~> 1.4)
|
||||
nokogiri (1.13.3-arm64-darwin)
|
||||
racc (~> 1.4)
|
||||
nokogiri (1.13.3-x86_64-darwin)
|
||||
racc (~> 1.4)
|
||||
nokogiri (1.13.3-x86_64-linux)
|
||||
racc (~> 1.4)
|
||||
notiffany (0.1.3)
|
||||
nenv (~> 0.1)
|
||||
shellany (~> 0.0)
|
||||
|
|
@ -793,6 +785,9 @@ GEM
|
|||
thor (~> 1.0)
|
||||
tilt (~> 2.0)
|
||||
yard (~> 0.9, >= 0.9.24)
|
||||
solargraph-rails (0.3.1)
|
||||
activesupport
|
||||
solargraph (>= 0.41.1)
|
||||
sprockets (4.0.3)
|
||||
concurrent-ruby (~> 1.0)
|
||||
rack (> 1, < 3)
|
||||
|
|
@ -881,6 +876,10 @@ GEM
|
|||
nokogiri (~> 1.8)
|
||||
yard (0.9.27)
|
||||
webrick (~> 1.7.0)
|
||||
yard-activerecord (0.0.16)
|
||||
yard (>= 0.8.3)
|
||||
yard-activesupport-concern (0.0.1)
|
||||
yard (>= 0.8)
|
||||
zeitwerk (2.5.4)
|
||||
zonebie (0.6.1)
|
||||
|
||||
|
|
@ -1018,6 +1017,7 @@ DEPENDENCIES
|
|||
simplecov (~> 0.21.2)
|
||||
slack-notifier (~> 2.4)
|
||||
solargraph (~> 0.44)
|
||||
solargraph-rails (~> 0.3.1)
|
||||
sprockets (~> 4.0)
|
||||
staccato (~> 0.5)
|
||||
stackprof (~> 0.2)
|
||||
|
|
@ -1039,6 +1039,9 @@ DEPENDENCIES
|
|||
webmock (~> 3.14)
|
||||
webpacker (~> 5.4.3)
|
||||
with_model (~> 2.1.6)
|
||||
yard (~> 0.9)
|
||||
yard-activerecord (~> 0.0)
|
||||
yard-activesupport-concern (~> 0.0)
|
||||
zonebie (~> 0.6.1)
|
||||
|
||||
RUBY VERSION
|
||||
|
|
|
|||
BIN
vendor/cache/solargraph-rails-0.3.1.gem
vendored
Normal file
BIN
vendor/cache/solargraph-rails-0.3.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/yard-activerecord-0.0.16.gem
vendored
Normal file
BIN
vendor/cache/yard-activerecord-0.0.16.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/yard-activesupport-concern-0.0.1.gem
vendored
Normal file
BIN
vendor/cache/yard-activesupport-concern-0.0.1.gem
vendored
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue