Skip to content

Commit

Permalink
fix completion too early ignore first line break
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmacarthy committed Mar 20, 2024
1 parent 2ad6792 commit e138cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension/providers/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export class CompletionProvider implements InlineCompletionItemProvider {
if (
(!this._useMultiLineCompletions || !this._isMultiLineCompletion) &&
this._chunkCount >= 2 &&
LINE_BREAK_REGEX.test(this._completion)
LINE_BREAK_REGEX.test(this._completion.trimStart())
) {
this._logger.log(
`Streaming response end due to line break ${this._nonce} \nCompletion: ${this._completion}`
Expand Down

0 comments on commit e138cad

Please sign in to comment.