on master help sign in
Enable variable types in DAP config
2158366Dmitry Sharshakov
helix-dap/src/client.rs+4−2
@@ -225,7 +225,9 @@ impl Client {
225 }
225 }
226
226
227 pub fn capabilities(&self) -> &DebuggerCapabilities {
227 pub fn capabilities(&self) -> &DebuggerCapabilities {
228+ self.caps
229+ .as_ref()
228− self.caps.as_ref().expect("debugger not yet initialized!")
230+ .expect("debugger not yet initialized!")
229 }
231 }
230
232
231 pub async fn initialize(&mut self, adapter_id: String) -> Result<()> {
233 pub async fn initialize(&mut self, adapter_id: String) -> Result<()> {
@@ -237,7 +239,7 @@ impl Client {
237 lines_start_at_one: Some(true),
239 lines_start_at_one: Some(true),
238 columns_start_at_one: Some(true),
240 columns_start_at_one: Some(true),
239 path_format: Some("path".to_owned()),
241 path_format: Some("path".to_owned()),
240− supports_variable_type: Some(false),
242+ supports_variable_type: Some(true),
241 supports_variable_paging: Some(false),
243 supports_variable_paging: Some(false),
242 supports_run_in_terminal_request: Some(false),
244 supports_run_in_terminal_request: Some(false),
243 supports_memory_references: Some(false),
245 supports_memory_references: Some(false),