Skip to content

Commit 4278f3b

Browse files
authored
Add Dev Proxy Error snippet. Closes #128 (#130)
1 parent ce6b294 commit 4278f3b

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626
- Diagnostics: Collection renamed to `dev-proxy-toolkit`
2727
- Snippets: Support for JSONC (JSON with Comments) files
2828
- Snippets: `devproxy-plugin-graph-minimal-permissions-guidance-config` - MinimalPermissionsGuidancePlugin config section
29+
- Snippets: `devproxy-error` - Dev Proxy error
2930

3031
### Changed:
3132

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Shown when the active document is a Dev Proxy configuration file
6565
| ------ | ----------- |
6666
| `devproxy-config-file` | Dev Proxy config file |
6767
| `devproxy-config-file-schema` | Dev Proxy config file schema |
68+
| `devproxy-error` | Dev Proxy error |
6869
| `devproxy-mocks-file` | Dev Proxy mocks file |
6970
| `devproxy-mocks-file-schema` | Dev Proxy mocks file schema |
7071
| `devproxy-mock` | Dev Proxy mock |

src/snippets.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@
2121
],
2222
"description": "Dev Proxy config file schema"
2323
},
24+
"Error": {
25+
"prefix": "devproxy-error",
26+
"body": [
27+
"{",
28+
"\t\"request\": {",
29+
"\t\t\"url\": \"$1\"",
30+
"\t},",
31+
"\t\"responses\": [",
32+
"\t\t$2",
33+
"\t]",
34+
"}"
35+
],
36+
"description": "Dev Proxy error"
37+
},
2438
"MocksFile": {
2539
"prefix": "devproxy-mocks-file",
2640
"body": [

0 commit comments

Comments
 (0)