Reqon Language Support for VS Code
Adds Reqon-specific syntax highlighting to .vague files. This extension injects Reqon keywords into the base Vague language grammar.
Requirements
This extension requires the Vague Language extension to be installed.
Features
Adds highlighting for Reqon-specific keywords:
- Mission keywords:
mission, action, source, store, run, then
- HTTP methods:
get, post, put, patch, delete, call
- Store types:
memory, file, sql, nosql, postgrest
- Auth types:
oauth2, bearer, basic, api_key, none
- Control flow:
for, each, map, apply, to, as, transform, try
- Flow directives:
continue, skip, abort, queue, jump, retry
- Pagination:
paginate, offset, cursor, page, until
- Sync:
since, lastSync
- Scheduling:
schedule, cron, every, at, hours, minutes, seconds, days, weeks
- Webhook:
wait, timeout, path, expectedEvents, eventFilter, storage
- Options:
key, partial, upsert, auth, base, headers, validateResponses, etc.
- Special variables:
response
Installation
From VSIX (Local Install)
Package the extension:
cd vscode-reqon
npx @vscode/vsce package
Install in VS Code:
- Press
Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)
- Type "Install from VSIX"
- Select the generated
.vsix file
Development Mode
- Open the
vscode-reqon folder in VS Code
- Press
F5 to launch Extension Development Host
- Open any
.vague file to see Reqon syntax highlighting
Example
mission SyncInvoices {
source Xero from "./xero-openapi.yaml" {
auth: oauth2,
validateResponses: true
}
store invoices: file("invoices")
action FetchInvoices {
call Xero.getInvoices {
paginate: offset,
since: lastSync
}
store response.Invoices -> invoices {
key: .InvoiceID,
upsert: true
}
}
run FetchInvoices
}
| |