Skip to content

Commit

Permalink
Add debug lens for rebar3 projects
Browse files Browse the repository at this point in the history
Summary: Return a code lens associated to the `debugSingle` command, so that it can be used to start a debugging session from the IDE.

Reviewed By: alanz

Differential Revision: D68200393

fbshipit-source-id: 89929b4e846f692c773e4cb0fd7f6a2e93e6841a
  • Loading branch information
robertoaloi authored and facebook-github-bot committed Jan 16, 2025
1 parent 71978c9 commit 5cf0e42
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/elp/src/to_proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,14 @@ pub(crate) fn code_lens(
data: None,
});
}
if lens_config.debug {
let debug_command = command::debug_single(&r, debug_title);
acc.push(lsp_types::CodeLens {
range: annotation_range,
command: Some(debug_command),
data: None,
});
}
}
ProjectBuildData::Static(_) => {}
ProjectBuildData::Otp => {}
Expand Down

0 comments on commit 5cf0e42

Please sign in to comment.