Skip to content

Add getJSDocCommentsAndTags back with functionality of 6.0 - #64455

Merged
Andrew Branch (andrewbranch) merged 2 commits into
microsoft:mainfrom
bloomberg:getjsdoc-comments-and-tags
Sep 28, 2026
Merged

Andrew Branch (andrewbranch) merged 2 commits into
microsoft:mainfrom
bloomberg:getjsdoc-comments-and-tags

Conversation

@dragomirtitian

Copy link
Copy Markdown
Contributor

Fixes #64394

Copilot AI balanced review requested due to automatic review settings September 25, 2026 21:59
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Sep 25, 2026
@typescript-automation typescript-automation Bot added For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Sep 25, 2026
@typescript-automation

Copy link
Copy Markdown
Contributor

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

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.

Copilot review overview

🟡 Changes recommended

Formatting, public documentation, and individual-tag test coverage need correction.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Medium severity · 1 Low severity

Open (2)
What changed in this PR

Restores the public getJSDocCommentsAndTags AST API with TypeScript 6-compatible ancestor traversal and comment preservation.

Changes:

  • Returns whole JSDoc nodes when appropriate while preserving getJSDocTags.
  • Adds async and generated sync API tests.
File Description
packages/​typescript/​src/​ast/​jsdoc.ts Implements and exports the restored API.
packages/​typescript/​test/​async/​api.test.ts Adds API behavior tests.
packages/​typescript/​test/​sync/​api.test.ts Adds generated synchronous tests.

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

Comment thread packages/typescript/test/async/api.test.ts
Comment thread packages/typescript/src/ast/jsdoc.ts Outdated

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.

Copilot review overview

🟢 Approval recommended

The implementation matches the established TypeScript 6 behavior and includes comprehensive API coverage.

Review effort: Balanced
Findings: None

Resolved since last review (2)

@andrewbranch
Andrew Branch (andrewbranch) added this pull request to the merge queue Sep 28, 2026
Merged via the queue into microsoft:main with commit 2f10683 Sep 28, 2026
29 checks passed
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: Done

Development

Successfully merging this pull request may close these issues.

# [API] getJSDocCommentsAndTags is no longer exposed

3 participants