Skip to content

Commit

Permalink
feat: show test output when running via LSP (noir-lang#6049)
Browse files Browse the repository at this point in the history
# Description

## Problem

Alvaro told me that it would be useful to see the output of `println`
statements when running tests via LSP.

## Summary

Output is now always shown when running tests via LSP. If you are
running a single test it's likely you are debugging it too.

## Additional Context

## Documentation

Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.

# PR Checklist

- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
  • Loading branch information
asterite authored Sep 16, 2024
1 parent 31130dc commit 9fb010e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tooling/lsp/src/requests/code_lens_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pub(crate) fn collect_lenses_for_package(
arguments: Some(
[
package_selection_args(workspace, package),
vec!["--exact".into(), func_name.into()],
vec!["--exact".into(), "--show-output".into(), func_name.into()],
]
.concat(),
),
Expand Down
2 changes: 1 addition & 1 deletion tooling/lsp/src/requests/test_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fn on_test_run_request_inner(
&state.solver,
&mut context,
&test_function,
false,
true,
None,
Some(workspace.root_dir.clone()),
Some(package.name.to_string()),
Expand Down

0 comments on commit 9fb010e

Please sign in to comment.