From 839b8f71671e06ef3691dc291d080db1e8bab87a Mon Sep 17 00:00:00 2001 From: Garry Trinder Date: Mon, 3 Feb 2025 10:53:53 +0000 Subject: [PATCH] Add UrlDiscoveryPlugin instance --- CHANGELOG.md | 3 ++- README.md | 1 + src/constants.ts | 7 +++++++ src/snippets.json | 11 +++++++++++ 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3d56d2..48e8f68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,13 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 > **Note**: odd version numbers, for example, `0.13.0`, are not included in this changelog. They are used to test the new features and fixes before the final release. -## [0.15.1] - Unreleased +## [0.15.2] - Unreleased ### Added: - Diagnostics: Ensure at least one plugin is enabled - Diagnostics: Information added to pluginName value when plugin can be configured with a configSection - Diagnostics: Warning added to config sections not connected to a plugin +- Snippets: `devproxy-plugin-url-discovery` - UrlDiscoveryPlugin instance ### Changed: diff --git a/README.md b/README.md index ad4de8c..3d80c0d 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,7 @@ Shown when the active document is a Dev Proxy configuration file | `devproxy-plugin-retry-after` | RetryAfterPlugin instance | | `devproxy-plugin-rewrite` | RewritePlugin instance | | `devproxy-plugin-rewrite-config` | RewritePlugin config section | +| `devproxy-plugin-url-discovery` | UrlDiscoveryPlugin instance | | `devproxy-reporter-json` | JsonReporter instance | | `devproxy-reporter-markdown` | MarkdownReporter instance | | `devproxy-reporter-plain-text` | PlainTextReporter instance | diff --git a/src/constants.ts b/src/constants.ts index 3ce8d7d..227cb70 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -171,6 +171,9 @@ export const pluginSnippets: PluginSnippets = { required: true, } }, + UrlDiscoveryPlugin: { + instance: 'devproxy-plugin-url-discovery', + }, JsonReporter: { instance: 'devproxy-reporter-json', }, @@ -303,6 +306,10 @@ export const pluginDocs: PluginDocs = { name: 'Rewrite Plugin', url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/rewriteplugin', }, + UrlDiscoveryPlugin: { + name: 'UrlDiscovery Plugin', + url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/urldiscoveryplugin', + }, JsonReporter: { name: 'JSON Reporter', url: 'https://learn.microsoft.com/microsoft-cloud/dev/dev-proxy/technical-reference/jsonreporter', diff --git a/src/snippets.json b/src/snippets.json index 4ceec76..1150c6c 100644 --- a/src/snippets.json +++ b/src/snippets.json @@ -873,6 +873,17 @@ ], "description": "RewritePlugin config section" }, + "UrlDiscoveryPlugin": { + "prefix": "devproxy-plugin-url-discovery", + "body": [ + "{", + "\t\"name\": \"UrlDiscoveryPlugin\",", + "\t\"enabled\": true,", + "\t\"pluginPath\": \"~appFolder/plugins/dev-proxy-plugins.dll\"", + "}" + ], + "description": "UrlDiscoveryPlugin instance" + }, "JsonReporter": { "prefix": "devproxy-reporter-json", "body": [