From PowerShell Diagnostics (PSES)
PowerShell Editor Services provides code intelligence for PowerShell — diagnostics, go-to-definition, find references, and completions for .ps1, .psd1, and .psm1 files.
Ships in PowerShell Diagnostics (PSES). Installing the plugin adds it to Claude Code.
This LSP server requires pwsh to be installed on your system. Make sure it's available in your PATH before enabling.
Copy this JSON into your .lsp.json to enable this server
Add to your .lsp.json or plugin.json:
{
"lspServers": {
"powershell": {
"command": "pwsh",
"extensionToLanguage": {
".ps1": "powershell",
".psd1": "powershell",
".psm1": "powershell"
},
"args": [
"-NoLogo",
"-NoProfile",
"-ExecutionPolicy",
"Bypass",
"-File",
"${CLAUDE_PLUGIN_ROOT}/scripts/pses-serve-shim.ps1"
],
"env": {
"PSES_BUNDLE_PATH": "${CLAUDE_PLUGIN_DATA}/PowerShellEditorServices"
}
}
}
}File extensions mapped to language identifiers
Server configuration and transport parameters
pwshstdioCommand-line arguments passed to the server process
Environment variables set when the server starts
PSES_BUNDLE_PATH=${CLAUDE_PLUGIN_DATA}/PowerShellEditorServicesInitialization options and workspace settings
7-day visitors to each server page
npx claudepluginhub manderse21/claude-powershell-lsp --plugin powershell-lsp