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

Provide better integration with Cake.Bakery #592

Merged
merged 7 commits into from
Dec 6, 2021

Conversation

gep13
Copy link
Member

@gep13 gep13 commented Nov 29, 2021

Fixes #515
Fixes #514
Fixes #591

gep13 added 6 commits December 6, 2021 21:57
When the Cake VSCode extension is initialized, let's immediately
download the Cake.Bakery nupkg and extract to the extension path. This
will only happen if it hasn't already been downloaded.

Modify the existing "Install Cake.Bakery" command to update the
existing download, when required.
NUGET_SEVICE_INDEX_URL -> NUGET_SERVICE_INDEX_URL
Now in Cake 2.0, several runners have been removed, so we are also
removing support for those within the VSCode extension for Cake.

Some enums, and associated code have been left in play, for the
possibility to future expansion, but for now, there is only one option
within those enums.
Once downloaded, the Cake.Bakery.exe can be added to the Omnisharp
configuration file, so that Omnisharp knows where to find the binary,
and then once the file is updated, force a restart of the Omnisharp
Server so that everything just "works".

Here we are relying on the fact that any VSCode extension can call a
registered command from another extension, as long as the name is
known.  In this case, the `o.restart` command, which the Omnisharp
Extension registers.
@gep13 gep13 force-pushed the automatically-install-bakery branch from 2f003db to d296d11 Compare December 6, 2021 21:57
@gep13 gep13 merged commit 523c2f8 into cake-build:develop Dec 6, 2021
@gep13 gep13 deleted the automatically-install-bakery branch December 6, 2021 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant