From 3a9f1152b91340ea8250a4ca5c496e9f7b344743 Mon Sep 17 00:00:00 2001 From: Remy Suen Date: Wed, 27 Aug 2025 10:14:27 -0400 Subject: [PATCH] Support ignoring InvalidBaseImagePlatform with a code action Signed-off-by: Remy Suen --- CHANGELOG.md | 6 ++++++ internal/pkg/buildkit/service.go | 2 ++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cc8c81..421e646 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to the Docker Language Server will be documented in this fil ## [Unreleased] +### Added + +- Dockerfile + - textDocument/codeAction + - `InvalidBaseImagePlatform` warnings can now be ignored with a code action ([#464](https://github.com/docker/docker-language-server/issues/464)) + ### Fixed - Compose diff --git a/internal/pkg/buildkit/service.go b/internal/pkg/buildkit/service.go index deb932c..347ea28 100644 --- a/internal/pkg/buildkit/service.go +++ b/internal/pkg/buildkit/service.go @@ -187,6 +187,8 @@ func createIgnoreEdit(ruleName string) *types.NamedEdit { fallthrough case "FromPlatformFlagConstDisallowed": fallthrough + case "InvalidBaseImagePlatform": + fallthrough case "InvalidDefaultArgInFrom": fallthrough case "InvalidDefinitionDescription":