diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-05-11 17:17:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 17:17:14 -0400 |
commit | 28a72d548801f81a96ff4bba750d8dc51a2b1567 (patch) | |
tree | 0a689e1256d6e20f071156f5c8d0f52758a58d2d /cli/lsp/client.rs | |
parent | c926bc0debd0df3bf62d5125a490f8675e70c6ef (diff) |
feat(lsp): ability to configure document pre-load limit (#19097)
Adds a `deno.preloadLimit` option (ex. `"deno.preloadLimit": 2000`)
which specifies how many file entries to traverse on the file system
when the lsp loads or its configuration changes.
Closes #18955
Diffstat (limited to 'cli/lsp/client.rs')
-rw-r--r-- | cli/lsp/client.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/cli/lsp/client.rs b/cli/lsp/client.rs index e684dc09f..d24d4c2a9 100644 --- a/cli/lsp/client.rs +++ b/cli/lsp/client.rs @@ -26,13 +26,6 @@ pub enum TestingNotification { Progress(testing_lsp_custom::TestRunProgressParams), } -#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] -pub enum LspClientKind { - #[default] - CodeEditor, - Repl, -} - #[derive(Clone)] pub struct Client(Arc<dyn ClientTrait>); @@ -51,10 +44,6 @@ impl Client { Self(Arc::new(ReplClient)) } - pub fn kind(&self) -> LspClientKind { - self.0.kind() - } - /// Gets additional methods that should only be called outside /// the LSP's lock to prevent deadlocking scenarios. pub fn when_outside_lsp_lock(&self) -> OutsideLockClient { @@ -160,7 +149,6 @@ impl OutsideLockClient { #[async_trait] trait ClientTrait: Send + Sync { - fn kind(&self) -> LspClientKind; async fn publish_diagnostics( &self, uri: lsp::Url, @@ -189,10 +177,6 @@ struct TowerClient(tower_lsp::Client); #[async_trait] impl ClientTrait for TowerClient { - fn kind(&self) -> LspClientKind { - LspClientKind::CodeEditor - } - async fn publish_diagnostics( &self, uri: lsp::Url, @@ -312,10 +296,6 @@ struct ReplClient; #[async_trait] impl ClientTrait for ReplClient { - fn kind(&self) -> LspClientKind { - LspClientKind::Repl - } - async fn publish_diagnostics( &self, _uri: lsp::Url, |