Skip to content

Commit fd07c42

Browse files
committed
Merge pull request PowerShell#65 from rkeithhill/rkeithhill/readme-path-tweak
Fixed issue PowerShell#58, extension install path needs to specify version in path
2 parents c6f25ab + 45061c7 commit fd07c42

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# PowerShell Language Support for Visual Studio Code
22

33
This extension provides rich PowerShell language support for Visual Studio Code.
4-
Now you write and debug PowerShell scripts using the excellent IDE-like interface
4+
Now you can write and debug PowerShell scripts using the excellent IDE-like interface
55
that VS Code provides.
66

77
## Features
@@ -26,11 +26,11 @@ how to use them.
2626

2727
This folder can be found at the following path:
2828
```
29-
c:\Users\<yourusername>\.vscode\extensions\ms-vscode.PowerShell\examples
29+
c:\Users\<yourusername>\.vscode\extensions\ms-vscode.PowerShell-<version>\examples
3030
```
3131
To open/view the extension's examples Visual Studio Code, run the following from your PowerShell command prompt:
3232
```
33-
code $env:USERPROFILE\.vscode\extensions\ms-vscode.PowerShell\examples
33+
code (Get-ChildItem $Home\.vscode\extensions\ms-vscode.PowerShell-*\examples)[-1]
3434
```
3535

3636
## Contributing to the Code

examples/README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
*NOTE: For a more comfortable reading experience, use the key combination `Ctrl+Shift+V`*
44

55
This folder contains a few basic PowerShell script files that you can use
6-
to experiment with the new PowerShell editing and debugging capabilities.
6+
to experiment with the new PowerShell editing and debugging capabilities.
77
Here are some ideas for what you can try with these scripts:
88

99
## Language Features
1010

11-
- **Integrated syntax checks** from the PowerShell engine and **integrated
11+
- **Integrated syntax checks** from the PowerShell engine and **integrated
1212
rule-based analysis** using PowerShell Script Analyzer
1313
- Try opening `DebugTest.ps1` and `StopTest.ps1` by double-clicking on their
1414
file names. You will see red and green squiggles for rule-based checks.
1515
You can introduce a syntax error somewhere to see the red squiggle for
16-
that as well. To see a list of all errors and warnings, try pressing
16+
that as well. To see a list of all errors and warnings, try pressing
1717
`Ctrl+Shift+M`.
18-
- **Go to definition `(F12)`** and **Peek definition `(Alt+F12)`**
18+
- **Go to definition `(F12)`** and **Peek definition `(Alt+F12)`**
1919
for cmdlet and variable names
2020
- Try this on the `Stop-Process2` cmdlet in `StopTest.ps1`
2121
- **Find all references `(Shift+F12)`** for cmdlet and variable names
@@ -28,7 +28,7 @@ Here are some ideas for what you can try with these scripts:
2828
You can run scripts under the debugger by going to the debug workspace
2929
`(Ctrl+Shift+D)` and clicking the `Start` button or just by pressing `F5`.
3030
By default the debugger will start the `DebugTest.ps1` script. You can
31-
set breakpoints, pause execution, look at the call stack, inspect variables,
31+
set breakpoints, pause execution, look at the call stack, inspect variables,
3232
and set specific variables to be watched.
3333

3434
Try these steps:
@@ -38,7 +38,7 @@ Try these steps:
3838
3. Press the blue **Pause** button at the top of the screen. The debugger
3939
will stop executing wherever it is at the moment and will bring you to the
4040
file and line where it stopped.
41-
4. Check out the **Variables** pane at the top left of the window. Scroll
41+
4. Check out the **Variables** pane at the top left of the window. Scroll
4242
through the list and inspect some of the variables there.
4343
5. Find the variable `i` in the Variables list, right click it and select
4444
**Add to Watch**. The variable should appear in the **Watch** pane now.
@@ -57,12 +57,12 @@ when `F5` is pressed.
5757

5858
## Feedback
5959

60-
We would love to hear your feedback! Please post feature requests or issue
60+
We would love to hear your feedback! Please post feature requests or issue
6161
reports on our [GitHub issues page](http://github.com/PowerShell/vscode-powershell).
6262

63-
If you are experiencing any errors or crashes, please include the
63+
If you are experiencing any errors or crashes, please include the
6464
following two log files:
6565

66-
- The language service log file: `$env:USERPROFILE\.vscode\extensions\ms-vscode.PowerShell\bin\EditorServices.log`
67-
- The debugging service log file: `$env:USERPROFILE\.vscode\extensions\ms-vscode.PowerShell\bin\DebugService.log`
68-
- NOTE: This file may not exist if you haven't use the debugger yet.
66+
- The language service log file: `$Home\.vscode\extensions\ms-vscode.PowerShell-<version>\bin\EditorServices.log`
67+
- The debugging service log file: `$Home\.vscode\extensions\ms-vscode.PowerShell-<version>\bin\DebugService.log`
68+
- NOTE: This file may not exist if you haven't use the debugger yet. Replace `<version>` in the paths above with the version number of the extension.

0 commit comments

Comments
 (0)