mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
Remove webview telemetry
This commit is contained in:
parent
eaa76512fc
commit
34e87af5f1
2 changed files with 9 additions and 15 deletions
|
|
@ -9,7 +9,6 @@ import AccountView from "./components/account/AccountView"
|
|||
import { ExtensionStateContextProvider, useExtensionState } from "./context/ExtensionStateContext"
|
||||
import { vscode } from "./utils/vscode"
|
||||
import McpView from "./components/mcp/McpView"
|
||||
import posthog from "posthog-js"
|
||||
|
||||
const AppContent = () => {
|
||||
const { didHydrateState, showWelcome, shouldShowAnnouncement, telemetrySetting, vscMachineId } = useExtensionState()
|
||||
|
|
@ -61,14 +60,14 @@ const AppContent = () => {
|
|||
|
||||
useEvent("message", handleMessage)
|
||||
|
||||
useEffect(() => {
|
||||
if (telemetrySetting === "enabled") {
|
||||
posthog.identify(vscMachineId)
|
||||
posthog.opt_in_capturing()
|
||||
} else {
|
||||
posthog.opt_out_capturing()
|
||||
}
|
||||
}, [telemetrySetting, vscMachineId])
|
||||
// useEffect(() => {
|
||||
// if (telemetrySetting === "enabled") {
|
||||
// posthog.identify(vscMachineId)
|
||||
// posthog.opt_in_capturing()
|
||||
// } else {
|
||||
// posthog.opt_out_capturing()
|
||||
// }
|
||||
// }, [telemetrySetting, vscMachineId])
|
||||
|
||||
useEffect(() => {
|
||||
if (shouldShowAnnouncement) {
|
||||
|
|
|
|||
|
|
@ -5,13 +5,8 @@ import "./index.css"
|
|||
import App from "./App.tsx"
|
||||
import "../../node_modules/@vscode/codicons/dist/codicon.css"
|
||||
|
||||
const apiKey = "phc_qfOAGxZw2TL5O8p9KYd9ak3bPBFzfjC8fy5L6jNWY7K"
|
||||
const apiHost = "https://us.i.posthog.com"
|
||||
|
||||
createRoot(document.getElementById("root")!).render(
|
||||
<StrictMode>
|
||||
<PostHogProvider apiKey={apiKey} options={{ api_host: apiHost }}>
|
||||
<App />
|
||||
</PostHogProvider>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue