Skip to content

Commit

Permalink
chore: improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricbet committed Sep 25, 2024
1 parent a75b1a2 commit 9b9ae0c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ export class InlineCompletionRequestTask extends Disposable {
try {
this.aiCompletionsService.updateStatusBarItem('running', true);
completeResult = await this.aiCompletionsService.complete(requestBean);
this.aiCompletionsService.hideStatusBarItem();
} catch (error) {
this.aiCompletionsService.reporterEnd(relationId, {
success: false,
Expand All @@ -167,6 +166,8 @@ export class InlineCompletionRequestTask extends Disposable {
});
this.aiCompletionsService.hideStatusBarItem();
return [];
} finally {
this.aiCompletionsService.hideStatusBarItem();
}
}

Expand Down

0 comments on commit 9b9ae0c

Please sign in to comment.