From be3a5026ef1ac9cc7988e3d100a20bf21c58a632 Mon Sep 17 00:00:00 2001 From: Aaron Lehmann Date: Tue, 5 Mar 2024 20:00:08 +0000 Subject: [PATCH] Add link to var substitution spec --- devcontainer/devcontainer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devcontainer/devcontainer.go b/devcontainer/devcontainer.go index d083a088..51ea846c 100644 --- a/devcontainer/devcontainer.go +++ b/devcontainer/devcontainer.go @@ -88,6 +88,8 @@ func SubstituteVars(s string, workspaceFolder string) string { } } +// Spec for variable substitutions: +// https://containers.dev/implementors/json_reference/#variables-in-devcontainerjson func substitute(varExpr string, workspaceFolder string) string { parts := strings.Split(varExpr, ":") if len(parts) == 1 {