lib/ruby_lsp/requests/support/common.rb in ruby-lsp-0.13.2 vs lib/ruby_lsp/requests/support/common.rb in ruby-lsp-0.13.3

- old
+ new

@@ -68,11 +68,12 @@ data: data, ) end sig { params(file_path: String).returns(T.nilable(T::Boolean)) } - def defined_in_gem?(file_path) - DependencyDetector.instance.typechecker && BUNDLE_PATH && !file_path.start_with?(T.must(BUNDLE_PATH)) && + def not_in_dependencies?(file_path) + BUNDLE_PATH && + !file_path.start_with?(T.must(BUNDLE_PATH)) && !file_path.start_with?(RbConfig::CONFIG["rubylibdir"]) end sig { params(node: Prism::CallNode).returns(T::Boolean) } def self_receiver?(node)