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

Need a way to extract DSC resource schema for IntelliSense scenario #76

Closed
3 tasks done
anmenaga opened this issue May 10, 2023 · 4 comments
Closed
3 tasks done
Labels
Issue-Enhancement The issue is a feature or idea
Milestone

Comments

@anmenaga
Copy link
Collaborator

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • 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

@Bpoe
Copy link
Collaborator

Bpoe commented May 17, 2023

Related to #78

@mgreenegit
Copy link
Member

For the editor, would we deliver this through the existing PowerShell extension or should we publish a new language extension for DSC?

@michaeltlombardi
Copy link
Collaborator

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.

@michaeltlombardi michaeltlombardi added the Issue-Enhancement The issue is a feature or idea label Aug 30, 2023
@anmenaga anmenaga changed the title Need a way to extract schema for types handled by Resource Providers for IntelliSense scenario Need a way to extract DSC resource schema for IntelliSense scenario Nov 8, 2023
@michaeltlombardi michaeltlombardi added this to the Post-3.0 milestone Nov 17, 2023
@anmenaga
Copy link
Collaborator Author

Fixed using PSAdapter cache; used in VS Code Extention #448

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement The issue is a feature or idea
Projects
None yet
Development

No branches or pull requests

4 participants