Skip to content

Commit 5422638

Browse files
authored
Apply suggestions from code review
1 parent 6efbbf0 commit 5422638

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

docs/usage/vscode.mdx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ title: Visual Studio Code
33
description: See how Visual Studio Code and its extensions helps you run and debug your Pester tests directly inside the editor
44
---
55

6-
Using Visual Studio Code with the latest [PowerShell extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell) provides a great experience for writing PowerShell code. The extension includes Pester-specific features to improve the way you write, run and debug Pester tests.
6+
Using Visual Studio Code with the latest [PowerShell extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell) provides a great experience for writing PowerShell code. The extension even includes Pester-specific features to improve the way you write, run and debug tests.
77

88
### Code lens
99

10-
With the `Pester: Code Lens` setting enabled, VSCode will show `Run tests` or `Debug tests` links above your Pester blocks for quick execution. Starting with Pester 5 this also works on individual tests. You can even run tests that are marked as skipped by running them individually.
10+
The editor shows `Run tests` or `Debug tests` links above your Pester blocks for quick execution of `Describe` and `Context` blocks. Starting with Pester 5 this also works on individual tests. You can even run tests that are marked as skipped by running them individually.
1111

1212
![Shows a single test being run using the new Code Lens](images/single-test.gif)
1313

@@ -16,7 +16,8 @@ To enable the improved code lens for Pester 5 you need to disable the "Use Legac
1616
1. In Visual Studio Code, open **File | Preferences | Settings** (<kbd>⌘/Ctrl</kbd> + <kbd>,</kbd>)
1717
2. In the **Settings** window, navigate to the **Extensions | PowerShell** section.
1818
3. Uncheck the **Pester: Use Legacy Code Lens** checkbox.
19-
4. Close the **Settings** window.
19+
4. Make sure **Pester: Code Lens** is checked (default).
20+
5. Close the **Settings** window.
2021

2122
### Output verbosity
2223

@@ -26,13 +27,11 @@ You can control the output verbosity level in VSCode output, or let it inherit f
2627

2728
### Navigation
2829

29-
Pester-blocks are recognized by the PowerShell-extension to simplify navigation in your test files.
30+
Pester-blocks are recognized as symbols to simplify navigation in multiple ways:
3031

31-
- The Outline panle shows an overview of your Pester-blocks.<br/>
32+
- The Outline panel shows an overview of your Pester-blocks.<br/>
3233
![Shows a outline of Pester block structure in the sidepanel](images/vscode-outline.png)
33-
34-
- Your current location in easily identified using breadcrumbs or the sticky scroll features.<br/>
34+
- The current location in nested blocks are shown in breadcrumbs and sticky scroll.<br/>
3535
![Shows nested blocks as sticky lines above the current line in the editor](images/vscode-breadcrumbs.png)
36-
37-
- `Context`, `Describe` and `It` blocks are all searchable using Go to symbol commands.<br/>
36+
- `Context`, `Describe` and `It` blocks are all searchable using "Go to symbol" commands.<br/>
3837
![Shows a search result for Help is found-test using the Go To Symbol in Workspace command](images/vscode-symbol.png)

0 commit comments

Comments
 (0)