Skip to content

Releases: docker/docker-language-server

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)

v0.4.1 - 2025-04-29

29 Apr 10:09
b7964ef
Compare
Choose a tag to compare
Merge pull request #113 from docker/fix-completion-panic

Prevent completion error with empty arrays

v0.4.0 - 2025-04-28

29 Apr 00:29
e0ff65b
Compare
Choose a tag to compare

Added

  • Compose
    • textDocument/completion
      • add code completion support based on the JSON schema, extracting out attribute names and enum values (#86)
      • completion items are populated with a detail that corresponds to the possible types of the item (#93)
      • suggests completion items for the attributes of an object inside an array (#95)
    • textDocument/definition
      • support lookup of configs, networks, and secrets referenced inside services object (#91)
    • textDocument/documentLink
      • support opening a referenced image's page as a link (#91)
    • textDocument/hover
      • extract descriptions and enum values from the Compose specification and display them as hovers (#101)

v0.3.8 - 2025-04-24

24 Apr 14:29
bf251ee
Compare
Choose a tag to compare

What's Changed

  • Support navigating around single attributes reused from another target by @rcjsuen in #80
  • Support jumping to dependent services in Compose files by @rcjsuen in #82
  • Support looking up services using the long form depends_on syntax by @rcjsuen in #83
  • Calculate semantic tokens only for Bake files by @rcjsuen in #85
  • Prepare for the v0.4.0 release by @rcjsuen in #87

Full Changelog: v0.3.7...v0.3.8

v0.3.7 - 2025-04-21

21 Apr 13:38
88f756b
Compare
Choose a tag to compare

What's Changed

  • Use Get instead of Read to ensure we do not read from disk by @rcjsuen in #79

Full Changelog: v0.3.6...v0.3.7

v0.3.6 - 2025-04-18

18 Apr 21:12
bd9f041
Compare
Choose a tag to compare

Changed

  • get the JSON structure of a Bake target with Go APIs instead of spawning a separate child process (#63)
  • Update moby/buildkit to v0.21.0 and docker/buildx to v0.23.0 (#64)

Fixed

  • Bake
    • textDocument/publishDiagnostics
      • consider the context attribute when determining which Dockerfile the Bake target is for (#57)
    • textDocument/inlayHints
      • consider the context attribute when determining which Dockerfile to use for inlaying default values of ARG variables (#60)
    • textDocument/completion
      • consider the context attribute when determining which Dockerfile to use for looking up build stages (#61)
    • textDocument/definition
      • consider the context attribute when trying to resolve the Dockerfile to use for ARG variable definitions (#62)
      • fix a panic that may occur if a for loop did not have a conditional expression (#65)