diff options
author | Dmitry Sharshakov | 2021-09-03 20:11:06 +0000 |
---|---|---|
committer | Dmitry Sharshakov | 2021-09-03 20:11:06 +0000 |
commit | cf7237d0b920eeb7d887c192bc46c44990cc9b68 (patch) | |
tree | 8f4081775dabcbce34c6ceb7e2f4e34cd560a6a5 /helix-dap/src/types.rs | |
parent | c63ad60c31cb51481b227c1d610d3eb7b2f95529 (diff) |
compat: make thread IDs signed
Delve needs it
Diffstat (limited to 'helix-dap/src/types.rs')
-rw-r--r-- | helix-dap/src/types.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/helix-dap/src/types.rs b/helix-dap/src/types.rs index c1781243..3af29922 100644 --- a/helix-dap/src/types.rs +++ b/helix-dap/src/types.rs @@ -157,7 +157,7 @@ pub struct StackFrame { #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct Thread { - pub id: usize, + pub id: isize, pub name: String, } @@ -317,7 +317,7 @@ pub mod requests { #[derive(Debug, Default, PartialEq, Clone, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct ContinueArguments { - pub thread_id: usize, + pub thread_id: isize, } #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] @@ -338,7 +338,7 @@ pub mod requests { #[derive(Debug, Default, PartialEq, Clone, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct StackTraceArguments { - pub thread_id: usize, + pub thread_id: isize, pub start_frame: Option<usize>, pub levels: Option<usize>, pub format: Option<StackFrameFormat>, @@ -424,7 +424,7 @@ pub mod requests { #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct StepInArguments { - pub thread_id: usize, + pub thread_id: isize, pub target_id: Option<usize>, pub granularity: Option<String>, } @@ -441,7 +441,7 @@ pub mod requests { #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct StepOutArguments { - pub thread_id: usize, + pub thread_id: isize, pub granularity: Option<String>, } @@ -457,7 +457,7 @@ pub mod requests { #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct NextArguments { - pub thread_id: usize, + pub thread_id: isize, pub granularity: Option<String>, } @@ -473,7 +473,7 @@ pub mod requests { #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct PauseArguments { - pub thread_id: usize, + pub thread_id: isize, } #[derive(Debug)] @@ -551,7 +551,7 @@ pub mod events { pub struct Stopped { pub reason: String, pub description: Option<String>, - pub thread_id: Option<usize>, + pub thread_id: Option<isize>, pub preserve_focus_hint: Option<bool>, pub text: Option<String>, pub all_threads_stopped: Option<bool>, @@ -561,7 +561,7 @@ pub mod events { #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct Continued { - pub thread_id: usize, + pub thread_id: isize, pub all_threads_continued: Option<bool>, } @@ -581,7 +581,7 @@ pub mod events { #[serde(rename_all = "camelCase")] pub struct Thread { pub reason: String, - pub thread_id: usize, + pub thread_id: isize, } #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] |