Skip to content

Releases: docker/docker-language-server

v0.14.0 - 2025-07-16

16 Jul 19:07
55a813f
Compare
Choose a tag to compare

Added

  • Compose
    • textDocument/documentLink
      • add anchor resolution for all supported document links (#348)
      • return document links for the file attribute of a service object's extends attribute object (#172)
      • provide document links for models on Docker Hub and Hugging Face (#356)
      • return document links for the label_file attribute of a service object (#360)
    • textDocument/hover
      • support hovering over referenced models (#343)

Fixed

  • initialize
    • convert WSL URIs with custom code as the dollar sign in the host cannot be parsed (#362)
  • Compose
    • textDocument/completion
      • prevent wildcard object attribute suggestions if the text cursor is not at the right indentation for attributes to be inserted (#342)
    • textDocument/documentLink
      • fix bounds index error if a quoted string just has a registry and the colon character at the end (#351)

v0.13.0 - 2025-07-09

09 Jul 16:37
d798493
Compare
Choose a tag to compare

Added

  • Compose
    • update schema to the latest version
    • textDocument/completion
      • support completing model object names (#343)
    • textDocument/definition
      • support jumping to referenced model objects (#343)
    • textDocument/documentHighlight
      • support highlighting referenced models objects (#343)
    • textDocument/documentLink
      • support recursing into anchors when searching for document links (#329)
      • return document links for the file attribute of a service object's credential_spec (#338)
    • textDocument/documentSymbol
      • show model objects in the document symbol tree (#343)
    • textDocument/prepareRename
      • allow preparing rename on model objects (#343)
    • textDocument/rename
      • support renaming model objects (#343)

Fixed

  • Compose
    • textDocument/completion
      • prevent errors if an empty JSON object is the content of the YAML file (#330)
      • check character offset before processing to prevent errors (#333)

v0.12.0 - 2025-06-12

12 Jun 14:03
e42c011
Compare
Choose a tag to compare

Added

  • Dockerfile
    • textDocument/publishDiagnostics
      • provide code actions to easily ignore build checks (#320)
  • Compose
    • textDocument/completion
      • add support for suggesting include properties (#316)

Fixed

  • Compose
    • textDocument/completion
      • fix error case triggered by using code completion before the first node (#314)
    • textDocument/definition
      • check the type of a dependency node's value before assuming it is a map and recursing into it (#324)
    • textDocument/hover
      • protect the processing of included files if the node is not a proper array (#322)
  • Bake
    • textDocument/inlineCompletion
      • check that the request is within the document's bounds when processing the request (#318)

v0.11.0 - 2025-06-10

10 Jun 13:06
bc115fa
Compare
Choose a tag to compare

Added

  • Compose
    • textDocument/definition
      • recurse into anchors when evaluating the cursor's position (#305)
    • textDocument/documentHighlight
      • recurse into anchors when evaluating the cursor's position (#305)
    • textDocument/hover
      • resolve anchors when constructing the path of the hovered item (#303)
    • textDocument/prepareRename
      • recurse into anchors when evaluating the cursor's position (#305)
    • textDocument/rename
      • recurse into anchors when evaluating the cursor's position (#305)

Fixed

  • Compose
    • textDocument/completion
      • stop volume named references from causing volume attributes to not be suggested (#309)
    • textDocument/documentLink
      • ensure the image attribute is valid before trying to process it for document links (#306)
  • Bake
    • textDocument/definition
      • fix nil pointers when navigating around a top level attribute that is not in any block (#311)

v0.10.2 - 2025-06-06

06 Jun 10:23
d97c5a4
Compare
Choose a tag to compare

Fixed

  • lock cache manager when deleting to prevent concurrent map writes (#298)
  • initialize
    • return JSON-RPC error if an invalid URI was sent with the request (#292)
  • Compose
    • textDocument/completion
      • check for whitespace when performing prefix calculations for build target suggestions (#294)
      • return an empty result instead of an internal server error if the request's parameters are outside the document's bounds (#296)
      • check the node path's length before recursing deeper for pattern properties matches (#300)
    • textDocument/hover
      • fix error caused by casting a node without checking its type first (#290)

v0.10.1 - 2025-06-04

04 Jun 18:10
534fb60
Compare
Choose a tag to compare

Fixed

  • Compose
    • textDocument/completion
      • fix incorrect snippet item that was generated even if there were no choices to suggest (#283)
      • stop local service name suggestions if another file has been explicitly specified (#285)
    • textDocument/definition
      • recurse into YAML anchors if they are defined on a service object (#287)
    • textDocument/documentHighlight
      • recurse into YAML anchors if they are defined on a service object (#287)
    • textDocument/prepareRename
      • recurse into YAML anchors if they are defined on a service object (#287)
    • textDocument/rename
      • recurse into YAML anchors if they are defined on a service object (#287)

v0.10.0 - 2025-06-03

03 Jun 17:21
ef8fa99
Compare
Choose a tag to compare

Added

  • errors will now be reported to BugSnag if telemetry is not disabled
  • Compose
    • textDocument/definition
      • support navigating to the defined YAML anchor from an alias reference (#264)
    • textDocument/documentHighlight
      • support highlighting YAML anchor and alias references (#264)
    • textDocument/documentLink
      • support opening a referenced Dockerfile from the build object's dockerfile attribute (#69)
      • support opening a referenced file from a config's file attribute (#271)
      • support opening a referenced file from a secret's file attribute (#272)
      • provide document links when an included file is also a YAML anchor (#275)
    • textDocument/hover
      • render the referenced network's YAML content as a hover result (#246)
      • render the referenced config's YAML content as a hover result (#249)
      • render the referenced secret's YAML content as a hover result (#250)
      • render the referenced volume's YAML content as a hover result (#251)
      • include the range of the hovered element to clearly identify what is being hovered over for the client (#256)
      • render the referenced anchor's YAML content as a hover result (#268)
    • textDocument/prepareRename
      • support renaming YAML anchor and alias references (#264)
    • textDocument/rename
      • preparing rename operations for YAML anchor and alias references (#264)

Fixed

  • Compose
    • textDocument/completion
      • include the array definition in the inserted text so we do not make the YAML content malformed (#278)
    • textDocument/definition
      • fix range calculation when the element is quoted (#255)
    • textDocument/documentHighlight
      • fix range calculation when the element is quoted (#255)
    • textDocument/documentLink
      • consider quotes when calculating the link's range (#242)
      • consider anchors and aliases instead of assuming everything are strings (#266)
    • textDocument/hover
      • prevent YAML hover issues caused by whitespace (#244)
      • ignore hover requests that are outside the file to prevent panics (#261)
    • textDocument/prepareRename
      • fix range calculation when the element is quoted (#255)
    • textDocument/rename
      • fix range calculation when the element is quoted (#255)
  • Bake
    • textDocument/publishDiagnostics
      • filter out variables when resolving Dockerfile paths to prevent false positives from being reported (#263)

v0.9.0 - 2025-05-26

26 May 19:51
183d761
Compare
Choose a tag to compare

Added

  • global initialization option to disable all Compose features (#230)
  • Compose
    • textDocument/completion
      • include the attribute's schema description when providing enum suggestions (#235)

Changed

  • Dockerfile
    • textDocument/hover
      • recommended_tag diagnostics are now hidden by default (#223)
    • textDocument/publishDiagnostics
      • recommended tag hovers are now hidden by default (#223)

Fixed

  • correct initialize request handling for clients that do not support dynamic registrations (#229)
  • Dockerfile
    • textDocument/hover
      • hide vulnerability hovers if the top level setting is disabled (#226)
    • textDocument/publishDiagnostics
      • consider flag changes when determining whether to scan a file again or not (#224)
  • Compose
    • textDocument/hover
      • fixed a case where an object reference's description would not be returned in a hover result (#233)

v0.8.0 - 2025-05-23

23 May 17:25
4fc59eb
Compare
Choose a tag to compare

Added

  • Dockerfile
    • textDocument/hover
      • support configuring vulnerability hovers with an experimental setting (#192)
    • textDocument/publishDiagnostics
      • support filtering vulnerability diagnostics with an experimental setting (#192)
  • Compose
    • updated Compose schema to the latest version
    • textDocument/definition
      • support navigating to a dependency that is defined in another file (#190)
    • textDocument/hover
      • improve hover result by linking to the schema and the online documentation (#199)
      • add support for hovering over service names that are defined in a different file (#207)
  • Bake
    • textDocument/publishDiagnostics
      • support filtering vulnerability diagnostics with an experimental setting (#192)

Changed

  • Dockerfile
    • textDocument/publishDiagnostics
      • hide not_pinned_digest diagnostics from Scout by default (#216)

Fixed

  • Dockerfile
    • textDocument/publishDiagnostics
      • ignore the diagnostic's URL and do not set it if it is evaluated to be the empty string (#219)
  • Compose
    • textDocument/completion
      • fix panic in code completion in an empty file (#196)
      • fix line number assumption issues when using code completion for build targets (#210)
    • textDocument/hover
      • ensure results are returned even if the file has CRLFs (#205)
  • Bake
    • textDocument/publishDiagnostics
      • stop flagging BUILDKIT_SYNTAX as an unrecognized ARG (#187)
      • use inheritance to determine if an ARG is truly unused (#198)
      • correct range calculations for malformed variable interpolation errors (#203)

v0.7.0 - 2025-05-09

09 May 21:58
ff32320
Compare
Choose a tag to compare

Added

  • Compose
    • textDocument/completion
      • support build stage names for the target attribute (#173)
      • set schema documentation to the completion items (#176)
      • automatically suggest boolean values for simple boolean attributes (#179)
      • suggest service names for a service's extends or extends.service attribute (#184)
    • textDocument/hover
      • render a referenced service's YAML content as a hover (#157)

Fixed

  • Compose
    • textDocument/inlayHint
      • prevent circular service dependencies from crashing the server (#182)