Link to specific highlighted line instead of whole code snippet

This commit is contained in:
shati-patel
2022-04-28 11:32:26 +01:00
committed by Shati Patel
parent e12bf63f9a
commit b638449498

View File

@@ -163,8 +163,8 @@ const FileCodeSnippet = ({
const titleFileUri = createRemoteFileRef(
fileLink,
startingLine,
endingLine);
highlightedRegion?.startLine || startingLine,
highlightedRegion?.endLine || endingLine);
if (!codeSnippet) {
return (