summaryrefslogtreecommitdiff
path: root/cli/file_fetcher.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-04-09 11:27:27 +1000
committerGitHub <noreply@github.com>2021-04-09 11:27:27 +1000
commitd9d4a5d73c28741deaa2c93d87672ce117315fbf (patch)
tree57d08deb2e80796f9e426a4592b47254b112021d /cli/file_fetcher.rs
parent3168fa4ee7782e72b57745483a7b0df5df5ce083 (diff)
feat(lsp): add registry import auto-complete (#9934)
Diffstat (limited to 'cli/file_fetcher.rs')
-rw-r--r--cli/file_fetcher.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs
index 0c1d9519d..3e4332b24 100644
--- a/cli/file_fetcher.rs
+++ b/cli/file_fetcher.rs
@@ -58,7 +58,7 @@ pub struct File {
/// Simple struct implementing in-process caching to prevent multiple
/// fs reads/net fetches for same file.
-#[derive(Clone, Default)]
+#[derive(Debug, Clone, Default)]
struct FileCache(Arc<Mutex<HashMap<ModuleSpecifier, File>>>);
impl FileCache {
@@ -312,7 +312,7 @@ fn strip_shebang(mut value: String) -> String {
}
/// A structure for resolving, fetching and caching source files.
-#[derive(Clone)]
+#[derive(Debug, Clone)]
pub struct FileFetcher {
auth_tokens: AuthTokens,
allow_remote: bool,