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

Feature request: display only container names in tree view #180

Closed
asvetliakov opened this issue Nov 24, 2017 · 4 comments
Closed

Feature request: display only container names in tree view #180

asvetliakov opened this issue Nov 24, 2017 · 4 comments

Comments

@asvetliakov
Copy link

asvetliakov commented Nov 24, 2017

See screenshot:
screen shot 2017-11-24 at 21 25 29

We're using AWS ECS registry so the full image path <registry>/<image>:<tag> is very long. It's hard to see actual image name without expanding tree view to the right or until hovering the list item.

Ideally there should be an option to either hide registry path or use container name (the one in the ( ) ) as tree item label.

Thanks!

@chrisdias
Copy link
Member

what if we provide an option to truncate the registry path at some number of characters? would that work, or do you want to show the container name?

@asvetliakov
Copy link
Author

what if we provide an option to truncate the registry path at some number of characters?

Since the container name is being displayed in the () brackets after registry too, this would work.

I think it's best to truncate registry in the middle then, i.e. account-id.ecr...com/image (name). In this case the image name will be clearly visible even when no container name was provided.

@chrisdias
Copy link
Member

@asvetliakov Do you have this issue with the Images node as well, or just the Containers node?

@chrisdias
Copy link
Member

two new config options:

docker.truncateLongRegistryPaths defaults to false
docker.truncateMaxLength defaults to 10, including the ...

image

@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants