Skip to content

Commit

Permalink
Fix undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Jan 7, 2019
1 parent 5238c40 commit 5d476ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/view/treeNodes/pullRequestNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ export class PRNode extends TreeNode {
if (fileChange instanceof InMemFileChangeNode) {
let lineNumber = fileChange.getCommentPosition(comment);
let [ parentFilePath, filePath, fileName, isPartial, opts ] = fileChange.command.arguments;
if (!opts) {
opts = {};
}
opts.selection = new vscode.Range(lineNumber, 0, lineNumber, 0);
await vscode.commands.executeCommand(fileChange.command.command, parentFilePath, filePath, fileName, isPartial, opts);
} else {
Expand Down

0 comments on commit 5d476ae

Please sign in to comment.