Skip to content

Commit 3ccedd7

Browse files
Merge pull request #1381 from digma-ai/fix/codelens
Always navigate to Errors tab on Error Hotspot code lens click
2 parents 63217b2 + 717163d commit 3ccedd7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/Main/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@ const getURLToNavigateOnCodeLensClick = (scope: Scope): string | undefined => {
4141
}
4242

4343
const codeLens = scope.context.payload.codeLens;
44-
if (!codeLens.scopeCodeObjectId?.startsWith("span:")) {
45-
return;
46-
}
4744

4845
if (codeLens.lensTitle.toLocaleLowerCase().includes("error hotspot")) {
4946
return `/${TAB_IDS.ERRORS}`;
5047
}
5148

49+
if (!codeLens.scopeCodeObjectId?.startsWith("span:")) {
50+
return;
51+
}
52+
5253
if (codeLens.importance <= 4) {
5354
return `/${TAB_IDS.ISSUES}`;
5455
}

0 commit comments

Comments
 (0)