Skip to content

Commit ec06f62

Browse files
committed
Disable streaming parsing
The time spent is mostly in the LLM, and this makes it impossible to decide whether we have one result or multipel, and we want to decide based on that how to show the changes. We would want inline ghost completions if there is only one at least
1 parent 37583e8 commit ec06f62

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/services/ghost/GhostStreamingParser.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ export class GhostStreamingParser {
238238
// Add chunk to buffer
239239
this.buffer += chunk
240240

241+
if (!this.streamFinished) {
242+
// do not stream
243+
this.generateSuggestions(new Array<ParsedChange>())
244+
}
245+
241246
// Extract any newly completed changes from the current buffer
242247
const newChanges = this.extractCompletedChanges()
243248

0 commit comments

Comments
 (0)