Skip to content

Show inlay hints for when an image was pushed #431

@rcjsuen

Description

@rcjsuen

Given a line like FROM alpine:3.16, we should show when the image was last pushed as an inlay hint to help nudge/remind the user if it seems like it is pretty old.

We will not render anything for the following cases:

  • FROM alpine will be ignored as latest is dynamic and hopefully people are not using latest to begin with
  • images from other registry, we will support Docker Hub only at the moment
  • images behind authentication, since the Docker Language Server has no authentication information right now we cannot query the Hub API for these images
  • images with a digest SHA may be outdated and not included in the response so it is unclear when it was last pushed

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions