import * as React from "react" ; import { render } from "react-dom" ; import { ViewPanel } from "./ViewPanel" ; import * as Sentry from "@sentry/react" ; import { Integrations } from "@sentry/tracing" ; import { SENTRY_LINK } from "../constants" ; import '@bendera/vscode-webview-elements/dist/vscode-table.js' ; import '@bendera/vscode-webview-elements/dist/vscode-table-header.js' ; import '@bendera/vscode-webview-elements/dist/vscode-table-header-cell.js' ; import '@bendera/vscode-webview-elements/dist/vscode-table-body.js' ; import '@bendera/vscode-webview-elements/dist/vscode-table-row.js' ; import '@bendera/vscode-webview-elements/dist/vscode-table-cell.js' ; import '@bendera/vscode-webview-elements/dist/vscode-collapsible.js' ; import '@bendera/vscode-webview-elements/dist/vscode-label.js' ; import '@bendera/vscode-webview-elements/dist/vscode-checkbox.js' ; const elm = document . querySelector ( "#app" ) ; const version = elm ?. getAttribute ( "data-version" ) ; const environment = elm ?. getAttribute ( "data-environment" ) ; Sentry . init ( { dsn : SENTRY_LINK , integrations : [ new Integrations . BrowserTracing ( ) ] , tracesSampleRate : 0 , release : version || "" , environment : environment || "" , ignoreErrors : [ 'ResizeObserver loop limit exceeded' ] } ) ; declare const acquireVsCodeApi ; render ( < ViewPanel />, elm);