File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -231,12 +231,11 @@ export async function activate(context: vscode.ExtensionContext) {
231
231
} , [ ] )
232
232
. forEach ( ( i ) => {
233
233
const root = i [ 0 ] ;
234
- const isRight = root . change_type === 1 ;
235
234
const isLeft = root . change_type === 2 ;
236
- const both = root . change_type === 3 ;
235
+ const isRight = root . change_type === 1 ;
237
236
238
237
const rootLine = root . diffFile . diffLines [ root . diffFile . diffLines . length - 1 ] ;
239
- const lineNum = isLeft ? rootLine . leftNo : rootLine . rightNo ;
238
+ const lineNum = isLeft ? rootLine . leftNo - 1 : rootLine . rightNo - 1 ;
240
239
const range = new vscode . Range ( lineNum - 1 , 0 , lineNum - 1 , 0 ) ;
241
240
242
241
const commentList : vscode . Comment [ ] = i . map ( ( c ) => {
@@ -253,7 +252,7 @@ export async function activate(context: vscode.ExtensionContext) {
253
252
return comment ;
254
253
} ) ;
255
254
const commentThread = commentController . createCommentThread (
256
- headUri ,
255
+ isRight ? headUri : parentUri ,
257
256
range ,
258
257
commentList ,
259
258
) ;
You can’t perform that action at this time.
0 commit comments