You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use service smithy4s.example#HelloService
TestPath {
<cursor>
}
the file is in a parseable state, and the position of the cursor is known. At the time of writing, Playground will generate the completions for the field:
it would be convenient to provide an additional completion item for each of the @httpREquestTests entries, which upon accepting would overwrite the entire input of the operation.
The text was updated successfully, but these errors were encountered:
Implementation-wise, this would require inspecting the smithy.test.HttpRequestTests trait inside CompletionProvider (I don't think that trait is available, so we might need to add some dependencies to handle that).
The completions could be eagerly loaded when building the provider, and added to the result of finding completions in this case:
Forgot to mention, HttpRequestTests's params is a Document. We can render a document using its NodeEncoder instance, but it'd be worth first checking if Smithy itself validates that the document is compatible with the operation's inputs. If it does, that's all good. If it doesn't, we might want to do it and show a warning sign or deprecation (?) next to the completion.
An operation in Smithy can be annotated with the
httpRequestTests
trait, which contains a list of example requests.We could offer the ability to generate an operation's input based on examples from that trait.
For example:
If the user writes:
the file is in a parseable state, and the position of the cursor is known. At the time of writing, Playground will generate the completions for the field:
it would be convenient to provide an additional completion item for each of the
@httpREquestTests
entries, which upon accepting would overwrite the entire input of the operation.The text was updated successfully, but these errors were encountered: