File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ export class GHPRComment extends CommentBase {
304304 const match = this . rawComment . body . match ( SUGGESTION_EXPRESSION ) ;
305305 const suggestionBody = match ?. groups ?. suggestion ;
306306 if ( match ) {
307- return suggestionBody ? ` ${ suggestionBody } \n` : '' ;
307+ return suggestionBody ? suggestionBody : '' ;
308308 }
309309 }
310310
Original file line number Diff line number Diff line change @@ -957,7 +957,7 @@ ${suggestionInformation.suggestionContent}
957957 throw new Error ( 'Cannot find the editor to apply the suggestion to.' ) ;
958958 }
959959 await editor . edit ( builder => {
960- builder . replace ( range . with ( undefined , new vscode . Position ( range . end . line + 1 , 0 ) ) , suggestion ) ;
960+ builder . replace ( range . with ( undefined , editor . document . lineAt ( range . end . line ) . range . end ) , suggestion ) ;
961961 } ) ;
962962 }
963963
You can’t perform that action at this time.
0 commit comments