Skip to content

Commit

Permalink
fix infinite spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmacarthy committed Mar 19, 2024
1 parent 4ecdf75 commit c5a82a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/extension/providers/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export class CompletionProvider implements InlineCompletionItemProvider {
this._lastCompletionIsMultiLine && this._acceptedLastCompletion

if (getIsMiddleOfWord() || isMultiLineAndAcceptedLast) {
this._statusBar.text = '🤖'
return []
}

Expand Down Expand Up @@ -193,6 +194,7 @@ export class CompletionProvider implements InlineCompletionItemProvider {

public abortCompletion() {
this._abortController?.abort()
this._statusBar.text = '🤖'
}

private buildStreamRequest(prompt: string) {
Expand Down

0 comments on commit c5a82a8

Please sign in to comment.