diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2022-02-01 09:33:57 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 09:33:57 +1100 |
commit | 7d356250e8bbe4e37e3651b328fda76178489588 (patch) | |
tree | 2034053509e324fef72ead3e13e52ec66a06e59d /cli/lsp/cache.rs | |
parent | 5490cfed2000a063ef0baec500ab7d539203067c (diff) |
refactor: integrate deno_graph breaking changes (#13495)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/lsp/cache.rs')
-rw-r--r-- | cli/lsp/cache.rs | 7 |
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() { |