Skip to content

Conversation

@jfeingold35
Copy link
Collaborator

@jfeingold35 jfeingold35 commented Oct 7, 2025

What does this PR do?

Previously, the Code Analyzer tools accepted relative paths, which could cause issues when the MCP server was running from an unexpected directory. Now the tools specify that only absolute paths should be provided.

Also bumps SFCA Core engines to latest versions.

What issues does this PR fix or reference?

@W-19772910@

const pathSepVar: string = path.sep.replaceAll('\\', '\\\\');
const runDir: string = process.cwd().replaceAll('\\' , '\\\\');

const codeAnalyzerVersion: string = (JSON.parse((await fs.promises.readFile(path.join(require.resolve('@salesforce/code-analyzer-core'), '..', '..', 'package.json'), 'utf-8'))) as any).version;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice tidy opportunity!

@jfeingold35 jfeingold35 merged commit 3d91202 into main Oct 7, 2025
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants