diff --git a/go.mod b/go.mod index bd9c3236b..d4cec35c2 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/hashicorp/terraform-exec v0.13.3 github.com/hashicorp/terraform-json v0.11.0 github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896 - github.com/hashicorp/terraform-schema v0.0.0-20210610083714-03085295bd36 + github.com/hashicorp/terraform-schema v0.0.0-20210610085118-e42d6aa8c63d github.com/kylelemons/godebug v1.1.0 // indirect github.com/mh-cbon/go-fmt-fail v0.0.0-20160815164508-67765b3fbcb5 github.com/mitchellh/cli v1.1.2 diff --git a/go.sum b/go.sum index 3d94a0fe3..6e91ff3a8 100644 --- a/go.sum +++ b/go.sum @@ -203,8 +203,8 @@ github.com/hashicorp/terraform-json v0.11.0 h1:4zDqqW2F3kOysORIaYKFGgWDYIRA3hwqx github.com/hashicorp/terraform-json v0.11.0/go.mod h1:pmbq9o4EuL43db5+0ogX10Yofv1nozM+wskr/bGFJpI= github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896 h1:1FGtlkJw87UsTMg5s8jrekrHmUPUJaMcu6ELiVhQrNw= github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896/go.mod h1:bzBPnUIkI0RxauU8Dqo+2KrZZ28Cf48s8V6IHt3p4co= -github.com/hashicorp/terraform-schema v0.0.0-20210610083714-03085295bd36 h1:sqpjt62JAEyiZHns3PR/wZVILmaJEsF2zwkj6rCchfA= -github.com/hashicorp/terraform-schema v0.0.0-20210610083714-03085295bd36/go.mod h1:6HnR9FvXrFimOgw3U/9Y1w8J02RJj6YWm7WSOFb4iEM= +github.com/hashicorp/terraform-schema v0.0.0-20210610085118-e42d6aa8c63d h1:1vQ8qwBeZDOqt+UmuZ8D+hRnS3ilLHziV8XXBkzDAW8= +github.com/hashicorp/terraform-schema v0.0.0-20210610085118-e42d6aa8c63d/go.mod h1:6HnR9FvXrFimOgw3U/9Y1w8J02RJj6YWm7WSOFb4iEM= github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 h1:HKLsbzeOsfXmKNpr3GiT18XAblV0BjCbzL8KQAMZGa0= github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg= github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw= diff --git a/internal/langserver/handlers/complete_test.go b/internal/langserver/handlers/complete_test.go index d6fef5c50..398ae4c74 100644 --- a/internal/langserver/handlers/complete_test.go +++ b/internal/langserver/handlers/complete_test.go @@ -584,7 +584,7 @@ func TestVarsCompletion_withValidData(t *testing.T) { { "label": "test", "kind": 10, - "detail": "string", + "detail": "required, string", "insertTextFormat":1, "textEdit": { "range": {"start":{"line":0,"character":0}, "end":{"line":0,"character":0}}, diff --git a/internal/langserver/handlers/hover_test.go b/internal/langserver/handlers/hover_test.go index f8b96d67d..7dbc06100 100644 --- a/internal/langserver/handlers/hover_test.go +++ b/internal/langserver/handlers/hover_test.go @@ -197,7 +197,7 @@ func TestVarsHover_withValidData(t *testing.T) { "textDocument": { "version": 0, "languageId": "terraform", - "text": "variable \"test\" {\n type=string\n}\n", + "text": "variable \"test\" {\n type=string\n sensitive=true}\n", "uri": "%s/variables.tf" } }`, tmpDir.URI())}) @@ -228,7 +228,7 @@ func TestVarsHover_withValidData(t *testing.T) { "result": { "contents": { "kind": "plaintext", - "value": "test string" + "value": "test required, sensitive, string" }, "range": { "start": { "line":0, "character":0 },