exe/ruby-lsp-doctor in ruby-lsp-0.15.0 vs exe/ruby-lsp-doctor in ruby-lsp-0.16.0
- old
+ new
@@ -2,9 +2,18 @@
# 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|