When PowerShell crashes and you use Restart Session cache for commands is not cleared
See original GitHub issueSystem Details
System Details Output
### VSCode version: 1.32.1 05f146c7a8f7f78e80261aa3b2a2e642586f9eb3 x64
### VSCode extensions:
atomiks.moonlight@0.7.0
CoenraadS.bracket-pair-colorizer-2@0.0.28
donjayamanne.githistory@0.4.6
eamodio.gitlens@9.5.1
ecmel.vscode-html-css@0.2.0
emmanuelbeziat.vscode-great-icons@2.1.47
GitHub.vscode-pull-request-github@0.5.0
Kelvin.vscode-sshfs@1.14.0
liximomo.remotefs@0.0.13
monokai.theme-monokai-pro-vscode@1.1.12
ms-vscode.PowerShell@1.11.0
PKief.material-icon-theme@3.6.3
shd101wyy.markdown-preview-enhanced@0.3.12
WakaTime.vscode-wakatime@1.2.12
yzhang.markdown-all-in-one@2.1.1
### PSES version: 1.11.0.0
### PowerShell version:
Name Value
---- -----
PSVersion 5.1.17763.316
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.316
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Description
When PowerShell Session crashes you can restart it and so I do. Problem is that with each restart cache for commands is not cleared so you end up with this:
Expected Behaviour
Restart of the session should clear everything, just like it is when you reopen VSCode.
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Where does Powershell ISE store tabs when it crashes?
Using Process Monitor, I've found that the ISE stores and loads its recovered files from: %LOCALAPPDATA%\Microsoft_Corporation\powershell_ise.
Read more >Reset-ProvisioningCache (ExchangePowerShell)
The Reset-ProvisioningCache cmdlet clears the Windows PowerShell provisioning cache of frequently used Active Directory objects. To reduce Active Directory ...
Read more >How to Clear the Cache in Windows 10 - Alphr
Windows Command Prompt is the first option. Click on Start, then put cmd into the search box. Choose Run as Administrator from the...
Read more >How to correctly reset, restart, and recycle IIS websites
Whatever your goal, resetting IIS or stopping IIS services is not the right answer. I wish we had removed the IISRESET command when...
Read more >PowerShell ISE Clear Variables without restarting
How to clear variables in PowerShell ISE Editor without restarting ... this together we can use a single command to have a fresh...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah! @PrzemyslawKlys you might be getting completions from both source AND then generated module!
Nope.