If you have a folder "A" open that has shows sarif errors in the list, and then if you go to File > Open Folder and open a new folder "B", all subsequent opens (including folder "B") will not display sarif errors. Manually dragging and dropping the .sarif file into the VS window will not fix the error.
Repro steps:
Open VS and click "Open a local folder", choose a directory with .sarif files
Once you have confirmed that the sarif results are populated in the error list, do File > Open folder and choose an arbitrary folder (At this point, even if the new directory has a .sarif directory, sarif errors will not appear in the error list)
After this, do File > Open folder and re-open the initial folder. Sarif errors will not show on this one.
If you have a folder "A" open that has shows sarif errors in the list, and then if you go to File > Open Folder and open a new folder "B", all subsequent opens (including folder "B") will not display sarif errors. Manually dragging and dropping the .sarif file into the VS window will not fix the error. Repro steps: