File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
packages/core/src/codewhisperer/service Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -121,15 +121,15 @@ export function mapToAggregatedList(
121
121
const filteredIssues = codeScanIssues . flatMap ( ( issue ) => {
122
122
if ( scope === CodeWhispererConstants . CodeAnalysisScope . FILE && editor ) {
123
123
const isValidIssue = issue . codeSnippet . every ( ( codeIssue , index ) => {
124
- const lineNumber = issue . startLine + index ;
125
- const line = editor . document . lineAt ( lineNumber - 1 ) ?. text ;
126
- const codeContent = codeIssue . content ;
127
- return line === codeContent ;
128
- } ) ;
129
- return isValidIssue ? [ issue ] : [ ] ;
124
+ const lineNumber = issue . startLine + index
125
+ const line = editor . document . lineAt ( lineNumber - 1 ) ?. text
126
+ const codeContent = codeIssue . content
127
+ return line === codeContent
128
+ } )
129
+ return isValidIssue ? [ issue ] : [ ]
130
130
}
131
- return [ issue ] ;
132
- } ) ;
131
+ return [ issue ]
132
+ } )
133
133
134
134
filteredIssues . forEach ( ( issue ) => {
135
135
const filePath = issue . filePath
You can’t perform that action at this time.
0 commit comments