PowerShell
Zed 中对 PowerShell 语言的支持由社区维护的 Zed PowerShell 扩展提供。请将问题报告至:github.com/wingyplus/zed-powershell/issues
- Tree-sitter: airbus-cert/tree-sitter-powershell
- 语言服务器: PowerShell/PowerShellEditorServices
设置
安装 PowerShell 7+
- macOS:
brew install powershell/tap/powershell - Alpine: 在 Alpine Linux 上安装 PowerShell
- Debian: 在 Debian Linux 上安装 PowerShell
- RedHat: 在 RHEL 上安装 PowerShell
- Ubuntu: 在 Ubuntu 上安装 PowerShell
- Windows: 在 Windows 上安装 PowerShell
Zed PowerShell 扩展将默认使用在您的路径中找到的 pwsh 可执行文件。
安装 PowerShell Editor Services (可选)
Zed PowerShell 扩展将尝试自动下载 PowerShell Editor Services。
如果您想使用特定的二进制文件,您可以在 Zed 的 settings.json 中指定。
"lsp": {
"powershell-es": {
"binary": {
"path": "/path/to/PowerShellEditorServices"
}
}
}