Skip to content

Add support for language server settings and initialization options#6

Merged
MrSubidubi merged 7 commits intozed-extensions:mainfrom
gravejester:main
Feb 18, 2026
Merged

Add support for language server settings and initialization options#6
MrSubidubi merged 7 commits intozed-extensions:mainfrom
gravejester:main

Conversation

@gravejester
Copy link

This update lets the user configure PowerShellEditorServices settings in the Zed settings.json file like this:

"languages": {
    "PowerShell": {
      "inlay_hints": {
        "enabled": true,
      },
      "formatter": "language_server",
      "format_on_save": "on",
    },
  },
"lsp": {
    "powershell-es": {
      "settings": {
        "powershell": {
          "codeFormatting": {
            "openBraceOnSameLine": true,
            "addWhitespaceAroundPipe": true,
            "trimWhitespaceAroundPipe": true,
            "ignoreOneLineBlock": true,
          },
        },
      },
    },
  },

@cla-bot
Copy link

cla-bot bot commented Feb 13, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @gravejester on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@gravejester
Copy link
Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Feb 13, 2026
@cla-bot
Copy link

cla-bot bot commented Feb 13, 2026

The cla-bot has been summoned, and re-checked this pull request!

Copy link

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall although has some issues I noted.

Also, could you perhaps add a small note for this in the README? Thanks!

@gravejester
Copy link
Author

@MrSubidubi Sorry about the mess.. I'm not really a Rust developer (as you probably noticed) 😄 I just really wanted the possibility of setting the formatting options for the PowerShell language server, and since no one else did it I thought I'd try it myself.

I have tried to fix it based on your suggestions. Please let me know if there is something else that needs to be done.

@MrSubidubi MrSubidubi changed the title Add support for PowerShellEditorServices settings Add support for language server settings and initialization options Feb 18, 2026
MrSubidubi
MrSubidubi previously approved these changes Feb 18, 2026
Copy link

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, no worries! Looks much better now, so thanks for the quick follow-up!

Quickly hopped on and cleaned up some stuff which we should have done prior, but no worries there.

Thanks for your contribution and congratulations to your first contribution! 🎉

@MrSubidubi MrSubidubi enabled auto-merge (squash) February 18, 2026 12:56
@MrSubidubi MrSubidubi merged commit 3fba2d7 into zed-extensions:main Feb 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments