Skip to content

About

PowerShell extension for Zed

Resources

Stars

9 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

31 Commits

Folders and files

Repository files navigation

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": "pwsh.exe",
				"arguments": [
					"-NoLogo",
					"-NoProfile",
					"-Command",
					"path\\to\\PowerShellEditorServices\\Start-EditorServices.ps1",
					"-Stdio",
					"-SessionDetailsPath",
					"path\\to\\PowerShellEditorServices\\powershell-es.session.json",
				],
			},
		},
    }
}

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
            }
         }
      }
   }

About

PowerShell extension for Zed

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages