Skip to content

Commit

Permalink
Add de-highlighting to coverage readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jaisnan committed Sep 8, 2023
1 parent 6b863f6 commit fbeea67
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Check [user guide](docs/user-guide.md) for more detailed information.
- One-click button for verifying Kani harnesses.
- Generate counterexamples as Rust unit tests.
- Debug counterexamples using a standard debugger.
- View coverage information inline using VS Code source highlighting.

## Requirements

Expand All @@ -32,7 +33,7 @@ NOTE: The extension only works on Cargo packages. For standalone Rust files, Kan
| :-------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------- |
| `kani.enable-codelens` | Enable Codelens actions for `Run Test (Kani)` & `Debug Test (Kani)`. | `true` |
| `kani.show-output-window` | Toggle to show the output terminal window containing the full output from Kani. | `false` |

| `kani.highlight-coverage` | Toggle to enable the codelens button for `Generage Coverage` by default. | `false`

## Installation

Expand Down
7 changes: 7 additions & 0 deletions docs/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,10 @@ Coverage information (as described in the [RFC for line coverage](https://model-
- **Red:** Indicates `NONE` coverage.

**NOTE**: Line-based coverage information is an unstable feature.


#### De-highlight coverage information

To remove or de-highlight the coverage information presented on the UI, open the command palette with `Shift + Command + P` (Mac) / `Ctrl + Shift + P` (Windows/Linux). Then, search for the command `De-highlight coverage`. This should revert the VS Code UI to it's normal state (pre-coverage).

![De-highlight command](../resources/screenshots/de-highlight.png)
Binary file added resources/screenshots/de-highlight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fbeea67

Please sign in to comment.