We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c302ab commit cdd20cbCopy full SHA for cdd20cb
packages/amazonq/src/app/inline/EditRendering/svgGenerator.ts
@@ -18,6 +18,8 @@ export const emptyDiffSvg = {
18
originalCodeHighlightRange: [],
19
}
20
21
+const DEFAULT_LINE_HIGHLIGHT_LENGTH = 4
22
+
23
export class SvgGenerationService {
24
/**
25
* Generates an SVG image representing a code diff
@@ -459,7 +461,7 @@ export class SvgGenerationService {
459
461
originalRanges.push({
460
462
line: lineIndex,
463
start: 0,
- end: line.length ?? 4,
464
+ end: line.length ?? DEFAULT_LINE_HIGHLIGHT_LENGTH,
465
})
466
467
0 commit comments