Fork of zed-extensions/dockerfile
  • Rust 94.7%
  • Tree-sitter Query 5.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
zed-zippy[bot] 4eb4281553
Update CI workflows to 3183c04 (#42)
This PR updates the CI workflow files from the main Zed repository
based on the commit
zed-industries/zed@3183c04515

The update includes a new version of the extension CLI which adds
validation for semantic token rules for languages

Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
2026-03-25 18:55:10 +00:00
.github/workflows Update CI workflows to 3183c04 (#42) 2026-03-25 18:55:10 +00:00
.zed Fix repo url and add .zed/settings.json (#17) 2025-04-24 16:04:38 -04:00
debug_adapter_schemas Integrate with the Buildx Dockerfile debugger (#27) 2025-11-03 11:19:09 +01:00
languages/dockerfile Add injection for comment extension (#25) 2025-10-28 10:41:16 +01:00
src Add support for docker-language-server (#35) 2026-02-27 10:37:31 +00:00
.gitignore Add HereDoc support (#7) 2024-05-31 05:56:25 +08:00
Cargo.lock Bump version to 0.2.0 (#38) 2026-02-27 11:51:38 +01:00
Cargo.toml Bump version to 0.2.0 (#38) 2026-02-27 11:51:38 +01:00
extension.toml Bump version to 0.2.0 (#38) 2026-02-27 11:51:38 +01:00
LICENSE Create LICENSE 2025-09-30 11:39:33 -04:00
README.md Integrate with the Buildx Dockerfile debugger (#27) 2025-11-03 11:19:09 +01:00

Dockerfile Zed Extension

Configuration

To support matching filenames other than Dockerfile you can add file_types to your Zed project or user settings:

{
  "file_types": {
    "Dockerfile": ["Dockerfile.*"]
  }
}

Debugging

The extension supports debugging Dockerfile builds with Buildx. The minimal required version of Buildx is v0.28.0. To get Buildx, we recommend installing or updating Docker Desktop. You may alternatively install Buildx manually by following the instructions here.

You can validate your Buildx installation by running BUILDX_EXPERIMENTAL=1 docker buildx dap.

You can create a debug configuration by modifying your project's .zed/debug.json.

{
  "label": "Docker: Build", // required, configurable
  "adapter": "buildx-dockerfile", // required, must not be modified
  "request": "launch", // required, must not be modified
  "contextPath": "/home/username/worktree", // optional, defaults to ${ZED_WORKTREE_ROOT}
  "dockerfile": "/home/username/worktree/Dockerfile", // optional, defaults to ${ZED_WORKTREE_ROOT}/Dockerfile
  "target": "test", // optional, should be a build stage in the Dockerfile
  "stopOnEntry": true, // if the debugger should suspend on the first line, defaults to false
  "args": [
    // additional arguments for the build command
    "--build-arg",
    "NODE_ENV=development"
  ]
}

While a build has been suspended, you can evaluate exec to open a shell into the Docker image that has been built up to that point in time.