Skip to content

Commit

Permalink
fix: failed requests did not update test runner indicator (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnWeber committed Jan 2, 2025
1 parent 1a6cf6c commit 2ee5d46
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [unreleased]

### Fix
- errored or skipped referenced httpregion also skips current http region (AnWeber/httpyac#842, #339)
- failed requests did not update test runner indicator (#348)

## [6.16.4] (2024-11-03)

### Features
Expand Down
7 changes: 6 additions & 1 deletion src/plugin/vscodeHttpyacPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ export function registerVscodePluginsFactory(httpRegionExecutedEmitter: vscode.E
api.hooks.execute.addInterceptor(bailOnFailedTestInterceptor);
api.hooks.execute.addInterceptor({
id: 'httpRegionExecuted',
afterTrigger: async function bail(hookContext: { args: [ProcessorContext] }) {
afterLoop: async function bail(hookContext: { args: [ProcessorContext] }) {
const context = hookContext.args[0];
httpRegionExecutedEmitter.fire(context);
return true;
},
onError: async function bail(_err: Error, hookContext: { args: [ProcessorContext] }) {
const context = hookContext.args[0];
httpRegionExecutedEmitter.fire(context);
return true;
Expand Down

0 comments on commit 2ee5d46

Please sign in to comment.