Skip to content

Commit b8e6e11

Browse files
Add YAML snippets (#345)
* Initial plan * Add YAML equivalents for all JSON config/plugin snippets and add yml language support Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com> * Fix incorrect snippet descriptions for MockRequestPlugin and RateLimitingPlugin Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com> * Deduplicate README Snippets section into a single unified table Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com> * Fix shell.test.ts to match main branch (remove non-configurable sinon stub) Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com> * Remove Yaml suffix from snippet keys in yaml-snippets.json Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com>
1 parent 9b4f62f commit b8e6e11

3 files changed

Lines changed: 1051 additions & 21 deletions

File tree

README.md

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,10 @@ Control Dev Proxy directly from VS Code via the Command Palette (`Cmd+Shift+P` /
3737

3838
### Snippets
3939

40-
Type `devproxy-` to access 80+ snippets:
41-
42-
- **JSON** - Config files, plugins, mocks, and more
43-
- **YAML** - GitHub Actions workflow steps
40+
Type `devproxy-` to access 100+ snippets in JSON, JSONC, YAML and YML files.
4441

4542
<details>
46-
<summary><strong>JSON Snippets</strong> (click to expand)</summary>
43+
<summary><strong>Snippets</strong> (click to expand)</summary>
4744

4845
| Prefix | Description |
4946
| ------ | ----------- |
@@ -147,22 +144,14 @@ Type `devproxy-` to access 80+ snippets:
147144
| `devproxy-reporter-json` | JsonReporter instance |
148145
| `devproxy-reporter-markdown` | MarkdownReporter instance |
149146
| `devproxy-reporter-plain-text` | PlainTextReporter instance |
150-
| `devproxy-task-start` | Start Dev Proxy VS Code Task |
151-
| `devproxy-task-stop` | Stop Dev Proxy VS Code Task |
152-
153-
</details>
154-
155-
<details>
156-
<summary><strong>YAML Snippets</strong> (click to expand)</summary>
157-
158-
| Prefix | Description |
159-
| ------ | ----------- |
160-
| `devproxy-action-setup` | GitHub Actions step: Setup Dev Proxy (recommended) |
161-
| `devproxy-action-start` | GitHub Actions step: Start Dev Proxy manually |
162-
| `devproxy-action-stop` | GitHub Actions step: Stop Dev Proxy |
163-
| `devproxy-action-record-start` | GitHub Actions step: Start Dev Proxy recording |
164-
| `devproxy-action-record-stop` | GitHub Actions step: Stop Dev Proxy recording |
165-
| `devproxy-action-chromium-cert` | GitHub Actions step: Install Dev Proxy certificate for Chromium browsers |
147+
| `devproxy-task-start` | Start Dev Proxy VS Code Task (JSON only) |
148+
| `devproxy-task-stop` | Stop Dev Proxy VS Code Task (JSON only) |
149+
| `devproxy-action-setup` | GitHub Actions step: Setup Dev Proxy (YAML only) |
150+
| `devproxy-action-start` | GitHub Actions step: Start Dev Proxy manually (YAML only) |
151+
| `devproxy-action-stop` | GitHub Actions step: Stop Dev Proxy (YAML only) |
152+
| `devproxy-action-record-start` | GitHub Actions step: Start Dev Proxy recording (YAML only) |
153+
| `devproxy-action-record-stop` | GitHub Actions step: Stop Dev Proxy recording (YAML only) |
154+
| `devproxy-action-chromium-cert` | GitHub Actions step: Install Dev Proxy certificate for Chromium browsers (YAML only) |
166155

167156
</details>
168157

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@
172172
{
173173
"language": "yaml",
174174
"path": "./dist/yaml-snippets.json"
175+
},
176+
{
177+
"language": "yml",
178+
"path": "./dist/yaml-snippets.json"
175179
}
176180
],
177181
"configuration": {

0 commit comments

Comments
 (0)