rescript-edgedb comes with this dedicated VSCode extension designed to enhance the experience of using ReScript and EdgeDB together. Below is a list of how you use it, and what it can do.
NOTE: Make sure you install the official EdgeDB extension as well, so you get syntax highlighting and more.
Snippets for easily adding new %edgeql blocks are included:
These appear as soon as you start writing %edgeql in a ReScript file.
Any errors for your EdgeQL queries will show directly in your ReScript files that define them:
You can easily open the local EdgeDB UI, edit your query in there (including running it, etc), and then insert the modified query back:
It works like this:
- Put the cursor in the query you want to edit.
- Activate code actions.
- Select the code action for opening the EdgeDB UI and copying the query.
- The local EdgeDB query editor UI will now open in your browser, and the EdgeQL query you had your cursor in will be copied to your clipboard.
- Paste the query into the query editor and make the edits you want.
- Copy the entire query text and go back to VSCode and the file which has your query.
- Activate code actions again and select the code action for inserting your modified query.
- Done!


