Fork of zed-extensions/powershell
- Rust 69.1%
- Tree-sitter Query 30.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
This PR updates the CI workflow files from the main Zed repository based on the commit zed-industries/zed@3183c04515 The update includes a new version of the extension CLI which adds validation for semantic token rules for languages Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com> |
||
| .github/workflows | ||
| languages/powershell | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| extension.toml | ||
| LICENSE | ||
| README.md | ||
PowerShell support for Zed
This extension provides syntax highlighting as well as language server support for PowerShell files
Configuring your language server
The extension requires PowerShell to be available in your environment. If that is the case, the extension will auto-download the language server and start it.
If you wish to specify a custom path to your language server, you can do so via your settings:
{
"lsp": {
"powershell-es": {
"binary": {
"path": "<path to PowerShellEditorServices>"
}
}
}
}
Additionally, you can configure settings for your language server as well as initialization options to pass to the language server on start.
An example for this:
"lsp":{
"powershell-es":{
"settings":{
"powershell":{
"codeFormatting":{
"openBraceOnSameLine":true,
"addWhitespaceAroundPipe":true,
"trimWhitespaceAroundPipe":true,
"ignoreOneLineBlock":true
}
}
}
}