diff options
author | Dmitry Sharshakov | 2021-08-22 11:44:16 +0000 |
---|---|---|
committer | Dmitry Sharshakov | 2021-08-22 11:44:16 +0000 |
commit | 3197c2536ecb0f4f7aa4dfb75ece549b72249541 (patch) | |
tree | dbba559627220579fffbd00c45eea9107673eae8 /helix-dap/src/client.rs | |
parent | 838f69929db3d9d1e30fa52913a730f2e64b0681 (diff) |
Add eval command
Diffstat (limited to 'helix-dap/src/client.rs')
-rw-r--r-- | helix-dap/src/client.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs index ebaae83c..98b88e23 100644 --- a/helix-dap/src/client.rs +++ b/helix-dap/src/client.rs @@ -352,4 +352,19 @@ impl Client { self.request::<requests::Pause>(args).await } + + pub async fn eval( + &mut self, + expression: String, + frame_id: Option<usize>, + ) -> Result<requests::EvaluateResponse> { + let args = requests::EvaluateArguments { + expression, + frame_id, + context: None, + format: None, + }; + + self.request::<requests::Evaluate>(args).await + } } |