From eccfa2bb6a4b0493a30c47771718c5862ae8115b Mon Sep 17 00:00:00 2001 From: Vinicius Stock Date: Wed, 23 Oct 2024 13:00:35 -0400 Subject: [PATCH] Add workspace name to error telemetry --- 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, + ), + }, ); } }