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) orCtrl+Shift+P(Windows/Linux) - Type "Install from VSIX"
- Select the generated
.vsixfile
- Press
Development Mode
- Open the
vscode-reqonfolder in VS Code - Press
F5to launch Extension Development Host - Open any
.vaguefile 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
}
Related
- Vague Language - Base language support (required)
- Reqon - The runtime for Vague pipelines
- Vague - The base DSL