summaryrefslogtreecommitdiff
path: root/cli/lsp/client.rs
diff options
context:
space:
mode:
authorhaturau <135221985+haturatu@users.noreply.github.com>2024-11-20 01:20:47 +0900
committerGitHub <noreply@github.com>2024-11-20 01:20:47 +0900
commit85719a67e59c7aa45bead26e4942d7df8b1b42d4 (patch)
treeface0aecaac53e93ce2f23b53c48859bcf1a36ec /cli/lsp/client.rs
parent67697bc2e4a62a9670699fd18ad0dd8efc5bd955 (diff)
parent186b52731c6bb326c4d32905c5e732d082e83465 (diff)
Merge branch 'denoland:main' into main
Diffstat (limited to 'cli/lsp/client.rs')
-rw-r--r--cli/lsp/client.rs35
1 files changed, 35 insertions, 0 deletions
diff --git a/cli/lsp/client.rs b/cli/lsp/client.rs
index b3f0d64fa..65865d5b3 100644
--- a/cli/lsp/client.rs
+++ b/cli/lsp/client.rs
@@ -92,6 +92,19 @@ impl Client {
});
}
+ pub fn send_did_refresh_deno_configuration_tree_notification(
+ &self,
+ params: lsp_custom::DidRefreshDenoConfigurationTreeNotificationParams,
+ ) {
+ // 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_refresh_deno_configuration_tree_notification(params)
+ .await;
+ });
+ }
+
pub fn send_did_change_deno_configuration_notification(
&self,
params: lsp_custom::DidChangeDenoConfigurationNotificationParams,
@@ -169,6 +182,10 @@ trait ClientTrait: Send + Sync {
params: lsp_custom::DiagnosticBatchNotificationParams,
);
async fn send_test_notification(&self, params: TestingNotification);
+ async fn send_did_refresh_deno_configuration_tree_notification(
+ &self,
+ params: lsp_custom::DidRefreshDenoConfigurationTreeNotificationParams,
+ );
async fn send_did_change_deno_configuration_notification(
&self,
params: lsp_custom::DidChangeDenoConfigurationNotificationParams,
@@ -249,6 +266,18 @@ impl ClientTrait for TowerClient {
}
}
+ async fn send_did_refresh_deno_configuration_tree_notification(
+ &self,
+ params: lsp_custom::DidRefreshDenoConfigurationTreeNotificationParams,
+ ) {
+ self
+ .0
+ .send_notification::<lsp_custom::DidRefreshDenoConfigurationTreeNotification>(
+ params,
+ )
+ .await
+ }
+
async fn send_did_change_deno_configuration_notification(
&self,
params: lsp_custom::DidChangeDenoConfigurationNotificationParams,
@@ -366,6 +395,12 @@ impl ClientTrait for ReplClient {
async fn send_test_notification(&self, _params: TestingNotification) {}
+ async fn send_did_refresh_deno_configuration_tree_notification(
+ &self,
+ _params: lsp_custom::DidRefreshDenoConfigurationTreeNotificationParams,
+ ) {
+ }
+
async fn send_did_change_deno_configuration_notification(
&self,
_params: lsp_custom::DidChangeDenoConfigurationNotificationParams,