vscode-powershell
vscode-powershell copied to clipboard
Add schema validation for PSD1 files
Prerequisites
- [x] I have written a descriptive issue title.
- [x] I have searched all issues to ensure it has not already been reported.
Summary
I am working a lot with PSD1 files that all use the same structure. Currently I have to create this file manually, since VSCode doesn't know the structure of the PSD1 file and therefore is unable to help out.
I know that the PSD1 format is lacking a schema definition for validation. But it would be really helpful if VSCode would be able to help out creating these PSD1 files.
Proposed Design
Maybe the plugin can initiate a schema format for PSD1 files and incorporate that into the plugin, so it is then able to use IntelliSense to allow easier creation of PSD1 files.
Thanks for your submission!
It's the philosophy of PowerShell Editor Services (PSES) and thusly the VSCode extension to be a UI/UX to existing functionality as much as possible, so that all can benefit, and the maintenance of the details of those features occur with their respective owners, otherwise it has to be maintained here by people who may not be experts in that area and that will most likely lead to an overall degraded experience.
PowerShell doesn't provide PSD1 schema validation, so until it does, we likely won't invest in this feature. The upstream issue is here: https://github.com/PowerShell/PowerShell/issues/4016
However the issue was closed for inactivity by the maintenance bot, it would need to be addressed and either built directly into PS or constructed as a first party module to perform psd1 validation before we could leverage it in the vscode extension.
I know that's not the answer you want, but that's how things are today :)
I will leave this open as the original issue (https://github.com/PowerShell/vscode-powershell/issues/159) was closed in favor of the upstream issue mentioned above.