mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-23 09:45:38 -05:00
Stops trying to set the line if we don't have one
This commit is contained in:
@@ -63,6 +63,8 @@ export class DiffWithNextCommand extends ActiveEditorCommand {
|
||||
`${path.basename(args.commit.uri.fsPath)} (${args.commit.shortSha}) ${GlyphChars.ArrowLeftRight} ${path.basename(args.commit.nextUri.fsPath)} (${args.commit.nextShortSha})`,
|
||||
args.showOptions);
|
||||
|
||||
if (args.line === undefined || args.line === 0) return undefined;
|
||||
|
||||
// TODO: Figure out how to focus the left pane
|
||||
return await commands.executeCommand(BuiltInCommands.RevealLine, { lineNumber: args.line, at: 'center' });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user