Skip to content

Commit

Permalink
Autocomplete on the retainOnDelete resource option
Browse files Browse the repository at this point in the history
  • Loading branch information
iwahbe committed Sep 17, 2024
1 parent c5770b8 commit 6a75b54
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sdk/yaml/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ func (s *server) completeReference(c lsp.Client, doc *document, ref *Reference)
// all results to prevent the filter from being eaten by the host.
//
// For example:
// typePropertyCompletion(type({foo: string, bar: int}), "someType.") would
// complete to ["someType.foo", "someType.bar"].
//
// typePropertyCompletion(type({foo: string, bar: int}), "someType.") would
// complete to ["someType.foo", "someType.bar"].
func (s *server) typePropertyCompletion(t schema.Type, filterPrefix string) (*protocol.CompletionList, error) {
var props []*schema.Property
switch t := codegen.UnwrapType(t).(type) {
Expand Down Expand Up @@ -850,6 +851,8 @@ func completeResourceOptionsKeys(doc *document, keyPos protocol.Position, post p
"Map of providers for a resource and its children.", post.intoObject},
{"version", "string",
"Version specifies a provider plugin version that should be used when operating on a resource", post.sameLine},
{"retainOnDelete", "boolean",
"Retain on delete leaks the resource on delete instead of removing it from the underlying cloud", post.sameLine},
})
}

Expand Down

0 comments on commit 6a75b54

Please sign in to comment.