vexx32 / PSKoans

A simple, fun, and interactive way to learn the PowerShell language through Pester unit testing.
GNU General Public License v3.0
1.73k stars 176 forks source link

Add text editor support for VSCodium, examples for text editor settings #428

Closed TheFreeman193 closed 3 years ago

TheFreeman193 commented 3 years ago

PR Summary

This adds text editor support for VSCodium, and adds some general examples for changing the text editor.

Context

I became aware of this project recently after answering a question in the r/PowerShell subreddit. I noticed the list of known text editors is quite short, and I think it'll be useful to add other commonly used text editors that support line-jumping on the command line. I've started with VSCodium as it accepts the same command line arguments as VSCode, and doesn't require any functional changes to how the Editor setting is processed, but I'd be happy to include recognition for others like Notepad++, Vim, Sublime Text etc. if there's appetite for it.

I've also added a couple of examples for Get-PSKoansSetting and Set-PSKoansSetting for reading/changing the text editor setting, as I noticed that there weren't any references to them in the docs for those functions.

As for Pester tests, I don't believe any new ones are required for this change, as the functionality of Show-Karma is identical and the module help tests cover the docs changes. I did however notice there aren't any in place for the block handling GitHub Atom, but this could be rectified later with changes/tests for supporting other text editors.

Changes

Checklist