Skip to content

Ensure pathsBasePath is correctly forwarded from the API - #64843

Open
Titian Cernicova-Dragomir (dragomirtitian) wants to merge 1 commit into
microsoft:mainfrom
bloomberg:fix-paths-base-path-64842
Open

Titian Cernicova-Dragomir (dragomirtitian) wants to merge 1 commit into
microsoft:mainfrom
bloomberg:fix-paths-base-path-64842

Conversation

@dragomirtitian

Copy link
Copy Markdown
Contributor

Fixes #64842

Copilot AI balanced review requested due to automatic review settings October 16, 2026 09:34
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Oct 16, 2026
@typescript-automation typescript-automation Bot added For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Oct 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused fix addresses the reported regression with targeted coverage and no identified blocking issues.

0 open findings

What changed in this PR

Fixes #64842 by preserving pathsBasePath when parsed compiler options pass through the API, keeping path mappings relative to the configuration directory.

Changes:

  • Recognizes pathsBasePath as a directory-valued option.
  • Adds unit and API regression tests for configuration-relative resolution.
File Description
tsc/​internal/​tsoptions/​rawcompileroptions.go Preserves and normalizes pathsBasePath.
tsc/​internal/​tsoptions/​rawcompileroptions_test.go Tests directory normalization.
tsc/​internal/​api/​session_createprogram_test.go Tests resolution after an API options round-trip with a different working directory.

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

[api] Paths not resolved relative to tsconfig

2 participants