Skip to content

Commit ffc3733

Browse files
authored
Updates opentofu-schema and tofu-ls versions to 0.3.1 (#146)
Signed-off-by: Ilia Gogotchuri <ilia.gogotchuri0@gmail.com>
1 parent 31c13e3 commit ffc3733

5 files changed

Lines changed: 20 additions & 6 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818
github.com/mitchellh/cli v1.1.5
1919
github.com/mitchellh/go-homedir v1.1.0
2020
github.com/mitchellh/mapstructure v1.5.0
21-
github.com/opentofu/opentofu-schema v0.3.0
21+
github.com/opentofu/opentofu-schema v0.3.1
2222
github.com/opentofu/registry-address v0.0.0-20230922120653-901b9ae4061a
2323
github.com/opentofu/tofu-exec v0.0.2
2424
github.com/opentofu/tofudl v0.0.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,8 @@ github.com/npillmayer/nestext v0.1.3/go.mod h1:h2lrijH8jpicr25dFY+oAJLyzlya6jhnu
452452
github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
453453
github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4=
454454
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
455-
github.com/opentofu/opentofu-schema v0.3.0 h1:E7zJJ78MymJAGg+UOikYLpV0PbRxGJ28Z5IddV1dpeg=
456-
github.com/opentofu/opentofu-schema v0.3.0/go.mod h1:brkEqnz2GLUnJyKGMxYk8bKTfGmNIEmy+f6uJNOsUv0=
455+
github.com/opentofu/opentofu-schema v0.3.1 h1:YMaMamXss0w2e2PKxvH9Y+NfyxUEnJcBMcpOcsw+XiQ=
456+
github.com/opentofu/opentofu-schema v0.3.1/go.mod h1:brkEqnz2GLUnJyKGMxYk8bKTfGmNIEmy+f6uJNOsUv0=
457457
github.com/opentofu/registry-address v0.0.0-20230922120653-901b9ae4061a h1:NyM/PPbc+kxxv2d4OKfE32C5fLtVTLceyg4YKKCYO9Y=
458458
github.com/opentofu/registry-address v0.0.0-20230922120653-901b9ae4061a/go.mod h1:HzQhpVo/NJnGmN+7FPECCVCA5ijU7AUcvf39enBKYOc=
459459
github.com/opentofu/tofu-exec v0.0.2 h1:qpqaHfHVVqEPHfT/hLwRD3rClZNu2VTejrvfjIhGz9A=

internal/langserver/handlers/complete_test.go

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func TestEphemeralCompletion_ephemeralTypes(t *testing.T) {
9797
mock.AnythingOfType(""),
9898
},
9999
ReturnArguments: []interface{}{
100-
version.Must(version.NewVersion("1.11.0-beta1")),
100+
version.Must(version.NewVersion("1.11.0")),
101101
nil,
102102
nil,
103103
},
@@ -571,6 +571,20 @@ func TestModuleCompletion_withValidData_tooNewVersion(t *testing.T) {
571571
"newText": "description"
572572
}
573573
},
574+
{
575+
"label":"ephemeral",
576+
"kind":10,
577+
"detail":"optional, bool",
578+
"documentation":"Marks variable as ephemeral. OpenTofu will not store ephemeral variable in state at alland will store only their name in the plan. \n Ephemeral variables can only be used in the limited context where ephemerals are allowed. Read more about ephemeral variables.",
579+
"insertTextFormat":1,
580+
"textEdit":{
581+
"range": {
582+
"start":{"line":1,"character":0},
583+
"end":{"line":1,"character":0}
584+
},
585+
"newText":"ephemeral"
586+
}
587+
},
574588
{
575589
"label": "nullable",
576590
"kind": 10,

internal/langserver/handlers/testdata/ephemeral-completions/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
source = "test/test"
55
}
66
}
7-
required_version = "1.11.0-beta1"
7+
required_version = "1.11.0"
88
}
99

1010
ephemeral "" "eph1" {

version/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.0
1+
0.3.1

0 commit comments

Comments
 (0)