Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/codegraph-resolve/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ use std::cell::RefCell;
use std::collections::BTreeSet;
use std::path::Path;

/// `DEFAULT_CACHE_LIMIT` (`index.ts:54`). Override via env in the upstream; the v1 port
/// keeps the fixed default since resolution is a single batch.
const DEFAULT_CACHE_LIMIT: usize = 5_000;
/// `DEFAULT_CACHE_LIMIT` (`index.ts:54`). Override via env in the upstream; the
/// Rust port keeps the fixed default for one resolution run.
pub(crate) const DEFAULT_CACHE_LIMIT: usize = 5_000;

/// A [`ResolutionContext`] over a [`Store`] plus the project root.
///
Expand Down
2 changes: 1 addition & 1 deletion crates/codegraph-resolve/src/import_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@ pub fn resolve_via_import(
}

let imports = context.get_import_mappings(&reference.file_path, reference.language);
if imports.is_empty() && context.read_file(&reference.file_path).is_none() {
if imports.is_empty() && !context.is_file_readable(&reference.file_path) {
return None;
}

Expand Down
Loading
Loading