Settings
The Visual Studio Code extension provides multiple settings that let you customize various things related to your cairo code.
In order to access them, go to Settings -> Extensions -> Cairo.
Test Runner
By default, it's set to auto, which means it will be automatically detected based on the Scarb.toml. You can also select a custom test runner. In this case the Run Test Command field must be provided.
Run Test Command
Custom command used to run tests. Also the variable available.
Example: snforge test --exact.
Enable Linter
Enables Cairo lint diagnostics and code actions.
Enable Proc Macros
Enables support for procedural macros.
Scarb Path
Absolute path to the Scarb binary.
Default: Scarb executable set in your PATH environment variable.
Language Server Path
Absolute path to the Language Server binary. If specified, it will be used instead of the Scarb's language server.
Default: Provided by Scarb.
Corelib Path
Absolute path to Cairo core library. It's necessary if the project doesn't use Scarb as a project manager.
Default: Provided by Scarb.
Enable Proc Macro Cache (experimental)
Enables on disk cache for procedural macros.
WARNING
Currently the cache is never invalidated. If ANY of your procedural macro dependencies change - remove the cairo-language-server/proc_macro.cache file from your target directory.