Skip to content

Download Chocolatey LSP assembly at runtime #330

@gep13

Description

@gep13

When first running the Chocolatey VSCode extension, if LSP is enabled, we should attempt to download the LSP assembly from somewhere.

That somewhere, will be a NuGet v3 feed, which is configured in the User Settings of VSCode. The settings will also include a version number, which could can be set to a wildcard. Wildcard will attempt to install the latest version available on the feed. A specific version number will attempt to only install that version number.

It should be possible to use any NuGet V3 feed. i.e. first check the index.json file for the feed, and find the flatcontainer url for a package (chocolatey-language-server) and available versions.

For there, download the nupkg and extract as zip file, and place the LSP assembly somewhere.

No idea where that somewhere is just yet 😢

Example NuGet URL's...

https://www.myget.org/F/cake/api/v3/flatcontainer/cake.bakery/index.json

https://api.nuget.org/v3-flatcontainer/cake.bakery/index.json

https://www.myget.org/F/chocolateygui/api/v3/flatcontainer/chocolateygui/index.json

https://api.nuget.org/v3-flatcontainer/cake/index.json

https://api.nuget.org/v3/index.json

https://myget.org/F/chocolateygui/api/v3/index.json

Questions

  • Should the download location for the LSP assembly be configurable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions