From face167d5670ab2b61f296a60f8805867c93a739 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Wed, 19 Jul 2023 21:49:59 -0400 Subject: [PATCH] Update sentry --- src/dashboardWebView/index.tsx | 5 +++++ src/panelWebView/index.tsx | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/dashboardWebView/index.tsx b/src/dashboardWebView/index.tsx index 34498a3b..766ba00e 100644 --- a/src/dashboardWebView/index.tsx +++ b/src/dashboardWebView/index.tsx @@ -119,6 +119,11 @@ if (elm) { environment: environment || '', ignoreErrors: SentryIgnore }); + + Sentry.setTag("type", "dashboard"); + if (document.body.getAttribute(`data-vscode-theme-id`)) { + Sentry.setTag("theme", document.body.getAttribute(`data-vscode-theme-id`)); + } } elm.setAttribute("class", `${experimental ? "experimental" : ""} bg-[var(--vscode-editor-background)] text-[var(--vscode-editor-foreground)]`); diff --git a/src/panelWebView/index.tsx b/src/panelWebView/index.tsx index e8aae4bc..4875209c 100644 --- a/src/panelWebView/index.tsx +++ b/src/panelWebView/index.tsx @@ -42,6 +42,11 @@ if (elm) { environment: environment || '', ignoreErrors: SentryIgnore }); + + Sentry.setTag("type", "panel"); + if (document.body.getAttribute(`data-vscode-theme-id`)) { + Sentry.setTag("theme", document.body.getAttribute(`data-vscode-theme-id`)); + } } render(