Skip to content

Commit b6972a7

Browse files
authored
[Ignore] Update troubleshooting.md and associated docs (#1541)
* Update and restructure README.md * Update troubleshooting.md * Info on opening an issue * Update README to point at troubleshooting doc * Update bug template to point to troubleshooting.md * Suggest recording a GIF of bugs * Use pasteable version expression in bug report
1 parent 5419ed9 commit b6972a7

File tree

4 files changed

+336
-132
lines changed

4 files changed

+336
-132
lines changed

.github/ISSUE_TEMPLATE/Bug_report.md

+38-14
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ about: Report errors or unexpected behavior 🤔
66

77
<!--
88
9-
BEFORE SUBMITTING A NEW ISSUE, PLEASE READ THE FAQ!!
10-
https://github.com/PowerShell/vscode-powershell/wiki/FAQ
11-
12-
If your issue is not addressed by the FAQ, please
13-
fill in the following details so that we can help you!
9+
BEFORE SUBMITTING A NEW ISSUE, PLEASE READ THE TROUBLESHOOTING DOCS!
10+
https://github.com/PowerShell/vscode-powershell/tree/master/docs/troubleshooting.md
1411
1512
IMPORTANT: you can generate a bug report directly from the
1613
PowerShell extension in Visual Studio Code by selecting
@@ -20,28 +17,55 @@ The more repro details you can provide, along with a zip
2017
of the log files from your session, the better the chances
2118
are for a quick resolution.
2219
20+
You may also want to record a GIF of the bug occurring and
21+
attach it here by dropping the file into the description body.
22+
2323
-->
2424

2525
### System Details
2626

27-
- Operating system name and version:
28-
- VS Code version:
29-
- PowerShell extension version:
30-
- Output from `$PSVersionTable`:
27+
<!--
28+
To help diagnose your issue, the following details are helpful:
29+
- Operating system name and version
30+
- VS Code version
31+
- PowerShell extension version
32+
- Output from `$PSVersionTable`
33+
34+
To get this information, run the following expression in your Integrated Console and paste the output here inside the backticks below:
35+
36+
& {"### VSCode version: $(code -v)"
37+
"`n### VSCode extensions:`n$(code --list-extensions --show-versions | Out-String)"
38+
"`n### PSES version: $($pseditor.EditorServicesVersion)"
39+
"`n### PowerShell version:`n$($PSVersionTable | Out-String)"}
40+
41+
42+
If you are running VSCode Insiders, use this expression instead (and paste the result inside the backticks):
3143
44+
& {"### VSCode version: $(code-insiders -v)"
45+
"`n### VSCode extensions:`n$(code-insiders --list-extensions --show-versions | Out-String)"
46+
"`n### PSES version: $($pseditor.EditorServicesVersion)"
47+
"`n### PowerShell version:`n$($PSVersionTable | Out-String)"}
48+
49+
-->
50+
51+
<!-- PowerShell output from above goes here -->
52+
System Details Output
3253
```
33-
Copy / paste the following commands into the PowerShell Integrated Console, and paste the output here:
3454
35-
code -v
36-
$pseditor.EditorServicesVersion
37-
code --list-extensions --show-versions
38-
$PSVersionTable
3955
```
4056

4157
### Issue Description
4258

4359
I am experiencing a problem with...
4460

61+
#### Expected Behaviour
62+
63+
-- Description of what *should* be happening --
64+
65+
#### Actual Behaviour
66+
67+
-- Description of what actually happens --
68+
4569
### Attached Logs
4670

4771
Follow the instructions in the [README](https://github.com/PowerShell/vscode-powershell#reporting-problems)

README.md

+30-63
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ that Visual Studio Code provides.
88

99
## Platform support
1010

11-
- **Windows 7 through 10** with PowerShell v3 and higher
12-
- **Linux** with PowerShell v6 (all PowerShell-supported distributions)
13-
- **macOS and OS X** with PowerShell v6
11+
- **Windows 7 through 10** with Windows PowerShell v3 and higher, and PowerShell Core
12+
- **Linux** with PowerShell Core (all PowerShell-supported distributions)
13+
- **macOS and OS X** with PowerShell Core
1414

1515
Read the [installation instructions](https://github.com/PowerShell/PowerShell/blob/master/docs/learning-powershell/using-vscode.md)
1616
to get more details on how to use the extension on these platforms.
@@ -26,11 +26,28 @@ Read the [FAQ](https://github.com/PowerShell/vscode-powershell/wiki/FAQ) for ans
2626
- Go to Definition of cmdlets and variables
2727
- Find References of cmdlets and variables
2828
- Document and workspace symbol discovery
29-
- Run selected selection of PowerShell code using `F8`
30-
- Launch online help for the symbol under the cursor using `Ctrl+F1`
29+
- Run selected selection of PowerShell code using <kbd>F8</kbd>
30+
- Launch online help for the symbol under the cursor using <kbd>Ctrl</kbd>+<kbd>F1</kbd>
3131
- Local script debugging and basic interactive console support!
3232

33-
## Quick Installation
33+
## Installing the Extension
34+
35+
You can install the official release of the PowerShell extension by following the steps
36+
in the [Visual Studio Code documentation](https://code.visualstudio.com/docs/editor/extension-gallery).
37+
In the Extensions pane, search for "PowerShell" extension and install it there. You will
38+
get notified automatically about any future extension updates!
39+
40+
You can also install a VSIX package from our [Releases page](https://github.com/PowerShell/vscode-powershell/releases) by following the
41+
[Install from a VSIX](https://code.visualstudio.com/docs/extensions/install-extension#_install-from-a-vsix)
42+
instructions. The easiest way is through the command line:
43+
44+
```
45+
code --install-extension PowerShell-<version>.vsix
46+
```
47+
48+
> NOTE: If you are using VS Code Insiders, the command will be `code-insiders`.
49+
50+
## Script-based Installation
3451

3552
If you're on Windows 7 or greater with the [PowerShellGet](https://msdn.microsoft.com/powershell/gallery/readme)
3653
module installed, you can easily install both Visual Studio Code and the PowerShell
@@ -52,22 +69,14 @@ first before running it in this way!
5269
iex (iwr https://git.io/vbxjj)
5370
```
5471

55-
## Installing the Extension
56-
57-
You can install the official release of the PowerShell extension by following the steps
58-
in the [Visual Studio Code documentation](https://code.visualstudio.com/docs/editor/extension-gallery).
59-
In the Extensions pane, search for "PowerShell" extension and install it there. You will
60-
get notified automatically about any future extension updates!
61-
62-
You can also install a VSIX package from our [Releases page](https://github.com/PowerShell/vscode-powershell/releases) by following the
63-
[Install from a VSIX](https://code.visualstudio.com/docs/extensions/install-extension#_install-from-a-vsix)
64-
instructions. The easiest way is through the command line:
72+
## Reporting Problems
6573

66-
```
67-
code --install-extension PowerShell-<version>.vsix
68-
```
74+
If you experience any problems with the PowerShell Extension, see
75+
[the troubleshooting docs](./docs/troubleshooting.md) for information
76+
on diagnosing and reporting issues.
6977

70-
> NOTE: If you are using VS Code Insiders, the command will be `code-insiders`.
78+
#### Security Note
79+
For any security issues, please see [here](./docs/troubleshooting.md#note-on-security).
7180

7281
## Example Scripts
7382

@@ -88,48 +97,6 @@ To open/view the extension's examples in Visual Studio Code, run the following f
8897
code (Get-ChildItem $Home\.vscode\extensions\ms-vscode.PowerShell-*\examples)[-1]
8998
```
9099

91-
## Reporting Problems
92-
93-
If you're having trouble with the PowerShell extension, please follow these instructions
94-
to file an issue on our GitHub repository:
95-
96-
### 1. File an issue on our [Issues Page](https://github.com/PowerShell/vscode-powershell/issues)
97-
98-
Make sure to fill in the information that is requested in the issue template as it
99-
will help us investigate the problem more quickly.
100-
101-
To automatically create a bug report from within the extension, open the Command pallet (<kbd>Ctrl</kbd>/<kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>) and run the *"Report a problem on GitHub"* command. Some basic information about your instance and powershell versions will be collected and inserted into a new GitHub issue.
102-
103-
NOTE: If you believe that there is a security vulnerability in the PowerShell extension for VSCode,
104-
it **must** be reported to [[email protected]](https://technet.microsoft.com/security/ff852094.aspx) to allow for [Coordinated Vulnerability Disclosure](https://technet.microsoft.com/security/dn467923).
105-
**Only** file an issue, if [email protected] has confirmed filing an issue is appropriate.
106-
107-
### 2. Capture verbose logs and send them to us
108-
109-
If you're having an issue with crashing or other erratic behavior, add the following
110-
line to your User Settings in Visual Studio Code:
111-
112-
```json
113-
"powershell.developer.editorServicesLogLevel": "Verbose"
114-
```
115-
116-
Restart Visual Studio Code and try to reproduce the problem. Once you are done with
117-
that, zip up the logs in the corresponding folder for your operating system:
118-
119-
- **Windows**: `$HOME\.vscode\extensions\ms-vscode.PowerShell-<CURRENT VERSION>\logs`
120-
- **Linux and macOS**: `~/.vscode/extensions/ms-vscode.PowerShell-<CURRENT VERSION>/logs`
121-
122-
Alternatively, you can open the log folder using the Command pallet (<kbd>Ctrl</kbd>/<kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>) and running the *"Open powerShell Extension Logs Folder"* command.
123-
124-
You have two options for sending us the logs:
125-
126-
1. If you are editing scripts that contain sensitive information (intellectual property,
127-
deployment or administrative information, etc), e-mail the logs directly to
128-
129-
130-
2. If you are editing scripts that don't contain sensitive information, you can drag and
131-
drop your logs ZIP file into the GitHub issue that you are creating.
132-
133100
## Contributing to the Code
134101

135102
Check out the [development documentation](docs/development.md) for more details
@@ -139,7 +106,7 @@ on how to contribute to this extension!
139106

140107
- [Keith Hill](https://github.com/rkeithhill) - [@r_keith_hill](http://twitter.com/r_keith_hill)
141108
- [Tyler Leonhardt](https://github.com/tylerl0706) - [@TylerLeonhardt](http://twitter.com/tylerleonhardt)
142-
- [David Wilson](https://github.com/daviwil) - [@daviwil](http://twitter.com/daviwil)
109+
- [Rob Holt](https://github.com/rjmholt)
143110

144111
## License
145112

docs/development.md

+11-8
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,28 @@
55
You'll need to clone two repositories and set up your development environment
66
to before you can proceed.
77

8-
### 1. [Fork and clone](https://help.github.com/articles/fork-a-repo/) the [vscode-powershell repository](https://github.com/PowerShell/vscode-powershell)
8+
1. [Fork and clone](https://help.github.com/articles/fork-a-repo/) the [vscode-powershell repository](https://github.com/PowerShell/vscode-powershell)
99

10-
### 2. [Fork and clone](https://help.github.com/articles/fork-a-repo/) the [PowerShell Editor Services repository](https://github.com/PowerShell/PowerShellEditorServices)
10+
2. [Fork and clone](https://help.github.com/articles/fork-a-repo/) the [PowerShell Editor Services repository](https://github.com/PowerShell/PowerShellEditorServices)
1111

12-
### 3. Follow the [development instructions](https://github.com/PowerShell/PowerShellEditorServices#development) for PowerShell Editor Services
12+
3. Follow the [development instructions](https://github.com/PowerShell/PowerShellEditorServices#development) for PowerShell Editor Services. **You will need to complete this step before proceeding**.
1313

14-
### 4. Install [Visual Studio Code Insiders Release](https://code.visualstudio.com/insiders)
14+
4. Install the latest [Visual Studio Code Insiders release](https://code.visualstudio.com/insiders)
15+
- You can also use the [standard Visual Studio Code release](https://code.visualstudio.com/). Both will work, but using VSCode
16+
Insiders means the extension can be developed ready for new features
17+
and changes in the next VSCode release.
1518

16-
### 5. Install [Node.js](https://nodejs.org/en/) 6.0.0 or higher.
19+
5. Install [Node.js](https://nodejs.org/en/) 6.0.0 or higher.
1720

1821
## Building the Code
1922

2023
#### From Visual Studio Code:
2124

22-
Press <kbd>Ctrl+P</kbd> and type `task build`
25+
Press <kbd>Ctrl</kbd>+<kbd>P</kbd> and type `task build`
2326

2427
This will compile the TypeScript files in the project to JavaScript files.
2528

26-
#### From a command prompt:
29+
#### From a PowerShell prompt:
2730

2831
```
2932
Invoke-Build Build
@@ -34,7 +37,7 @@ Invoke-Build Build
3437
#### From Visual Studio Code:
3538

3639
To debug the extension, press <kbd>F5</kbd>. To run the extension without debugging,
37-
press <kbd>Ctrl+F5</kbd> or <kbd>Cmd+F5</kbd> on macOS.
40+
press <kbd>Ctrl</kbd>+<kbd>F5</kbd> or <kbd>Cmd</kbd>+<kbd>F5</kbd> on macOS.
3841

3942
#### From a command prompt:
4043

0 commit comments

Comments
 (0)