trust_solution
Mark a solution path (or directory root) as trusted for analyzer execution. Required before get_diagnostics will load Roslyn analyzer DLLs from the solution. Always confirm with the user before calling this tool — analyzer DLLs run as in-process code.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | ✓ | Absolute path to a .sln/.slnx file, or a directory when scope='addRoot' |
scope | string | 'session' (in-memory only, default), 'persistent' (write to trust.json), or 'addRoot' (trust the directory and all solutions under it) |