diff options
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] |