0

When I right click a Dockerfile, the Docker extension is giving me two options for Build Image:

Build Image in Azure...

Build Image...

Right-Click Build Image Options

I have gone all through the extension settings and my vscode settings and cannot find how to disable this or make the extension know I don't have Azure.

Thanks for any insight on how I can remove this, it's pretty annoying.

I attempted to right click on a Dockerfile and get only Build Image as an option, but it is adding a separate option for Azure Images, which I do not use.

1 Answer 1

0

This is by design, and given the extension itself is maintained by Microsoft, it shouldn't surprise you that they've baked in integrations with Azure out of the box. The extension's package.json file defines it to be shown without conditions when installed:

// <snip>
{
    "command": "vscode-docker.registries.azure.buildImage",
    "title": "%vscode-docker.commands.registries.azure.buildImage%",
    "category": "%vscode-docker.commands.category.azureContainerRegistry%"
},
// </snip>

There is no way in VSCode currently to disable individual commands from extensions that you are not the owner or maintainer of. If this is really that bothersome to you, you could fork the extension on GitHub, remove the command from package.json, repackage it into a *.vsix, and add it to your VSCode installation manually. This is generally more trouble than it's worth, since you would then necessarily have to pull upstream changes from the main repository periodically to make sure you have the latest bugfixes and security patches.

Sign up to request clarification or add additional context in comments.

1 Comment

I see, well thank you for the explanation at least!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.