Skip to content

Commit acdbefb

Browse files
authored
docs: update telemetry patch (#5596)
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.
1 parent 05289d3 commit acdbefb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

patches/telemetry.diff

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
Add support for telemetry endpoint
22

33
To test:
4-
1. Look inside a build of code-server, inside `lib/vscode/vs/server/node/server.main.js`
5-
2. Search for a `JSON.stringify` near `TelemetryClient`
6-
3. throw in a `console.log()` before it and make sure it logs telemetry data
4+
1. Create a RequestBin - https://requestbin.io/
5+
2. Run code-server with `CS_TELEMETRY_URL` set:
6+
i.e. `CS_TELEMETRY_URL="https://requestbin.io/1ebub9z1" ./code-server-4.7.0-macos-amd64/bin/code-server`
7+
3. Load code-server in browser an do things (i.e. open a file)
8+
4. Refresh RequestBin and you should see logs
79

810
Index: code-server/lib/vscode/src/vs/server/node/serverServices.ts
911
===================================================================

0 commit comments

Comments
 (0)