Sha256: f06c6bc36cdfdc06bcf3bc5c2d351fd6756155069f37cb74e5851401325dceda

Contents?: true

Size: 704 Bytes

Versions: 7

Compression:

Stored size: 704 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift(File.expand_path("../lib", __dir__))
require "ruby_lsp/internal"

if File.exist?(".index.yml")
  begin
    config = YAML.parse_file(".index.yml").to_ruby
  rescue => e
    abort("Error parsing config: #{e.message}")
  end
  RubyIndexer.configuration.apply_config(config)
end

index = RubyIndexer::Index.new

puts "Globbing for indexable files"

RubyIndexer.configuration.indexables.each do |indexable|
  puts "indexing: #{indexable.full_path}"
  content = File.read(indexable.full_path)
  result = Prism.parse(content)
  collector = RubyIndexer::Collector.new(index, result, indexable.full_path)
  collector.collect(result.value)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby-lsp-0.16.6 exe/ruby-lsp-doctor
ruby-lsp-0.16.5 exe/ruby-lsp-doctor
ruby-lsp-0.16.4 exe/ruby-lsp-doctor
ruby-lsp-0.16.3 exe/ruby-lsp-doctor
ruby-lsp-0.16.2 exe/ruby-lsp-doctor
ruby-lsp-0.16.1 exe/ruby-lsp-doctor
ruby-lsp-0.16.0 exe/ruby-lsp-doctor