diff options
| author | Nate Sesti <sestinj@gmail.com> | 2023-07-21 19:55:08 -0700 | 
|---|---|---|
| committer | Nate Sesti <sestinj@gmail.com> | 2023-07-21 19:55:08 -0700 | 
| commit | 2a07966d2bc40d1b3cf2b8fbe950edc27aef5a58 (patch) | |
| tree | e5ff992e3c9f4cea099b3c393d73cb2b9c53cf59 /extension/src/activation | |
| parent | 3c5cd9ac88ab738064748a87636ff38c21429153 (diff) | |
| download | sncontinue-2a07966d2bc40d1b3cf2b8fbe950edc27aef5a58.tar.gz sncontinue-2a07966d2bc40d1b3cf2b8fbe950edc27aef5a58.tar.bz2 sncontinue-2a07966d2bc40d1b3cf2b8fbe950edc27aef5a58.zip  | |
remove Segment telemetry from React
Diffstat (limited to 'extension/src/activation')
| -rw-r--r-- | extension/src/activation/activate.ts | 1 | ||||
| -rw-r--r-- | extension/src/activation/environmentSetup.ts | 17 | 
2 files changed, 1 insertions, 17 deletions
diff --git a/extension/src/activation/activate.ts b/extension/src/activation/activate.ts index a7f6c55b..65f026d8 100644 --- a/extension/src/activation/activate.ts +++ b/extension/src/activation/activate.ts @@ -1,7 +1,6 @@  import * as vscode from "vscode";  import { registerAllCommands } from "../commands";  import { registerAllCodeLensProviders } from "../lang-server/codeLens"; -import { sendTelemetryEvent, TelemetryEvent } from "../telemetry";  import IdeProtocolClient from "../continueIdeClient";  import { getContinueServerUrl } from "../bridge";  import { ContinueGUIWebviewViewProvider } from "../debugPanel"; diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index 94481430..5a9345a6 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -9,7 +9,6 @@ import fetch from "node-fetch";  import * as vscode from "vscode";  import * as os from "os";  import fkill from "fkill"; -import { sendTelemetryEvent, TelemetryEvent } from "../telemetry";  const WINDOWS_REMOTE_SIGNED_SCRIPTS_ERROR =    "A Python virtual enviroment cannot be activated because running scripts is disabled for this user. In order to use Continue, please enable signed scripts to run with this command in PowerShell: `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser`, reload VS Code, and then try again."; @@ -57,9 +56,6 @@ async function retryThenFail(        vscode.window.showErrorMessage(msg);      } -    sendTelemetryEvent(TelemetryEvent.ExtensionSetupError, { -      error: e.message, -    });      throw e;    }  } @@ -83,12 +79,6 @@ async function runCommand(cmd: string): Promise<[string, string | undefined]> {      stdout = "";    } -  if (stderr) { -    sendTelemetryEvent(TelemetryEvent.ExtensionSetupError, { -      error: stderr, -    }); -  } -    return [stdout, stderr];  } @@ -480,16 +470,11 @@ export async function startContinuePythonServer() {              console.log("Successfully started Continue python server");              resolve(null);            } else if (data.includes("ERROR") || data.includes("Traceback")) { -            sendTelemetryEvent(TelemetryEvent.ExtensionSetupError, { -              error: data, -            }); +            console.log("Error starting Continue python server: ", data);            }          });          child.on("error", (error: any) => {            console.log(`error: ${error.message}`); -          sendTelemetryEvent(TelemetryEvent.ExtensionSetupError, { -            error: error.message, -          });          });          // Write the current version of vscode to a file called server_version.txt  | 
