HLSL Clippy — VS Code extensionIn-editor diagnostics, hover docs, and quick-fix code actions for HLSL —
powered by the Features
The diagnostics surfaced in VS Code's Problems panel are byte-for-byte the same as the diagnostics the CLI emits in CI logs (modulo formatting). Requirements
The Power-user overrides (only set these if you need them):
InstallationFrom the MarketplaceSearch for "HLSL Clippy" by
The Marketplace serves the matching From a
|
| Setting | Type | Default | Purpose |
|---|---|---|---|
hlslClippy.serverPath |
string |
"" |
Explicit path to a custom hlsl-clippy-lsp binary. Empty = use the binary bundled with the extension (or hlsl-clippy-lsp on PATH). |
hlslClippy.targetProfile |
string |
"" |
Slang target profile (e.g. sm_6_6, vs_6_7, ps_6_8). Empty = server default per stage. Forwarded to LintOptions::target_profile. |
hlslClippy.enableReflection |
boolean |
true |
Enable Phase 3 reflection-aware rules. Disable on slow machines to keep AST-only latency. |
hlslClippy.enableControlFlow |
boolean |
true |
Enable Phase 4 CFG-aware rules. |
hlslClippy.trace.server |
string |
"off" |
Trace LSP communication (off / messages / verbose). |
Commands
| Command | Description |
|---|---|
HLSL Clippy: Restart Server |
Stop and re-spawn the LSP server (useful after a binary update). |
HLSL Clippy: Show Output Channel |
Reveal the extension's output panel. |
Rule documentation
Every diagnostic includes a hover link to the rule's docs page. Browse the
full catalog at
docs/rules/.
License
Apache-2.0. See LICENSE
in the repo root.
This extension bundles vscode-languageclient (MIT, Microsoft Corp.) and
@types/vscode (MIT). Third-party license texts are reproduced in
THIRD_PARTY_LICENSES.md.
Reporting issues
File bugs at https://github.com/NelCit/hlsl-clippy/issues. Please include:
- The output of
HLSL Clippy: Show Output Channel. - Your
hlslClippy.*settings. - A minimal reproducer shader.