Skip to content

Commit dbd82d1

Browse files
authored
Merge pull request #129 from microsoft/FileDlgLineNumber
Adds file line number to modal
2 parents bebddcb + db94c50 commit dbd82d1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

AppInspector/html/partials/_file_listing.liquid

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
</div>
2020
</div>
2121
</div>
22+
<div>
23+
<h7 style="color:blue;" id="match-line-number"></h7>
24+
</div>
2225
</div>
2326
<div class="modal-footer">
2427
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>

AppInspector/html/resources/js/appinspector.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,15 @@ class TemplateInsertion {
165165
.text(removePrefix(match.fileName));
166166
$li.append($a);
167167
$('#file_listing_modal ul').append($li);
168+
169+
$('#match-line-number').text('Line number: ' + match.startLocationLine.toString());
168170
}
169171
}
170172
$('#file_listing_modal').on('shown.bs.modal', function (e) {
171173
$('a.content-link').first().trigger('click');
172174
});
173175

176+
174177
$('#file_listing_modal').modal();
175178

176179

0 commit comments

Comments
 (0)