Run an analysis with Visual Studio Code extension
You can trigger snyk test
by using one of these methods:
automatic (default)
manual
Snyk Code and IaC configuration scans are triggered automatically when you open your Project and when you save any supported files. This behavior can be turned off in user experience configuration.
Snyk Open Source, by default, does not automatically run on save, but you can enable auto-scan in the configuration settings.
When the scan happens automatically, observe that the extension picks up the files and uploads them for analysis as soon as you open your Project or save any supported files.
Snyk Open Source requires the Snyk CLI, so it is downloaded in the background.
Snyk Code analysis runs quickly without the CLI, so results may be available quickly. If there is a delay, you see in-progress messages for each type of scan while Snyk scans your workspace for vulnerabilities and issues:

To trigger snyk test
manually:
Click the Snyk icon in the sidebar to open the Snyk panel.
Click the Rescan (play) button at the top of the extension panel.

Last updated
Was this helpful?