diff --git a/internal/display/list_resources.go b/internal/display/list_resources.go index 137ec804..a12ff47f 100644 --- a/internal/display/list_resources.go +++ b/internal/display/list_resources.go @@ -92,6 +92,8 @@ func getListLoadWorkspaceOpts[T modconfig.ModTreeItem]() []workspace.LoadWorkspa switch any(empty).(type) { case *modconfig.Mod: opts = append(opts, workspace.WithBlockType([]string{schema.BlockTypeMod})) + case *modconfig.Variable: + opts = append(opts, workspace.WithBlockType([]string{schema.BlockTypeVariable})) } return opts }