We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ab5aa6f + 05b8f7f commit dee7a1eCopy full SHA for dee7a1e
1 file changed
src/extension.ts
@@ -348,6 +348,18 @@ export async function activate(context: vscode.ExtensionContext) {
348
// If it is not installed, don't do anything. On the next usage of the CLI it will be installed with the most recent version
349
}
350
351
+ // Identify user if already authenticated
352
+ if (Config.apiToken) {
353
+ try {
354
+ const user = await Account.current()
355
+ if (user) {
356
+ Telemetry.identify(user, codacyCloud.organization)
357
+ }
358
+ } catch (error) {
359
+ Logger.debug(`Failed to identify user during activation: ${error}`)
360
361
362
+
363
// Update initially
364
await updateMCPState()
365
0 commit comments