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
@nameafter typing@nainserts# @name. - Press
Ctrl+Nin editor insert mode to show suggestions at the cursor. UseUp/Downto select an item andTaborEnterto accept it. - After accepting a suggestion, the popup shows what can follow it. Choosing
@authopens auth modes,oauth2opens its options, andgrant=opens the supported grant types. - Header completion follows the same pattern. Accepting
Content-Typeopens value suggestions such asapplication/json. - Workflow steps and branches suggest request names for
using=andrun=.
You can use these suggestions to build directives such as:
# @auth oauth2 grant=client_credentials
# @settings http-version=2 followredirects=trueFile 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.jsonChoosing 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.
@comparesuggestions 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}}withhostproduces{{host}}. - In editor insert mode,
Ctrl+Ncontrols 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.