summaryrefslogtreecommitdiff
path: root/cli/lsp/cache.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lsp/cache.rs')
-rw-r--r--cli/lsp/cache.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/lsp/cache.rs b/cli/lsp/cache.rs
index e21bcff2d..b05dcbc38 100644
--- a/cli/lsp/cache.rs
+++ b/cli/lsp/cache.rs
@@ -21,7 +21,10 @@ use std::thread;
use tokio::sync::mpsc;
use tokio::sync::oneshot;
-type Request = (Vec<ModuleSpecifier>, oneshot::Sender<Result<(), AnyError>>);
+type Request = (
+ Vec<(ModuleSpecifier, deno_graph::ModuleKind)>,
+ oneshot::Sender<Result<(), AnyError>>,
+);
/// A "server" that handles requests from the language server to cache modules
/// in its own thread.
@@ -105,7 +108,7 @@ impl CacheServer {
/// client.
pub async fn cache(
&self,
- roots: Vec<ModuleSpecifier>,
+ roots: Vec<(ModuleSpecifier, deno_graph::ModuleKind)>,
) -> Result<(), AnyError> {
let (tx, rx) = oneshot::channel::<Result<(), AnyError>>();
if self.0.send((roots, tx)).is_err() {