microsoft / sarif-visualstudio-extension

SARIF Microsoft Visual Studio Viewer Extension
MIT License
46 stars 19 forks source link

Opening a folder will not populate sarif error list after the initial open #591

Closed edkazcarlson-ms closed 1 year ago

edkazcarlson-ms commented 1 year ago

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. image Repro steps:

  1. Open VS and click "Open a local folder", choose a directory with .sarif files
  2. 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)
  3. After this, do File > Open folder and re-open the initial folder. Sarif errors will not show on this one.