Skip to content

Commit dec119c

Browse files
authored
Change dynamic block type to default (#168)
1 parent 9a3d8b3 commit dec119c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

decoder/body_extensions_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,7 @@ resource "aws_elastic_beanstalk_environment" "example" {
18391839
Value: "A dynamic block to produce blocks dynamically by iterating over a given complex value",
18401840
Kind: lang.MarkdownKind,
18411841
},
1842-
Detail: "Block, map",
1842+
Detail: "Block",
18431843
Kind: lang.BlockCandidateKind,
18441844
TriggerSuggest: true,
18451845
TextEdit: lang.TextEdit{
@@ -2269,7 +2269,7 @@ resource "aws_elastic_beanstalk_environment" "example" {
22692269
Value: "A dynamic block to produce blocks dynamically by iterating over a given complex value",
22702270
Kind: lang.MarkdownKind,
22712271
},
2272-
Detail: "Block, map",
2272+
Detail: "Block",
22732273
Kind: lang.BlockCandidateKind,
22742274
TriggerSuggest: true,
22752275
TextEdit: lang.TextEdit{
@@ -2435,7 +2435,7 @@ resource "aws_elastic_beanstalk_environment" "example" {
24352435
Value: "A dynamic block to produce blocks dynamically by iterating over a given complex value",
24362436
Kind: lang.MarkdownKind,
24372437
},
2438-
Detail: "Block, map",
2438+
Detail: "Block",
24392439
Kind: lang.BlockCandidateKind,
24402440
TriggerSuggest: true,
24412441
TextEdit: lang.TextEdit{
@@ -2537,7 +2537,7 @@ resource "aws_elastic_beanstalk_environment" "example" {
25372537
Value: "A dynamic block to produce blocks dynamically by iterating over a given complex value",
25382538
Kind: lang.MarkdownKind,
25392539
},
2540-
Detail: "Block, map",
2540+
Detail: "Block",
25412541
Kind: lang.BlockCandidateKind,
25422542
TriggerSuggest: true,
25432543
TextEdit: lang.TextEdit{

decoder/decoder.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ func buildDynamicBlockSchema(inputSchema *schema.BodySchema) *schema.BlockSchema
245245

246246
return &schema.BlockSchema{
247247
Description: lang.Markdown("A dynamic block to produce blocks dynamically by iterating over a given complex value"),
248-
Type: schema.BlockTypeMap,
249248
Labels: []*schema.LabelSchema{
250249
{
251250
Name: "name",

decoder/hover_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ func TestDecoder_HoverAtPos_extensions_dynamic(t *testing.T) {
14401440
hcl.Pos{Line: 2, Column: 5, Byte: 26},
14411441
&lang.HoverData{
14421442
Content: lang.MarkupContent{
1443-
Value: "**dynamic** _Block, map_\n\n" +
1443+
Value: "**dynamic** _Block_\n\n" +
14441444
"A dynamic block to produce blocks dynamically by iterating over a given complex value",
14451445
Kind: lang.MarkdownKind,
14461446
},

0 commit comments

Comments
 (0)