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

Current docker context name in status bar #3690

Closed
khssnv opened this issue Nov 9, 2022 · 2 comments · Fixed by #3883
Closed

Current docker context name in status bar #3690

khssnv opened this issue Nov 9, 2022 · 2 comments · Fixed by #3883

Comments

@khssnv
Copy link

khssnv commented Nov 9, 2022

Hello. This is a feature request.

Is it possible to add an optional field with Docker context name to the Status bar?

It is convenient to inspect and update compose stacks and swarm clusters by switching Docker context. But user should keep in mind which context is active currently to not mess it up.

Now the current context is shown in "contexts" section of the Docker Explorer tab Side bar only.
image

But it would be helpful to have an option to add a current context name in the status bar as well. Status bar looks like a suitable place for the context name because it is already possible to add remote machine name, current VCS branch name or DB connection name to the status bar with other plugins.
image

@bwateratmsft
Copy link
Contributor

bwateratmsft commented Nov 9, 2022

I like this idea. In fact I might like it better than the existing Contexts tree view. Similar to Python, clicking it could also be a command that facilitates switching contexts.

It's definitely possible but it would indeed be a new feature.

@dbreshears dbreshears added this to the 1.25.0 milestone Nov 9, 2022
@dbreshears dbreshears added the P2 label Nov 9, 2022
@dbreshears dbreshears modified the milestones: 1.25.0, 1.26.0 Mar 8, 2023
@bwateratmsft bwateratmsft removed their assignment Mar 27, 2023
@alexyaang alexyaang self-assigned this Mar 27, 2023
@bwateratmsft bwateratmsft linked a pull request Apr 5, 2023 that will close this issue
@alexyaang alexyaang removed their assignment Apr 19, 2023
@microsoft microsoft locked and limited conversation to collaborators Jun 4, 2023
@alexyaang
Copy link
Member

@khssnv This has now been released in Docker extension version 1.26.0. You can enable the status bar item by:

  1. Going to VSCode Settings -> Docker Settings
  2. Navigate to the setting Docker › Contexts: Show in Status Bar
  3. Check the checkbox and close the setting page
  4. You should see the current Docker context in the left corner of your status bar
image

You can switch context by clicking on the status bar.

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants