Skip to content

Dockerfile inlay hints blocks other LSP requests #467

@buymeasoda

Description

@buymeasoda

The new inlay hint feature implemented in #431 (or something related) to show when an image was last pushed appears to block other Docker DX extension completions while it is being processed and resolved.

  • Editor: VS Code (Version: 1.103.2)
  • Extension: Docker DX (Version: 0.16.0)

To reproduce:

  • Shut down VS Code completely
  • Create and open an empty Dockerfile in VS Code
  • Add a FROM <image> line (eg. FROM golang:latest or FROM php:8.3-apache etc) and hit enter
  • Type the first letter of another Dockerfile command on the new line (eg. ADD, CMD etc)
  • Observe the inline suggestion spinner for Docker in status bar
  • Observe that no inline editor completion is able to be displayed for the new command

(See attached video for the reproduction steps in action)

The issue will persist until the "last pushed" message is finally returned and rendered inline in the editor (which can take a while in some instances). During this time all other edit completions provided by Docker DX are unusable.

  • Are others able to reproduce this issue? And is there a way to either make this call async so that it is non-blocking or add an option to be able to disable it?

Excerpt from Docker Language Server logs:

[Trace - 19:10:35] Received response 'textDocument/inlayHint - (4)' in 17607ms.
Result: [
    {
        "position": {
            "line": 0,
            "character": 18
        },
        "label": "(last pushed 1 week ago)",
        "textEdits": null,
        "tooltip": "2025-08-25 12:23:20 AEST",
        "paddingLeft": true
    }
]
docker-issue.mov

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions