lib/ruby_indexer/lib/ruby_indexer/configuration.rb in ruby-lsp-0.12.5 vs lib/ruby_indexer/lib/ruby_indexer/configuration.rb in ruby-lsp-0.13.0

- old
+ new

@@ -118,10 +118,10 @@ indexables.concat( Dir.glob(File.join(default_path, "**", "*.rb"), File::FNM_PATHNAME | File::FNM_EXTGLOB).map! do |path| IndexablePath.new(RbConfig::CONFIG["rubylibdir"], path) end, ) - else + elsif pathname.extname == ".rb" # If the default_path is a Ruby file, we index it indexables << IndexablePath.new(RbConfig::CONFIG["rubylibdir"], default_path) end end