File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 42
42
43
43
- name : Run tests
44
44
run : bundle exec rake
45
+
46
+ - name : Run index troubleshooting tool
47
+ run : ./exe/ruby-lsp-doctor
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+
6
+ require "ruby_lsp/internal"
7
+
8
+ index = RubyIndexer ::Index . new
9
+
10
+ RubyIndexer . configuration . indexables . each do |indexable |
11
+ puts "indexing: #{ indexable . full_path } "
12
+ content = File . read ( indexable . full_path )
13
+ result = Prism . parse ( content )
14
+ visitor = RubyIndexer ::IndexVisitor . new ( index , result , indexable . full_path )
15
+ result . value . accept ( visitor )
16
+ end
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
15
15
s . files = Dir . glob ( "lib/**/*.rb" ) + [ "README.md" , "VERSION" , "LICENSE.txt" ]
16
16
s . bindir = "exe"
17
- s . executables = [ "ruby-lsp" , "ruby-lsp-check" ]
17
+ s . executables = [ "ruby-lsp" , "ruby-lsp-check" , "ruby-lsp-index-info" ]
18
18
s . require_paths = [ "lib" ]
19
19
20
20
s . add_dependency ( "language_server-protocol" , "~> 3.17.0" )
You can’t perform that action at this time.
0 commit comments