Skip to content

v1.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 06 Sep 11:50

v1.6.0

This release is all about making working with requests easier and quicker. The editors intellisense helps you choose directives, fill in options, and find files with less typing.

Added

  • Directives can be completed without first typing a comment marker. Accepting @name after typing @na inserts # @name .
  • Press Ctrl+N in editor insert mode to show suggestions at the cursor. Use Up / Down to select an item and Tab or Enter to accept it.
  • After accepting a suggestion, the popup shows what can follow it. Choosing @auth opens auth modes, oauth2 opens its options, and grant= opens the supported grant types.
  • Header completion follows the same pattern. Accepting Content-Type opens value suggestions such as application/json.
  • Workflow steps and branches suggest request names for using= and run=.

You can use these suggestions to build directives such as:

# @auth oauth2 grant=client_credentials
# @settings http-version=2 followredirects=true

File and directory suggestions are now available for request bodies, script and body includes, gRPC descriptors, and TLS, SSH, and Kubernetes path options.

Suggestions are filtered by file type:

# @use modules/helpers.rts as helpers
# @query < queries/users.graphql
# @variables < data/users.json

Choosing a directory opens its contents. Relative paths start from the request file's directory, or the workspace for temporary documents.

Changed

  • Options that can appear only once disappear after use, including their aliases.
  • @compare suggestions follow the selected environment group. Baseline suggestions use the comparison targets already chosen.
  • @apply use= can still be repeated, but profiles already selected are omitted.
  • Dynamic helpers with example calls now insert the call and select only its arguments for replacement.
  • Variable completion adds missing closing braces. Completing {{ho, {{ho}, or {{ho}} with host produces {{host}}.
  • In editor insert mode, Ctrl+N controls completion. Outside insert mode, the configured New Request shortcut still applies.
  • The built-in help and bottom command bar include the completion shortcut.

Fixed

  • Completing an existing header name preserves its value and spacing without duplicating the colon or remaining name.
  • Completing a URL scheme preserves the rest of the URL without duplicating existing scheme text.
  • Request, profile, and environment names containing spaces are quoted when inserted.
  • Baseline suggestions work with flat environment files.
  • Completion inside expressions and helper arguments preserves the surrounding text and existing arguments.
  • Editing inside a name while the popup is open keeps the replacement range current, preventing completion from removing closing braces.
  • Accepting a suggestion before an existing space continues to the next argument.
  • Completing one entry in a list of file paths preserves the other entries.