Skip to content

Commit

Permalink
reflect upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Nov 10, 2020
1 parent 11854ca commit 58daad2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/terraform/rootmodule/root_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,10 @@ func (rm *rootModule) load(ctx context.Context) error {
errs = multierror.Append(errs, err)

err = rm.findAndSetCoreSchema()
errs = multierror.Append(errs, err)
if err != nil {
rm.logger.Printf("%s: %s - falling back to universal schema",
rm.Path(), err)
}

err = rm.UpdateProviderSchemaCache(ctx, rm.pluginLockFile)
errs = multierror.Append(errs, err)
Expand Down
20 changes: 20 additions & 0 deletions langserver/handlers/complete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,26 @@ func TestCompletion_withValidData(t *testing.T) {
},
"newText": "individual"
}
},
{
"label": "version",
"kind": 10,
"detail": "Optional, string",
"documentation": "Specifies a version constraint for the provider, e.g. ~\u003e 1.0",
"insertTextFormat": 1,
"textEdit": {
"range": {
"start": {
"line": 1,
"character": 0
},
"end": {
"line": 1,
"character": 0
}
},
"newText": "version"
}
}
]
}
Expand Down

0 comments on commit 58daad2

Please sign in to comment.