diff --git a/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewProvider.ts b/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewProvider.ts index 584506f54..5c5cdd33c 100644 --- a/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewProvider.ts +++ b/src/snyk/snykCode/views/suggestion/codeSuggestionWebviewProvider.ts @@ -265,9 +265,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) {