Skip to content

Commit

Permalink
feat(languages): add support for *.Dockerfile file-types naming c…
Browse files Browse the repository at this point in the history
…onvention

Current `file-types` only supports up to a `Dockerfile.frontend` naming scheme.

With these changes `frontend.Dockerfile` now gives proper highlights and lsp actions.
  • Loading branch information
RoloEdits committed Mar 2, 2024
1 parent 44db259 commit 2bf1879
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,16 @@ name = "dockerfile"
scope = "source.dockerfile"
injection-regex = "docker|dockerfile"
roots = ["Dockerfile", "Containerfile"]
file-types = [{ glob = "Dockerfile*" }, { glob = "dockerfile*" }, { glob = "Containerfile*" }, { glob = "containerfile*" }]
file-types = [
"Dockerfile",
{ glob = "Dockerfile*" },
"dockerfile",
{ glob = "dockerfile*" },
"Containerfile",
{ glob = "Containerfile*" },
"containerfile",
{ glob = "containerfile*" },
]
comment-token = "#"
indent = { tab-width = 2, unit = " " }
language-servers = [ "docker-langserver" ]
Expand Down

0 comments on commit 2bf1879

Please sign in to comment.