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

Download Chocolatey LSP assembly at runtime #330

Open
gep13 opened this issue Feb 3, 2020 · 0 comments
Open

Download Chocolatey LSP assembly at runtime #330

gep13 opened this issue Feb 3, 2020 · 0 comments

Comments

@gep13
Copy link
Member

gep13 commented Feb 3, 2020

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant