Skip to content

Commit

Permalink
Add support for Reporters. Closes #89
Browse files Browse the repository at this point in the history
  • Loading branch information
garrytrinder committed May 29, 2024
1 parent 9b23f8c commit 7f3b08b
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.4.0] - 2024-05-30

### Added:

- Snippet: `devproxy-reporter-json` - JsonReporter instance
- Snippet: `devproxy-reporter-markdown` - MarkdownReporter instance
- Snippet: `devproxy-reporter-plain-text` - PlainTextReporter instance
- CodeLens: `JsonReporter`
- CodeLens: `MarkdownReporter`
- CodeLens: `PlainTextReporter`

### Changed:

- Notification: Support for installing Dev Proxy via package manager when not installed
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,6 @@ The following sections describe the features that the extension contributes to V
| `devproxy-plugin-rate-limiting-file` | Dev Proxy rate limiting file |
| `devproxy-plugin-rate-limiting-file-schema` | Dev Proxy rate limiting file schema |
| `devproxy-plugin-retry-after` | RetryAfterPlugin instance |
| `devproxy-reporter-json` | JsonReporter instance |
| `devproxy-reporter-markdown` | MarkdownReporter instance |
| `devproxy-reporter-plain-text` | PlainTextReporter instance |
21 changes: 21 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@ export const pluginSnippets: PluginSnippets = {
RetryAfterPlugin: {
instance: 'devproxy-plugin-retry-after',
},
JsonReporter: {
instance: 'devproxy-reporter-json',
},
MarkdownReporter: {
instance: 'devproxy-reporter-markdown'
},
PlainTextReporter: {
instance: 'devproxy-reporter-plain-text'
},
};

export const pluginDocs: PluginDocs = {
Expand Down Expand Up @@ -238,5 +247,17 @@ export const pluginDocs: PluginDocs = {
RetryAfterPlugin: {
name: 'Retry After Plugin',
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/retryafterplugin',
},
JsonReporter: {
name: 'JSON Reporter',
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/jsonreporter',
},
MarkdownReporter: {
name: 'Markdown Reporter',
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/markdownreporter',
},
PlainTextReporter: {
name: 'Plain Text Reporter',
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/plaintextreporter',
}
};
33 changes: 33 additions & 0 deletions src/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -676,5 +676,38 @@
"}"
],
"description": "RetryAfterPlugin instance"
},
"JsonReporter": {
"prefix": "devproxy-reporter-json",
"body": [
"{",
"\t\"name\": \"JsonReporter\",",
"\t\"enabled\": true,",
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\"",
"}"
],
"description": "JsonReporter instance"
},
"MarkdownReporter": {
"prefix": "devproxy-reporter-markdown",
"body": [
"{",
"\t\"name\": \"MarkdownReporter\",",
"\t\"enabled\": true,",
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\"",
"}"
],
"description": "MarkdownReporter instance"
},
"PlainTextReporter": {
"prefix": "devproxy-reporter-plain-text",
"body": [
"{",
"\t\"name\": \"PlainTextReporter\",",
"\t\"enabled\": true,",
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\"",
"}"
],
"description": "PlainTextReporter instance"
}
}

0 comments on commit 7f3b08b

Please sign in to comment.