Skip to content

Releases: docker/docker-language-server

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)

v0.6.0 - 2025-05-07

07 May 16:43
8f99d4e
Compare
Choose a tag to compare

Added

  • Compose
    • updated Compose schema to the latest version
    • textDocument/completion
      • improve code completion by automatically including required attributes in completion items (#155)
    • textDocument/inlayHint
      • show the parent service's value if it is being overridden and they are not object attributes (#156)
    • textDocument/formatting
      • add support to format YAML files that do not have clear syntactical errors (#165)
    • textDocument/publishDiagnostics
      • report YAML syntax errors (#167)

Fixed

  • Compose
    • textDocument/completion
      • suggest completion items for array items that use an object schema directly (#161)
    • textDocument/definition
      • consider extends when looking up a service reference (#170)
    • textDocument/documentHighlight
      • consider extends when looking up a service reference (#170)
    • textDocument/prepareRename
      • consider extends when looking up a service reference (#170)
    • textDocument/rename
      • consider extends when looking up a service reference (#170)

v0.5.0 - 2025-05-05

05 May 10:46
673bf68
Compare
Choose a tag to compare

Added

  • Compose
    • updated Compose schema to the latest version (#117)
    • textDocument/completion
      • suggest dependent service names for the depends_on attribute (#131)
      • suggest dependent network names for the networks attribute (#132)
      • suggest dependent volume names for the volumes attribute (#133)
      • suggest dependent config names for the configs attribute (#134)
      • suggest dependent secret names for the secrets attribute (#135)
    • textDocument/definition
      • support looking up volume references (#147)
    • textDocument/documentHighlight
      • support highlighting the short form depends_on syntax for services (#70)
      • support highlighting the long form depends_on syntax for services (#71)
      • support highlighting referenced networks, volumes, configs, and secrets (#145)
    • textDocument/prepareRename
      • support rename preparation requests (#150)
    • textDocument/rename
      • support renaming named references of services, networks, volumes, configs, and secrets (#149)

Fixed

  • Dockerfile
    • textDocument/codeAction
      • preserve instruction flags when fixing a not_pinned_digest diagnostic (#123)
  • Compose
    • textDocument/completion
      • resolved a spacing offset issue with object or array completions (#115)
    • textDocument/hover
      • return the hover results for Compose files (#114)