Syntax error markers do not go away after the issue is corrected
System Details
OS: Windows 10 Enterprise
Version InstallDate OSArchitecture
------- ----------- --------------
10.0.14393 1/26/2017 7:52:53 PM 64-bit
code -v:
1.13.1
379d2efb5539b09112c793d3d9a413017d736f89
$pseditor.EditorServicesVersion:
Major Minor Build Revision
----- ----- ----- --------
1 4 0 0
Extensions:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
$PSVersionTable:
Name Value
---- -----
PSVersion 5.1.14393.1358
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.1358
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Description
VSCode error parser got stuck showing an error on a piece of code that had been corrected. Would not clear until after VSCode was closed/reopened.

Thanks Matt! I've seen this one too, will investigate.
Hey Matt, do you find that you can reproduce this issue reliably or does it only happen in random cases? I'm having a hard time reproducing it reliably.
I can chime in as well - I've seen this, and so far it appears to be totally random. However, I didn't have to close the editor - I could edit the line containing the marker (add a space, etc.) and this would clear the violation.
It does appear for me pretty randomly and it certainly isn't consistent on its timing. I can say that I see it most often within hash tables or custom object building where the key/value pairs are between curly braces. Can't say I've seen it too much outside of that.
I've seen this issue inconsistently as well, it doesn't seem like the PSES is hung, but doing a restart session will "fix" the stalled parsing.