vts_setup
Configure project path, backend, and max results for token-safe code search. Optionally generate the C++ compile database for clangd semantic search.
Instructions
Configure vs-token-safer (projectPath, backend, maxResults). Writes ~/.vs-token-safer/config.json; run /reload-plugins after. Precedence: env (VTS_*) > config file > default. Can also generate the C++ compile DB in the same step (genCompileDb).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | No | Default project root. | |
| backend | No | clangd | roslyn | typescript | pyright (default: auto). | |
| maxResults | No | Default cap on returned locations. | |
| genCompileDb | No | Generate the C++ compile_commands.json (for clangd semantic search) in this step: `true` = DRY-RUN (prints the exact UBT command, runs nothing); "apply" = run UBT now (heavy — indexes engine headers, needs clangd ≥ 22). The DB is parked out-of-tree (~/.vs-token-safer/db/<project>). | |
| clangdCmd | No | Path to the clangd ≥ 22 binary to use (persists to config, no OS-env edit). The VS-bundled clangd 19.1.x deadlocks on Unreal TUs — point this at a current clangd from https://github.com/clangd/clangd/releases. Env VTS_CLANGD_CMD overrides it. |