powershell
stdiopowershell
Used by 1 plugin
Requires Language Server Binary
This LSP server requires pwsh to be installed on your system. Make sure it's available in your PATH before enabling.
Install
1
Run in your terminal$
npx claudepluginhub piebald-ai/claude-code-lspsAdd to Your Project
Add to your .lsp.json or plugin.json:
{
"lspServers": {
"powershell": {
"command": "pwsh",
"extensionToLanguage": {
".ps1": "powershell",
".psd1": "powershell",
".psm1": "powershell"
},
"args": [
"-NoLogo",
"-NoProfile",
"-Command",
"$module = Get-Module -ListAvailable PowerShellEditorServices | Sort-Object Version -Descending | Select-Object -First 1; if (-not $module) { throw 'PowerShellEditorServices is not installed. Run: Install-Module -Name PowerShellEditorServices -Scope CurrentUser' }; Import-Module $module.Path; Start-EditorServices -HostName 'Claude Code' -HostProfileId 'ClaudeCode' -HostVersion '1.0.0' -Stdio -BundledModulesPath (Split-Path $module.Path) -LogPath '/dev/null' -LogLevel 'None' -EnableConsoleRepl"
]
}
}
}Supported Languages
powershell
.ps1.psd1.psm1
Command
pwshTransport
stdioArguments
-NoLogo-NoProfile-Command$module = Get-Module -ListAvailable PowerShellEditorServices | Sort-Object Version -Descending | Select-Object -First 1; if (-not $module) { throw 'PowerShellEditorServices is not installed. Run: Install-Module -Name PowerShellEditorServices -Scope CurrentUser' }; Import-Module $module.Path; Start-EditorServices -HostName 'Claude Code' -HostProfileId 'ClaudeCode' -HostVersion '1.0.0' -Stdio -BundledModulesPath (Split-Path $module.Path) -LogPath '/dev/null' -LogLevel 'None' -EnableConsoleRepl
Advanced Configuration
Startup Timeout:120000ms
Shutdown Timeout:20000ms
Restart on Crash:Yes
Max Restarts:3
Initialization Options:
{}Settings:
{}