Skip to content

Commit 0502eed

Browse files
StevenBucher98andyleejordan
authored andcommitted
Adding back reporting issue title
1 parent 091db7b commit 0502eed

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

docs/troubleshooting.md

+14-7
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,19 @@ and you can ask for new features [in their repository](https://github.com/Micros
147147
- Document formatting is provided by [PSScriptAnalyzer], but there
148148
may be opportunities to improve our integration with it in the
149149
[PowerShell Extension] too.
150-
- PSReadLine throws an error ever so often [#3701](https://github.com/PowerShell/vscode-powershell/issues/3701)
151-
- This is a known issue due to the
152-
`OnPowerShellIdle` function
153-
waiting to process events unknown we know the rest of the startup process has finished.
154-
- A known work around includes unregistering from this event. `Get-EventSubscriber -Force -SourceIdentifier PowerShell.OnIdle -EA 0 | Unregister-Event -Force` can be added to your profile to help prevent this issue.
155-
- Related Issues [#3091](https://github.com/PowerShell/PSReadLine/issues/3091) [#16585](https://github.com/Azure/azure-powershell/issues/16586)
150+
- PSReadLine throws an error ever so often - [#3701](https://github.com/PowerShell/vscode-powershell/issues/3701)
151+
- This is a known issue due to the PowerShell eventing framework running registered
152+
`OnIdle` events outside of PowerShell Editor Service's dedicated PowerShell execution
153+
pipeline. Until we can disable event registration, you will need to avoid registering
154+
events in the first place.
155+
- A known work around includes unregistering from this event.
156+
`Get-EventSubscriber -Force -SourceIdentifier PowerShell.OnIdle -EA 0 | Unregister-Event -Force`
157+
can be run manually (or added to your profile) to avoid this bug.
158+
* Related issues: [PowerShell Editor Services #1591](https://github.com/PowerShell/PowerShellEditorServices/issues/1591),
159+
[PSReadLine #3091](https://github.com/PowerShell/PSReadLine/issues/3091),
160+
[Azure PowerShell #16585](https://github.com/Azure/azure-powershell/issues/16586)
161+
162+
## Reporting an issue
156163

157164
If you experience a problem with the [PowerShell Extension]:
158165

@@ -267,7 +274,7 @@ In some cases, getting to the bottom of a bug will require looking at the payloa
267274
```json
268275
"powershell editor services.trace.server":"verbose"
269276
```
270-
277+
271278
> NOTE: While VSCode will not recognize and highlight it, it is a valid option and enables tracer logs on the server.
272279
273280
- Restart Visual Studio Code and reproduce the issue.

0 commit comments

Comments
 (0)