From caded0f347f6a5d0b0ffb5115cb6acea544af707 Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Fri, 11 Apr 2025 11:38:16 -0400 Subject: [PATCH 1/3] add F# and VB to mappings --- src/sentry/issues/auto_source_code_config/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentry/issues/auto_source_code_config/constants.py b/src/sentry/issues/auto_source_code_config/constants.py index c394c8fa175ddd..c498f720ac1333 100644 --- a/src/sentry/issues/auto_source_code_config/constants.py +++ b/src/sentry/issues/auto_source_code_config/constants.py @@ -15,7 +15,7 @@ # Any new languages should also require updating the stacktraceLink.tsx # The extensions do not need to be exhaustive but only include the ones that show up in stacktraces PLATFORMS_CONFIG: dict[str, Mapping[str, Any]] = { - "csharp": {"extensions": ["cs"]}, + "csharp": {"extensions": ["cs","fs","vb"]}, "go": {"extensions": ["go"]}, "java": { # e.g. com.foo.bar.Baz$handle$1, Baz.kt -> com/foo/bar/Baz.kt From 3e2920447e2a9f7c7a9b512d9a8ac21a600f6177 Mon Sep 17 00:00:00 2001 From: "getsantry[bot]" <66042841+getsantry[bot]@users.noreply.github.com> Date: Fri, 11 Apr 2025 15:39:57 +0000 Subject: [PATCH 2/3] :hammer_and_wrench: apply pre-commit fixes --- src/sentry/issues/auto_source_code_config/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentry/issues/auto_source_code_config/constants.py b/src/sentry/issues/auto_source_code_config/constants.py index c498f720ac1333..a0e413f40931b6 100644 --- a/src/sentry/issues/auto_source_code_config/constants.py +++ b/src/sentry/issues/auto_source_code_config/constants.py @@ -15,7 +15,7 @@ # Any new languages should also require updating the stacktraceLink.tsx # The extensions do not need to be exhaustive but only include the ones that show up in stacktraces PLATFORMS_CONFIG: dict[str, Mapping[str, Any]] = { - "csharp": {"extensions": ["cs","fs","vb"]}, + "csharp": {"extensions": ["cs", "fs", "vb"]}, "go": {"extensions": ["go"]}, "java": { # e.g. com.foo.bar.Baz$handle$1, Baz.kt -> com/foo/bar/Baz.kt From bf4f73525cfc985ffc514482d9b3970a9ae2bc1c Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Fri, 11 Apr 2025 11:41:38 -0400 Subject: [PATCH 3/3] Update src/sentry/issues/auto_source_code_config/constants.py --- src/sentry/issues/auto_source_code_config/constants.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sentry/issues/auto_source_code_config/constants.py b/src/sentry/issues/auto_source_code_config/constants.py index a0e413f40931b6..af52a3454b6e22 100644 --- a/src/sentry/issues/auto_source_code_config/constants.py +++ b/src/sentry/issues/auto_source_code_config/constants.py @@ -15,7 +15,8 @@ # Any new languages should also require updating the stacktraceLink.tsx # The extensions do not need to be exhaustive but only include the ones that show up in stacktraces PLATFORMS_CONFIG: dict[str, Mapping[str, Any]] = { - "csharp": {"extensions": ["cs", "fs", "vb"]}, + # C#, F#, VB, PowerShell, C# Script, F# Script + "csharp": {"extensions": ["cs", "fs", "vb", "ps1", "csx", "fsx"]}, "go": {"extensions": ["go"]}, "java": { # e.g. com.foo.bar.Baz$handle$1, Baz.kt -> com/foo/bar/Baz.kt