Skip to content

Commit 3f62b8e

Browse files
authored
Only include workspace name as part of telemetry (#2883)
### Motivation I made a mistake when adding the workspace as part of the telemetry. I thought it was the workspace name, but it's actually the path to the workspace, which may include things like `/Users/name/...`. Let's return only the workspace name to fully anonymize the telemetry.
1 parent 071aa84 commit 3f62b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vscode/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ export default class Client extends LanguageClient implements ClientInterface {
498498
...error.data,
499499
serverVersion: this.serverVersion,
500500
workspace: new vscode.TelemetryTrustedValue(
501-
this.workingDirectory,
501+
path.basename(this.workingDirectory),
502502
),
503503
},
504504
);

0 commit comments

Comments
 (0)