From 453e658b1eb845978a3a132b777427cf89865d72 Mon Sep 17 00:00:00 2001 From: Vinicius Stock Date: Wed, 23 Oct 2024 13:25:49 -0400 Subject: [PATCH] Include workspace name in error telemetry (#2763) --- vscode/src/client.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vscode/src/client.ts b/vscode/src/client.ts index 9def4acea..8cdcdaf3e 100644 --- a/vscode/src/client.ts +++ b/vscode/src/client.ts @@ -451,7 +451,13 @@ export default class Client extends LanguageClient implements ClientInterface { name: errorClass, stack, }, - { ...error.data, serverVersion: this.serverVersion }, + { + ...error.data, + serverVersion: this.serverVersion, + workspace: new vscode.TelemetryTrustedValue( + this.workingDirectory, + ), + }, ); } }