Added utility method to create an edit that shows the selected file