From 101dc0ab40a64e4f25defe8a3aadef6a8eb55bdd Mon Sep 17 00:00:00 2001 From: Sebastian Tiedtke Date: Tue, 3 Dec 2024 18:48:41 -0800 Subject: [PATCH] Don't wait till last emission to replace output items --- src/extension/executors/runner/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/executors/runner/index.ts b/src/extension/executors/runner/index.ts index 2470255c5..857861cd6 100644 --- a/src/extension/executors/runner/index.ts +++ b/src/extension/executors/runner/index.ts @@ -15,11 +15,11 @@ import { debounceTime, map, filter, + first, from, scan, withLatestFrom, Subscription, - takeLast, } from 'rxjs' import { RpcError } from '@protobuf-ts/runtime-rpc' @@ -297,7 +297,7 @@ export const executeRunner: IKernelRunner = async ({ filter((item) => { return isCustomMime(item.mime) }), - takeLast(1), + first(), ) .subscribe({ next: () => outputs.showOutput(OutputType.outputItems),