From 85411bed83615895f4138fa080c07c257631d7f7 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Mon, 4 Jul 2022 09:32:28 -0500 Subject: [PATCH] DAP: Make `cwd` required in RunTerminalArguments The spec has `cwd` in `RunInTerminalRequestArguments` as non-optional: https://microsoft.github.io/debug-adapter-protocol/specification#Reverse_Requests_RunInTerminal --- helix-dap/src/types.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helix-dap/src/types.rs b/helix-dap/src/types.rs index 71b2aa83..45f45cca 100644 --- a/helix-dap/src/types.rs +++ b/helix-dap/src/types.rs @@ -700,8 +700,7 @@ pub mod requests { pub kind: Option, #[serde(skip_serializing_if = "Option::is_none")] pub title: Option, - #[serde(skip_serializing_if = "Option::is_none")] - pub cwd: Option, + pub cwd: String, pub args: Vec, #[serde(skip_serializing_if = "Option::is_none")] pub env: Option>>,