diff options
Diffstat (limited to 'cli/lsp/client.rs')
-rw-r--r-- | cli/lsp/client.rs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/cli/lsp/client.rs b/cli/lsp/client.rs index 84953c4d4..915af6831 100644 --- a/cli/lsp/client.rs +++ b/cli/lsp/client.rs @@ -96,6 +96,17 @@ impl Client { }); } + pub fn send_did_upgrade_check_notification( + &self, + params: lsp_custom::DidUpgradeCheckNotificationParams, + ) { + // do on a task in case the caller currently is in the lsp lock + let client = self.0.clone(); + spawn(async move { + client.send_did_upgrade_check_notification(params).await; + }); + } + pub fn show_message( &self, message_type: lsp::MessageType, @@ -165,6 +176,10 @@ trait ClientTrait: Send + Sync { &self, params: lsp_custom::DidChangeDenoConfigurationNotificationParams, ); + async fn send_did_upgrade_check_notification( + &self, + params: lsp_custom::DidUpgradeCheckNotificationParams, + ); async fn workspace_configuration( &self, scopes: Vec<Option<lsp::Url>>, @@ -249,6 +264,16 @@ impl ClientTrait for TowerClient { .await } + async fn send_did_upgrade_check_notification( + &self, + params: lsp_custom::DidUpgradeCheckNotificationParams, + ) { + self + .0 + .send_notification::<lsp_custom::DidUpgradeCheckNotification>(params) + .await + } + async fn workspace_configuration( &self, scopes: Vec<Option<lsp::Url>>, @@ -350,6 +375,12 @@ impl ClientTrait for ReplClient { ) { } + async fn send_did_upgrade_check_notification( + &self, + _params: lsp_custom::DidUpgradeCheckNotificationParams, + ) { + } + async fn workspace_configuration( &self, scopes: Vec<Option<lsp::Url>>, |