Skip to content

Commit 7ea6fa7

Browse files
New range format
1 parent 42ec73c commit 7ea6fa7

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Public/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,5 +302,5 @@ function hideLoading() {
302302
}
303303

304304
function formatRange(range) {
305-
return `${range.startRow}:${range.startColumn} - ${range.endRow}:${range.endColumn}`;
305+
return `${range.startRow}:${range.startColumn} ... ${range.endRow}:${range.endColumn}`;
306306
}

Public/js/lookup_view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class LookupView {
7777
const content = escapeHTML(item.content);
7878
if (item.range) {
7979
const range = JSON.parse(item.range);
80-
const sourceRange = `${range.startRow}:${range.startColumn} - ${range.endRow}:${range.endColumn}`;
80+
const sourceRange = `${range.startRow}:${range.startColumn} ... ${range.endRow}:${range.endColumn}`;
8181
return `<dt class="text-truncate" style="max-width: calc(40vw - 20px);">
8282
<span class="badge annotation" style="width: auto; text-align: start;">Text</span><span class="font-monospace">${title}</span>
8383
</dt>

Public/js/structure_view.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ function makeTokenPopoverContent(data) {
110110

111111
function makeSourceRangePopoverContent(data, list) {
112112
const range = data.range;
113-
// prettier-ignore
114-
const details = `Ln ${range.startRow}, Col ${range.startColumn} - Ln ${range.endRow}, Col ${range.endColumn}`;
113+
const details = `${range.startRow}:${range.startColumn} ... ${range.endRow}:${range.endColumn}`;
115114
makeDescriptionList("Source Range", details, list);
116115
}
117116

0 commit comments

Comments
 (0)