We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aade33f commit 7d5b436Copy full SHA for 7d5b436
1 file changed
extensions/ql-vscode/src/remote-queries/view/FileCodeSnippet.tsx
@@ -88,7 +88,7 @@ const Message = ({
88
borderColor: string,
89
children: React.ReactNode
90
}) => {
91
- if (!highlightedRegion || highlightedRegion.startLine !== currentLineNumber) {
+ if (!highlightedRegion || highlightedRegion.endLine !== currentLineNumber) {
92
return <></>;
93
}
94
@@ -157,7 +157,7 @@ const CodeLine = ({
157
? highlightedRegion.endColumn
158
: isLastHighlightedLine
159
160
- : line.length;
+ : line.length + 1;
161
162
const section1 = line.substring(0, highlightStartColumn - 1);
163
const section2 = line.substring(highlightStartColumn - 1, highlightEndColumn - 1);
0 commit comments