Narrated, with original music and captions. The SharpLsp settings in VS Code, then sharplsp.toml beside the Shop solution: monorepo mode switched on, the server restarted, and SLSPC0101 reported on an unused public property. Fast-forwarded stretches are marked on screen.

Configuring SharpLsp: VS Code settings and sharplsp.toml, with monorepo mode reporting an unused public property as dead code

Read the guide: Configuration

Transcript

SharpLsp has two kinds of settings. Editor settings live in VS Code, under SharpLsp: logging, NuGet, test lenses and more.

Server settings live in sharplsp.toml, beside your solution. Turn on monorepo mode, and SharpLsp treats this repository as the only code that will ever call yours.

Restart the language server to apply it.

Now a public property that nothing uses is dead code too, and it's reported as an error.