microsoft / sarif-vscode-extension

SARIF Microsoft Visual Studio Code extension
MIT License
107 stars 48 forks source link

Inefficient: VS Code becomes laggy even in workspace without any SARIF files #527

Open ashsam925 opened 10 months ago

ashsam925 commented 10 months ago

I'm working in a large repository that does not have any SARIF files. VS Code was slowing down to the point where typing 20 characters would take 15-20 seconds to show on screen after I finished typing. After disabling extensions one-by-one, I found SARIF Viewer to be the culprit.

The only files I have open are *.ts files. I'd assume this shouldn't trigger the SARIF viewer, but it seems to be doing something in the background anyways. Assuming that scanning files is taking up a lot of resources, is it possible to only scan *.sarif files, only open files, or to improve the efficiency of scanning files?