Need a way to extract DSC resource schema for IntelliSense scenario
Prerequisites
- [X] Write a descriptive title.
- [X] Make sure you are able to repro it on the latest version
- [X] Search the existing issues.
Steps to reproduce
For configuration example below, there should be a way to call dsc.exe to request schema for types PowerShellGet/MSFT_PSRepository and TestFileDscResource/FileResource (that are handled by DSC/PowerShellGroup resource provider) to be used in IntelliSense when authoring configurations with these types.
- name: Get info from classic DSC resources
type: DSC/PowerShellGroup
properties:
resources:
- name: Get PS Repository Info
type: PowerShellGet/MSFT_PSRepository
properties:
Name: PSGallery
- name: Check File
type: TestFileDscResource/FileResource
properties:
Path: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Ensure: Present
Expected behavior
`dsc.exe` should be able to return schema for resources that are processed by resource providers.
Actual behavior
Currently this is not implemented.
Error details
No response
Environment data
v1.
Version
v1
Visuals
No response
Related to #78
For the editor, would we deliver this through the existing PowerShell extension or should we publish a new language extension for DSC?
It's probably more work, but if part of the goal for the project is to move DSC beyond "a PowerShell thing", I think a separate extension is going to be important in the long run. That would also allow the extension to ship with a vendored DSC executable specific to that version of the extension instead of relying on the locally installed version, that sort of thing.
Fixed using PSAdapter cache; used in VS Code Extention #448