diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2021-12-15 13:23:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-15 13:23:43 -0500 |
commit | 6c324acf2363e88293ab94cf3de6c9d7a264b55d (patch) | |
tree | b0d7c8752bf7e7b471be4a50e65572d501bb8b5a /cli/lsp/diagnostics.rs | |
parent | a1f0796fccfafee19b2fe06155efe746da2e9654 (diff) |
feat: REPL import specifier auto-completions (#13078)
Diffstat (limited to 'cli/lsp/diagnostics.rs')
-rw-r--r-- | cli/lsp/diagnostics.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs index 64c696ada..82a08c8f9 100644 --- a/cli/lsp/diagnostics.rs +++ b/cli/lsp/diagnostics.rs @@ -1,6 +1,7 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. use super::analysis; +use super::client::Client; use super::documents; use super::documents::Documents; use super::language_server; @@ -125,7 +126,7 @@ impl DiagnosticsServer { pub(crate) fn start( &mut self, language_server: Arc<Mutex<language_server::Inner>>, - client: lspower::Client, + client: Client, ts_server: Arc<tsc::TsServer>, ) { let (tx, mut rx) = mpsc::unbounded_channel::<()>(); @@ -530,7 +531,7 @@ async fn generate_deps_diagnostics( /// Publishes diagnostics to the client. async fn publish_diagnostics( - client: &lspower::Client, + client: &Client, collection: &mut DiagnosticCollection, snapshot: &language_server::StateSnapshot, ) { @@ -569,7 +570,7 @@ async fn publish_diagnostics( /// Updates diagnostics for any specifiers that don't have the correct version /// generated and publishes the diagnostics to the client. async fn update_diagnostics( - client: &lspower::Client, + client: &Client, collection: Arc<Mutex<DiagnosticCollection>>, snapshot: Arc<language_server::StateSnapshot>, ts_server: &tsc::TsServer, |