fork of https://github.com/tree-sitter/tree-sitter-graph
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Format debug location more clearly

+12 -2
+12 -2
src/execution.rs
··· 348 348 ) -> Result<(), ExecutionError> { 349 349 if let Some(location_attr) = &config.location_attr { 350 350 attributes 351 - .add(location_attr.clone(), format!("{}", self.location)) 351 + .add( 352 + location_attr.clone(), 353 + format!( 354 + "line {} column {}", 355 + self.location.row + 1, 356 + self.location.column + 1 357 + ), 358 + ) 352 359 .map_err(|_| ExecutionError::DuplicateAttribute(location_attr.as_str().into()))?; 353 360 } 354 361 Ok(()) ··· 373 380 Variable::Unscoped(v) => v.location, 374 381 }; 375 382 attributes 376 - .add(location_attr.clone(), format!("{}", location)) 383 + .add( 384 + location_attr.clone(), 385 + format!("line {} column {}", location.row + 1, location.column + 1), 386 + ) 377 387 .map_err(|_| ExecutionError::DuplicateAttribute(location_attr.as_str().into()))?; 378 388 } 379 389 Ok(())