From 965b7742bae506e25c3df54a232c242190966a72 Mon Sep 17 00:00:00 2001
From: Joe Previte <jjprevite@gmail.com>
Date: Tue, 27 Sep 2022 10:00:52 -0700
Subject: [PATCH] docs: update telemetry patch

This adds instructions on how to test the telemetry patch. Eventually we
will add a test for it but for now, this makes it 10x easier to test.
---
 patches/telemetry.diff | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/patches/telemetry.diff b/patches/telemetry.diff
index ec51ab9cd129..abfe8a4295b0 100644
--- a/patches/telemetry.diff
+++ b/patches/telemetry.diff
@@ -1,9 +1,11 @@
 Add support for telemetry endpoint
 
 To test:
-1. Look inside a build of code-server, inside `lib/vscode/vs/server/node/server.main.js`
-2. Search for a `JSON.stringify` near `TelemetryClient`
-3. throw in a `console.log()` before it and make sure it logs telemetry data
+1. Create a RequestBin - https://requestbin.io/
+2. Run code-server with `CS_TELEMETRY_URL` set: 
+  i.e. `CS_TELEMETRY_URL="https://requestbin.io/1ebub9z1" ./code-server-4.7.0-macos-amd64/bin/code-server`
+3. Load code-server in browser an do things (i.e. open a file)
+4. Refresh RequestBin and you should see logs
 
 Index: code-server/lib/vscode/src/vs/server/node/serverServices.ts
 ===================================================================