File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { IssuesManager } from './IssuesManager'
1010import { checkFirstAnalysisStatus , getRepositoryCodacyCloudStatus } from '../onboarding'
1111import { GitProvider } from './GitProvider'
1212import { isMCPConfigured } from '../commands/configureMCP'
13- import { createOrUpdateRules } from '../commands/createRules'
13+ import { checkRulesFile , createOrUpdateRules } from '../commands/createRules'
1414import { Cli } from '../cli'
1515import { CodacyCli } from '../cli/CodacyCli'
1616
@@ -630,6 +630,17 @@ export class CodacyCloud implements vscode.Disposable {
630630 state,
631631 organization_id : this . _organization ?. organization . identifier ,
632632 } )
633+
634+ const isCliInstalled = this . _cli !== undefined && this . _cli . getCliCommand ( ) !== ''
635+ const isMcpConfigured = isMCPConfigured ( )
636+
637+ checkRulesFile ( ) . then ( ( hasInstructionsFile ) => {
638+ Telemetry . track ( 'Guardrails State on Repository Load' , {
639+ hasCli : isCliInstalled ,
640+ hasMcp : isMcpConfigured ,
641+ hasInstructionsFile,
642+ } )
643+ } )
633644 }
634645 }
635646
You can’t perform that action at this time.
0 commit comments