Skip to content

Commit 7f09072

Browse files
committed
Add support for Reporters. Closes #89
1 parent 9b23f8c commit 7f09072

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [0.4.0] - 2024-05-30
99

10+
### Added:
11+
12+
- Snippet: `devproxy-reporter-json` - JsonReporter instance
13+
- Snippet: `devproxy-reporter-markdown` - MarkdownReporter instance
14+
- Snippet: `devproxy-reporter-plain-text` - PlainTextReporter instance
15+
- CodeLens: `JsonReporter`
16+
- CodeLens: `MarkdownReporter`
17+
- CodeLens: `PlainTextReporter`
18+
1019
### Changed:
1120

1221
- Notification: Support for installing Dev Proxy via package manager when not installed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,6 @@ The following sections describe the features that the extension contributes to V
104104
| `devproxy-plugin-rate-limiting-file` | Dev Proxy rate limiting file |
105105
| `devproxy-plugin-rate-limiting-file-schema` | Dev Proxy rate limiting file schema |
106106
| `devproxy-plugin-retry-after` | RetryAfterPlugin instance |
107+
| `devproxy-reporter-json` | JsonReporter instance |
108+
| `devproxy-reporter-markdown` | MarkdownReporter instance |
109+
| `devproxy-reporter-plain-text` | PlainTextReporter instance |

src/constants.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@ export const pluginSnippets: PluginSnippets = {
136136
RetryAfterPlugin: {
137137
instance: 'devproxy-plugin-retry-after',
138138
},
139+
JsonReporter: {
140+
instance: 'devproxy-reporter-json',
141+
},
142+
MarkdownReporter: {
143+
instance: 'devproxy-reporter-markdown'
144+
},
145+
PlainTextReporter: {
146+
instance: 'devproxy-reporter-plain-text'
147+
},
139148
};
140149

141150
export const pluginDocs: PluginDocs = {
@@ -238,5 +247,17 @@ export const pluginDocs: PluginDocs = {
238247
RetryAfterPlugin: {
239248
name: 'Retry After Plugin',
240249
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/retryafterplugin',
250+
},
251+
JsonReporter: {
252+
name: 'JSON Reporter',
253+
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/jsonreporter',
254+
},
255+
MarkdownReporter: {
256+
name: 'Markdown Reporter',
257+
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/markdownreporter',
258+
},
259+
PlainTextReporter: {
260+
name: 'Plain Text Reporter',
261+
url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/plaintextreporter',
241262
}
242263
};

src/snippets.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,5 +676,38 @@
676676
"}"
677677
],
678678
"description": "RetryAfterPlugin instance"
679+
},
680+
"JsonReporter": {
681+
"prefix": "devproxy-reporter-json",
682+
"body": [
683+
"{",
684+
"\t\"name\": \"JsonReporter\",",
685+
"\t\"enabled\": true,",
686+
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\"",
687+
"}"
688+
],
689+
"description": "JsonReporter instance"
690+
},
691+
"MarkdownReporter": {
692+
"prefix": "devproxy-reporter-markdown",
693+
"body": [
694+
"{",
695+
"\t\"name\": \"MarkdownReporter\",",
696+
"\t\"enabled\": true,",
697+
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\"",
698+
"}"
699+
],
700+
"description": "MarkdownReporter instance"
701+
},
702+
"PlainTextReporter": {
703+
"prefix": "devproxy-reporter-plain-text",
704+
"body": [
705+
"{",
706+
"\t\"name\": \"PlainTextReporter\",",
707+
"\t\"enabled\": true,",
708+
"\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\"",
709+
"}"
710+
],
711+
"description": "PlainTextReporter instance"
679712
}
680713
}

0 commit comments

Comments
 (0)