diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-05-08 06:34:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 06:34:42 +0100 |
commit | 5e6c72d39fc6bf809a71e4074e7d6f516d18486a (patch) | |
tree | ab0c15c01c4b73acf0ef49fa3a572f7c700709f8 /cli/lsp/client.rs | |
parent | 5379bb0289faaf39df9d3ce8e02c1d2f631e2696 (diff) |
refactor(lsp): cleanup partially locking methods (#23723)
Diffstat (limited to 'cli/lsp/client.rs')
-rw-r--r-- | cli/lsp/client.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cli/lsp/client.rs b/cli/lsp/client.rs index 4032ba780..719ce53f6 100644 --- a/cli/lsp/client.rs +++ b/cli/lsp/client.rs @@ -50,6 +50,18 @@ impl Client { OutsideLockClient(self.0.clone()) } + pub async fn publish_diagnostics( + &self, + uri: LspClientUrl, + diags: Vec<lsp::Diagnostic>, + version: Option<i32>, + ) { + self + .0 + .publish_diagnostics(uri.into_url(), diags, version) + .await; + } + pub fn send_registry_state_notification( &self, params: lsp_custom::RegistryStateNotificationParams, @@ -141,18 +153,6 @@ impl OutsideLockClient { ) -> Result<Vec<WorkspaceSettings>, AnyError> { self.0.workspace_configuration(scopes).await } - - pub async fn publish_diagnostics( - &self, - uri: LspClientUrl, - diags: Vec<lsp::Diagnostic>, - version: Option<i32>, - ) { - self - .0 - .publish_diagnostics(uri.into_url(), diags, version) - .await; - } } #[async_trait] |