-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for editing Regal in VS Code (#600)
Options like `checkOnSave` would previously not work when hacking on Regal, as a custom capabilities file would need to be provided. Using the latest version of the OPA extension, this is now supported via the `opa.env` option. Signed-off-by: Anders Eknert <[email protected]>
- Loading branch information
1 parent
b229e5f
commit 2179066
Showing
3 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,3 @@ dist/ | |
|
||
/regal | ||
/regal.exe | ||
|
||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"opa.env": { | ||
"OPA_CHECK_CAPABILITIES": "${workspacePath}/build/capabilities.json", | ||
"OPA_EVAL_CAPABILITIES": "${workspacePath}/build/capabilities.json" | ||
}, | ||
"opa.roots": [ | ||
"${workspaceFolder}/bundle" | ||
], | ||
"opa.strictMode": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters