-
Notifications
You must be signed in to change notification settings - Fork 510
Persistent syntax errors in non PS files #2572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistent syntax errors in non PS files #2572
Comments
If you made a single file edit, do the Problems go away? Like, add a single space in the file. |
no, sadly |
If you add another syntax error (like a random extra |
No, once the type is changed to plain text, the errors are frozen. No new ones get added , but the old ones remain. |
It seems like other extensions have this issue as well... I just reproed with the C# extension: @jhoneill since I'm also seeing this with C# it's going to be an issue on VS Code itself: Can you open an issue there? |
microsoft/vscode#93271 basic said it's the responsibility of the extensions... |
PR out for this. |
System Details
Issue Description
When the default file type is PowerShell, and something else (e.g. JSON) is pasted into a new Window many syntax errors are detected and shown in the problem window

However if the document type changed to JSON or Plain Text the errors are not removed
Even if the file is closed the errors remain
Expected Behaviour
PowerShell syntax errors should only appear while the file is present and believed to be a PowerShell file.
The text was updated successfully, but these errors were encountered: