Skip to content

Commit

Permalink
Merge branch 'main' into feat/ide-698_apply-fix-analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
acke authored Oct 15, 2024
2 parents a6129b5 + 383c313 commit 8a35544
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,8 @@ export class CodeSuggestionWebviewProvider
relativePath,
issueId,
);
if (diffs.length === 0) {
throw Error('Unable to generate a relevant fix');
}
// todo(berkay.berabi): Here if suggestions are empty, we should post a different type of message that
// will show the user correct information, namely: we tried but no fixes available for now.

void this.postSuggestMessage({ type: 'setAutofixDiffs', args: { suggestion, diffs } });
} catch (error) {
Expand Down

0 comments on commit 8a35544

Please sign in to comment.