Skip to content

Commit

Permalink
Change dynamic block type to default (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck authored Nov 30, 2022
1 parent 9a3d8b3 commit dec119c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions decoder/body_extensions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1839,7 +1839,7 @@ resource "aws_elastic_beanstalk_environment" "example" {
Value: "A dynamic block to produce blocks dynamically by iterating over a given complex value",
Kind: lang.MarkdownKind,
},
Detail: "Block, map",
Detail: "Block",
Kind: lang.BlockCandidateKind,
TriggerSuggest: true,
TextEdit: lang.TextEdit{
Expand Down Expand Up @@ -2269,7 +2269,7 @@ resource "aws_elastic_beanstalk_environment" "example" {
Value: "A dynamic block to produce blocks dynamically by iterating over a given complex value",
Kind: lang.MarkdownKind,
},
Detail: "Block, map",
Detail: "Block",
Kind: lang.BlockCandidateKind,
TriggerSuggest: true,
TextEdit: lang.TextEdit{
Expand Down Expand Up @@ -2435,7 +2435,7 @@ resource "aws_elastic_beanstalk_environment" "example" {
Value: "A dynamic block to produce blocks dynamically by iterating over a given complex value",
Kind: lang.MarkdownKind,
},
Detail: "Block, map",
Detail: "Block",
Kind: lang.BlockCandidateKind,
TriggerSuggest: true,
TextEdit: lang.TextEdit{
Expand Down Expand Up @@ -2537,7 +2537,7 @@ resource "aws_elastic_beanstalk_environment" "example" {
Value: "A dynamic block to produce blocks dynamically by iterating over a given complex value",
Kind: lang.MarkdownKind,
},
Detail: "Block, map",
Detail: "Block",
Kind: lang.BlockCandidateKind,
TriggerSuggest: true,
TextEdit: lang.TextEdit{
Expand Down
1 change: 0 additions & 1 deletion decoder/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ func buildDynamicBlockSchema(inputSchema *schema.BodySchema) *schema.BlockSchema

return &schema.BlockSchema{
Description: lang.Markdown("A dynamic block to produce blocks dynamically by iterating over a given complex value"),
Type: schema.BlockTypeMap,
Labels: []*schema.LabelSchema{
{
Name: "name",
Expand Down
2 changes: 1 addition & 1 deletion decoder/hover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ func TestDecoder_HoverAtPos_extensions_dynamic(t *testing.T) {
hcl.Pos{Line: 2, Column: 5, Byte: 26},
&lang.HoverData{
Content: lang.MarkupContent{
Value: "**dynamic** _Block, map_\n\n" +
Value: "**dynamic** _Block_\n\n" +
"A dynamic block to produce blocks dynamically by iterating over a given complex value",
Kind: lang.MarkdownKind,
},
Expand Down

0 comments on commit dec119c

Please sign in to comment.