Skip to content

Add Dockerfile formatter support #30

@li1234yun

Description

@li1234yun

When I save the dockerfile, the zed will use default prettier formatter. The prettier is not support dockerfile.

2025-12-01T07:47:53+08:00 ERROR [crates/editor/src/editor.rs:17754] RPC request FormatBuffers failed: default prettier instance failed to format buffer: UndefinedParserError: No parser could be inferred for file "/home/lzy/git/architecture/code/microservice/app/nav/Dockerfile". While handling prettier request: {"jsonrpc":"2.0","id":5,"method":"prettier/format","params":{"text":"..snip..","options":{"plugins":[],"parser":null,"filepath":"/home/lzy/git/architecture/code/microservice/app/nav/Dockerfile","prettierOptions":{"printWidth":80,"useTabs":false,"tabWidth":4},"ignorePath":null}}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions