Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add schema validation for PSD1 files #5131

Open
2 tasks done
ykuijs opened this issue Jan 22, 2025 · 1 comment
Open
2 tasks done

Add schema validation for PSD1 files #5131

ykuijs opened this issue Jan 22, 2025 · 1 comment
Labels
Issue-Enhancement A feature request (enhancement).

Comments

@ykuijs
Copy link

ykuijs commented Jan 22, 2025

Prerequisites

  • I have written a descriptive issue title.
  • 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.

@ykuijs ykuijs added Issue-Enhancement A feature request (enhancement). Needs: Triage Maintainer attention needed! labels Jan 22, 2025
@JustinGrote
Copy link
Collaborator

JustinGrote commented Jan 22, 2025

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:
PowerShell/PowerShell#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 (#159) was closed in favor of the upstream issue mentioned above.

@JustinGrote JustinGrote removed the Needs: Triage Maintainer attention needed! label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

No branches or pull requests

2 participants