Skip to content

Commit

Permalink
Fix issue #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Agetorp committed Dec 21, 2015
1 parent 9974188 commit 94fcad9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ function activate(context) {
break;
}
}
Window.activeTextEditor.selection = new vscode.Selection(startPos, endPos);
var newSelection = new vscode.Selection(startPos, endPos);
Window.activeTextEditor.selection = newSelection;
Window.activeTextEditor.revealRange(newSelection, vscode.TextEditorRevealType.InCenter)
});
});
});
Expand Down

0 comments on commit 94fcad9

Please sign in to comment.