use options showWhateverWeHaveAtXMs
This commit is contained in:
parent
d152e11060
commit
1095182f95
1 changed files with 6 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { streamLines } from "../../../diff/util";
|
||||
import { DEFAULT_AUTOCOMPLETE_OPTS } from "../../../util/parameters";
|
||||
import { HelperVars } from "../../util/HelperVars";
|
||||
import { stopAtStopTokens } from "./charStream";
|
||||
import {
|
||||
|
|
@ -56,7 +57,11 @@ export class StreamTransformPipeline {
|
|||
fullStop,
|
||||
);
|
||||
|
||||
lineGenerator = showWhateverWeHaveAtXMs(lineGenerator, 250);
|
||||
lineGenerator = showWhateverWeHaveAtXMs(
|
||||
lineGenerator,
|
||||
helper.options.showWhateverWeHaveAtXMs ??
|
||||
(DEFAULT_AUTOCOMPLETE_OPTS.showWhateverWeHaveAtXMs as number),
|
||||
);
|
||||
|
||||
const finalGenerator = streamWithNewLines(lineGenerator);
|
||||
for await (const update of finalGenerator) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue