@@ -35,21 +35,23 @@ pub struct DebuggerCapabilities {
35#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
35#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
36#[serde(rename_all = "camelCase")]
36#[serde(rename_all = "camelCase")]
37struct InitializeArguments {
37struct InitializeArguments {
38+ #[serde(rename = "clientID")]
38− client_id: String,
39+ client_id: Option<String>,
39− client_name: String,
40+ client_name: Option<String>,
41+ #[serde(rename = "adapterID")]
40 adapter_id: String,
42 adapter_id: String,
41− locale: String,
43+ locale: Option<String>,
42 #[serde(rename = "linesStartAt1")]
44 #[serde(rename = "linesStartAt1")]
43− lines_start_at_one: bool,
45+ lines_start_at_one: Option<bool>,
44 #[serde(rename = "columnsStartAt1")]
46 #[serde(rename = "columnsStartAt1")]
45− columns_start_at_one: bool,
47+ columns_start_at_one: Option<bool>,
46− path_format: String,
48+ path_format: Option<String>,
47− supports_variable_type: bool,
49+ supports_variable_type: Option<bool>,
48− supports_variable_paging: bool,
50+ supports_variable_paging: Option<bool>,
49− supports_run_in_terminal_request: bool,
51+ supports_run_in_terminal_request: Option<bool>,
50− supports_memory_references: bool,
52+ supports_memory_references: Option<bool>,
51− supports_progress_reporting: bool,
53+ supports_progress_reporting: Option<bool>,
52− supports_invalidated_event: bool,
54+ supports_invalidated_event: Option<bool>,
55#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
57#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
@@ -415,19 +417,19 @@ impl Client {
416 pub async fn initialize(&mut self, adapter_id: String) -> Result<()> {
418 pub async fn initialize(&mut self, adapter_id: String) -> Result<()> {
417 let args = InitializeArguments {
419 let args = InitializeArguments {
418− client_id: "hx".to_owned(),
420+ client_id: Some("hx".to_owned()),
419− client_name: "helix".to_owned(),
421+ client_name: Some("helix".to_owned()),
420 adapter_id,
422 adapter_id,
421− locale: "en-us".to_owned(),
423+ locale: Some("en-us".to_owned()),
422− lines_start_at_one: true,
424+ lines_start_at_one: Some(true),
423− columns_start_at_one: true,
425+ columns_start_at_one: Some(true),
424− path_format: "path".to_owned(),
426+ path_format: Some("path".to_owned()),
425− supports_variable_type: false,
427+ supports_variable_type: Some(false),
426− supports_variable_paging: false,
428+ supports_variable_paging: Some(false),
427− supports_run_in_terminal_request: false,
429+ supports_run_in_terminal_request: Some(false),
428− supports_memory_references: false,
430+ supports_memory_references: Some(false),
429− supports_progress_reporting: true,
431+ supports_progress_reporting: Some(true),
430− supports_invalidated_event: true,
432+ supports_invalidated_event: Some(true),
433 let response = self
435 let response = self