What's Changed/Fixed
Resterm now keeps workspace files focused on the active request workspace. Files such as .json, .graphql, .gql, .js, .mjs, .cjs and .rts are shown in the navigator only when they are directly referenced by a .http/.rest file instead of showing every matching file in the workspace.
Resterm shows payloads/create-user.json because the request references it directly.
POST https://api.example.com/users
Content-Type: application/json
< ./payloads/create-user.json
Shows both queries/user.graphql and queries/user.vars.json.
# @graphql
# @query < ./queries/user.graphql
# @variables < ./queries/user.vars.json
POST https://api.example.com/graphql
Shows scripts/auth.js.
# @script pre-request
> < ./scripts/auth.js
GET https://api.example.com/me
Files that are not referenced by any .http/.rest file are no longer shown just because their extension matches. Dynamic paths, such as {{payloadFile}} or json.file(vars.get("path")) are not added to the navigator automatically.