Skip to content

Commit

Permalink
Don't wait till last emission to replace output items
Browse files Browse the repository at this point in the history
  • Loading branch information
sourishkrout committed Dec 4, 2024
1 parent 8a2b96d commit 101dc0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension/executors/runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import {
debounceTime,
map,
filter,
first,
from,
scan,
withLatestFrom,
Subscription,
takeLast,
} from 'rxjs'
import { RpcError } from '@protobuf-ts/runtime-rpc'

Expand Down Expand Up @@ -297,7 +297,7 @@ export const executeRunner: IKernelRunner = async ({
filter((item) => {
return isCustomMime(item.mime)
}),
takeLast(1),
first(),
)
.subscribe({
next: () => outputs.showOutput(OutputType.outputItems),
Expand Down

0 comments on commit 101dc0a

Please sign in to comment.