Skip to content

Commit

Permalink
don't complete again if the last was multiline
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmacarthy committed Mar 22, 2024
1 parent a04deb7 commit d1f4a4b
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 @@ -128,7 +128,7 @@ export class CompletionProvider implements InlineCompletionItemProvider {
const isLastCompletionAccepted =
this._acceptedLastCompletion && !this._enableSubsequentCompletions

if (getIsMiddleOfWord() || isLastCompletionAccepted) {
if (getIsMiddleOfWord() || isLastCompletionAccepted || this._lastCompletionMultiline) {
this._statusBar.text = '🤖'
return []
}
Expand Down

0 comments on commit d1f4a4b

Please sign in to comment.