vscode-powershell
vscode-powershell copied to clipboard
Linter gets stuck in strange state, saving removes lots of code
Prerequisites
- [x] I have written a descriptive issue title.
- [x] I have searched all open and closed issues to ensure it has not already been reported.
- [x] I have read the troubleshooting guide.
- [x] I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
- [x] I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
- [x] If this is a security issue, I have read the security issue reporting guidance.
Summary
This is a strange one. It happens sometimes, randomly. Now I got it on tape. 🎥
So the linter will get stuck in some strange state, complaining about an error that is not there.
I then do CTRL + S, and a lot of stuff gets stripped. CTRL + Z to get it back. Did this twice, the second time the linter seemed to "catch up", and the problem went away.
https://github.com/user-attachments/assets/6fa9dd53-3202-4b61-972f-4f15f43e1f0c
PowerShell Version
7.5.2 x64 on Windows 11 24H2 x64
Visual Studio Code Version
1.101.1
18e3a1ec544e6907be1e944a94c496e302073435
x64
Extension Version
[email protected]
Steps to Reproduce
Don't know how to reliably reproduce.
Visuals
No response
Logs
No response