/// <summary> /// Handles the project item. /// </summary> /// <param name="projectItem">The project item.</param> /// <param name="review">The review.</param> private void HandleProjectItem(ProjectItem projectItem, Review review) { VisualStudioInstance.ItemOperations.OpenFile(projectItem.get_FileNames(0), Constants.vsViewKindPrimary); Document document = projectItem.Document; document.Activate(); TextSelection textSelection = (TextSelection)VisualStudioInstance.ActiveDocument.Selection; textSelection.GotoLine(review.Line, false); textSelection.SetBookmark(); }